Обсуждение: Error compiling 6.5.3 on Solaris 2.7/x86 with Sun C compiler 5.0

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

Error compiling 6.5.3 on Solaris 2.7/x86 with Sun C compiler 5.0

От
pgsql-hackers@thewrittenword.com
Дата:
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)