On Mon, Jul 19, 2010 at 2:03 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
> 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

Adding that fixes it, though I also needed to change sock to
conn->sock on line 1801, somewhat like:
http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c?r1=1.400&r2=1.401

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

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to