Error compiling 6.5.3 on Solaris 2.7/x86 with Sun C compiler 5.0 - Mailing list pgsql-hackers

From pgsql-hackers@thewrittenword.com
Subject Error compiling 6.5.3 on Solaris 2.7/x86 with Sun C compiler 5.0
Date
Msg-id 200001041741.LAA18858@postal.thewrittenword.com
Whole thread Raw
List pgsql-hackers
songoku:/opt/build/postgresql-6.5.3/src/backend/utils/adt% gmake
cc -I../../../include -I../../../backend   -I/opt/TWWfsw/tcl81/include
-I/opt/TWWfsw/tk81/include -I/opt/TWWfsw/readline/include  -I../..
-c -o date.o date.c
"date.c", line 153: warning: statement not reached
"date.c", line 372: undefined symbol: __const
"date.c", line 372: syntax error before or at: double
cc: acomp failed for date.c
gmake: *** [date.o] Error 2

The Sun C compiler doesn't like the definition of NAN in
src/include/port/solaris_i386.h:
#define                            NAN     (*(__const double *) __nan)

Is there a danger of removing this line? Should it be changed to
something else?

-- 
albert chin (china@thewrittenword.com)



pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: [HACKERS] Inprise/Borland releasing Interbase as Opensource
Next
From: Olivier PRENANT
Date:
Subject: Re: [BUGS] Date calc bug