Re: PG 9.0 Solaris compile error on Sparc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: PG 9.0 Solaris compile error on Sparc
Date: 2010-07-19 12:53:36
Message-ID: 14737.1279544016@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dave Page <dpage(at)pgadmin(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Zdenek Kotala 2010-07-19 12:56:29 Re: PG 9.0 Solaris compile error on Sparc
Previous Message Dave Page 2010-07-19 12:32:53 PG 9.0 Solaris compile error on Sparc