PG 9.0 Solaris compile error on Sparc - Mailing list pgsql-bugs

From Dave Page
Subject PG 9.0 Solaris compile error on Sparc
Date
Msg-id AANLkTimYo9BnIK2I5_8CUsbVDjVeRHQbySuEpMMrAZWU@mail.gmail.com
Whole thread Raw
Responses Re: PG 9.0 Solaris compile error on Sparc  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: PG 9.0 Solaris compile error on Sparc  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Re: PG 9.0 Solaris compile error on Sparc  (Peter Eisentraut <peter_e@gmx.net>)
Re: PG 9.0 Solaris compile error on Sparc  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
I'm working on setting up a new buildfarm member as we don't seem to
have any active Solaris ones :-(

cc -Xa -m64 -mt   -mt -D_REENTRANT -D_THREAD_SAFE
-D_POSIX_PTHREAD_SEMANTICS -KPIC -DFRONTEND -DUNSAFE_STAT_OK -I.
-I../../../src/include  -I../../../src/port -I../../../src/port
-DSO_MAJOR_VERSION=5  -c -o fe-connect.o fe-connect.c
"fe-connect.c", line 1789: undefined symbol: ucred_t
"fe-connect.c", line 1789: undefined symbol: ucred
"fe-connect.c", line 1792: warning: implicit function declaration: getpeerucred
"fe-connect.c", line 1792: undefined symbol: sock
"fe-connect.c", line 1800: warning: implicit function declaration: ucred_geteuid
"fe-connect.c", line 1805: warning: implicit function declaration: ucred_free
cc: acomp failed for fe-connect.c

That is with Sun Studio 12. This is with gcc:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -pthreads   -pthreads  -D_REENTRANT -D_THREAD_SAFE
-D_POSIX_PTHREAD_SEMANTICS -fPIC -DFRONTEND -DUNSAFE_STAT_OK -I.
-I../../../src/include  -I../../../src/port -I../../../src/port
-DSO_MAJOR_VERSION=5  -c -o fe-connect.o fe-connect.c
fe-connect.c: In function `PQconnectPoll':
fe-connect.c:1789: error: `ucred_t' undeclared (first use in this function)
fe-connect.c:1789: error: (Each undeclared identifier is reported only once
fe-connect.c:1789: error: for each function it appears in.)
fe-connect.c:1789: error: `ucred' undeclared (first use in this function)
fe-connect.c:1792: warning: implicit declaration of function `getpeerucred'
fe-connect.c:1792: error: `sock' undeclared (first use in this function)
fe-connect.c:1800: warning: implicit declaration of function `ucred_geteuid'
fe-connect.c:1805: warning: implicit declaration of function `ucred_free'
gmake[3]: *** [fe-connect.o] Error 1

Platform:

-bash-3.00$ uname -a
SunOS suzuka 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-1000

Configured with:

./configure --with-perl --with-python --without-readline

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

pgsql-bugs by date:

Previous
From: "john"
Date:
Subject: BUG #5565: ERROR : syntax error at or near ")"
Next
From: Tom Lane
Date:
Subject: Re: PG 9.0 Solaris compile error on Sparc