error compiling 7.1 on Solaris 8 x86 (long)

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

error compiling 7.1 on Solaris 8 x86 (long)

От:
"Andrzej Kwiatkowski" <szerpcho@poczta.onet.pl>
Дата:
When i try to compile postgresql on solaris 8/ x86
i get following:

make -C tcop all
make[3]: Entering directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/tcop'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o dest.o dest.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o fastpath.o fastpath.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o postgres.o postgres.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o pquery.o pquery.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o utility.o utility.c
/usr/ccs/bin/ld -r -o SUBSYS.o dest.o fastpath.o postgres.o pquery.o
utility.o
make[3]: Leaving directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/tcop'
make -C utils all
make[3]: Entering directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/utils'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
e   -c -o fmgrtab.o fmgrtab.c
make -C adt SUBSYS.o
make[4]: Entering directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/utils/ad
t'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o acl.o acl.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o arrayfuncs.o arrayfuncs.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o arrayutils.o arrayutils.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o bool.o bool.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o cash.o cash.c
cash.c: In function `cash_div_flt8':
cash.c:475: warning: implicit declaration of function `rint'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o char.o char.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o date.o date.c
date.c: In function `timestamp_date':
date.c:276: warning: implicit declaration of function `isnan'
date.c: In function `interval_time':
date.c:734: warning: implicit declaration of function `ceil'
date.c:734: warning: implicit declaration of function `floor'
date.c:734: warning: implicit declaration of function `rint'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o datetime.o datetime.c
datetime.c: In function `DecodeDateDelta':
datetime.c:1886: warning: implicit declaration of function `ceil'
datetime.c:1886: warning: implicit declaration of function `floor'
datetime.c:1886: warning: implicit declaration of function `rint'
datetime.c: In function `EncodeTimeSpan':
datetime.c:2291: warning: type mismatch in implicit declaration for built-in
function `fabs'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o datum.o datum.c
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
lude   -c -o float.o float.c
float.c: In function `CheckFloat4Val':
float.c:149: warning: type mismatch in implicit declaration for built-in
function `fabs'
float.c: In function `float8in':
float.c:253: `HUGE_VAL' undeclared (first use in this function)
float.c:253: (Each undeclared identifier is reported only once
float.c:253: for each function it appears in.)
float.c: In function `float8out':
float.c:279: warning: implicit declaration of function `isnan'
float.c: In function `dtrunc':
float.c:944: warning: implicit declaration of function `floor'
float.c: In function `dsqrt':
float.c:964: warning: type mismatch in implicit declaration for built-in
function `sqrt'
float.c: In function `dpow':
float.c:1000: warning: implicit declaration of function `pow'
float.c: In function `dexp':
float.c:1028: warning: implicit declaration of function `exp'
float.c: In function `dlog1':
float.c:1056: warning: implicit declaration of function `log'
float.c: In function `dlog10':
float.c:1077: warning: implicit declaration of function `log10'
float.c: In function `dacos':
float.c:1094: warning: implicit declaration of function `acos'
float.c: In function `dasin':
float.c:1117: warning: implicit declaration of function `asin'
float.c: In function `datan':
float.c:1140: warning: implicit declaration of function `atan'
float.c: In function `datan2':
float.c:1164: warning: implicit declaration of function `atan2'
float.c: In function `dcos':
float.c:1187: warning: type mismatch in implicit declaration for built-in
function `cos'
float.c: In function `dcot':
float.c:1210: warning: implicit declaration of function `tan'
float.c: In function `dsin':
float.c:1234: warning: type mismatch in implicit declaration for built-in
function `sin'
make[4]: *** [float.o] Error 1
make[4]: Leaving directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/utils/ad
t'
make[3]: *** [adt-recursive] Error 2
make[3]: Leaving directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend/utils'
make[2]: *** [utils-recursive] Error 2
make[2]: Leaving directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/export/home/soft/source/postgresql/7.1/postgresql-7.1/src'
make: *** [all] Error 2


Re: error compiling 7.1 on Solaris 8 x86 (long)

От:
jdassen@cistron.nl (J.H.M. Dassen (Ray))
Дата:
Andrzej Kwiatkowski  wrote:
>When i try to compile postgresql on solaris 8/ x86
>i get following:
[lots of warnings and some errors on math.h related stuff like 'ceil',
'floor', 'fabs', 'HUGE_VAL']

It looks like gcc is finding a broken "math.h" include file - check if you
have proper C library headers installed.

HTH,
Ray
-- 
For those Unix & Linux fanatics who're feeling left out, please forward this
message to everyone you know and delete a bunch of your files at random.
	Julian Richardson's response to ILOVEYOU

Re: error compiling 7.1 on Solaris 8 x86 (long)

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Andrzej Kwiatkowski"  writes:
> When i try to compile postgresql on solaris 8/ x86
> i get following:

> gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/inc
> lude   -c -o float.o float.c
> float.c: In function `CheckFloat4Val':
> float.c:149: warning: type mismatch in implicit declaration for built-in
> function `fabs'
> float.c: In function `float8in':
> float.c:253: `HUGE_VAL' undeclared (first use in this function)
> float.c:253: (Each undeclared identifier is reported only once
> float.c:253: for each function it appears in.)
> float.c: In function `float8out':
> float.c:279: warning: implicit declaration of function `isnan'
> float.c: In function `dtrunc':
> float.c:944: warning: implicit declaration of function `floor'
> float.c: In function `dsqrt':
> float.c:964: warning: type mismatch in implicit declaration for built-in
> function `sqrt'
> [etc]

Very curious.  Seems like something is badly broken with your 
... all that stuff should be declared in math.h, which is certainly
imported by float.c.  Any Solaris folk have an idea what might have
gone wrong?

			regards, tom lane
FAQ