From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Pg Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: PG 9.0 Solaris compile error on Sparc |
Date: | 2010-07-19 13:11:48 |
Message-ID: | AANLkTikygj8pgQWpzLR0gsmX7vfyGBO9a8EJzWZf90zg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Mon, Jul 19, 2010 at 2:03 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2010-07-19 13:24:39 | Re: PG 9.0 Solaris compile error on Sparc |
Previous Message | Tom Lane | 2010-07-19 13:03:20 | Re: PG 9.0 Solaris compile error on Sparc |