Обсуждение: Problem compiling on HP/Compaq Tru64 UNIX

Поиск
Список
Период
Сортировка

Problem compiling on HP/Compaq Tru64 UNIX

От
"Ron Harter"
Дата:
We are trying to compile and install postgresql on Tru64 UNIX. We get some
errors during the build saying NAN not defined.

Is there something we need to modify to correct this or a compile time
option we need to change? Any help/advice is appreciated.



 --
 Ron Harter                | Tongue, Tied and Twisted
 rharter@pobox.com  | Just an earth bound misfit ... I
                                   |                Pink Floyd




Re: Problem compiling on HP/Compaq Tru64 UNIX

От
Tom Lane
Дата:
"Ron Harter" <rharter@pobox.com> writes:
> We are trying to compile and install postgresql on Tru64 UNIX. We get some
> errors during the build saying NAN not defined.

AFAICS, all uses of NAN in the PG code are preceded by something like

#ifndef NAN
#define NAN        (0.0/0.0)
#endif

... which might or might not be the right thing for your platform, but
it certainly shouldn't yield an "undefined name" kind of error.

Could you be more specific about what error you're getting?
And where?

            regards, tom lane

Re: Problem compiling on HP/Compaq Tru64 UNIX

От
Bruce Momjian
Дата:
Tom Lane wrote:
> "Ron Harter" <rharter@pobox.com> writes:
> > We are trying to compile and install postgresql on Tru64 UNIX. We get some
> > errors during the build saying NAN not defined.
>
> AFAICS, all uses of NAN in the PG code are preceded by something like
>
> #ifndef NAN
> #define NAN        (0.0/0.0)
> #endif
>
> ... which might or might not be the right thing for your platform, but
> it certainly shouldn't yield an "undefined name" kind of error.
>
> Could you be more specific about what error you're getting?
> And where?

And mention the PostgreSQL version.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Problem compiling on HP/Compaq Tru64 UNIX

От
"Ron Harter"
Дата:
After some further investigation it turns out to be a Compaq problem, the
compiler doesn't default to IEEE floating point. Once the
-ieee was added to the compiler switches in the makefile everything built
fine.



 --
 Ron Harter                | Tongue, Tied and Twisted
 rharter@pobox.com  | Just an earth bound misfit ... I
                                   |                Pink Floyd


"Tom Lane" <tgl@sss.pgh.pa.us> wrote in message
news:16860.1035208993@sss.pgh.pa.us...
> "Ron Harter" <rharter@pobox.com> writes:
> > We are trying to compile and install postgresql on Tru64 UNIX. We get
some
> > errors during the build saying NAN not defined.
>
> AFAICS, all uses of NAN in the PG code are preceded by something like
>
> #ifndef NAN
> #define NAN (0.0/0.0)
> #endif
>
> ... which might or might not be the right thing for your platform, but
> it certainly shouldn't yield an "undefined name" kind of error.
>
> Could you be more specific about what error you're getting?
> And where?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html