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>, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: PG 9.0 Solaris compile error on Sparc
Date: 2010-07-19 13:03:20
Message-ID: 14896.1279544600@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> 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.

... but looking in src/backend/libpq/auth.c suggests that fe-connect
is lacking

#if defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || defined(HAVE_STRUCT_SOCKCRED)
#include <sys/uio.h>
#include <sys/ucred.h>
#endif
#ifdef HAVE_UCRED_H
#include <ucred.h>
#endif

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

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