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

From Tom Lane
Subject Re: PG 9.0 Solaris compile error on Sparc
Date
Msg-id 14737.1279544016@sss.pgh.pa.us
Whole thread Raw
In response to PG 9.0 Solaris compile error on Sparc  (Dave Page <dpage@pgadmin.org>)
Responses Re: PG 9.0 Solaris compile error on Sparc
List pgsql-bugs
Dave Page <dpage@pgadmin.org> writes:
> 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 code wouldn't be getting compiled if configure hadn't found
getpeerucred present, so I'll bet the problem is just lack of the
#include file that declares the above symbols.  A bit of grepping
of /usr/include should give you the answer.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: PG 9.0 Solaris compile error on Sparc
Next
From: Zdenek Kotala
Date:
Subject: Re: PG 9.0 Solaris compile error on Sparc