Re: PG 9.0 Solaris compile error on Sparc
От | Dave Page |
---|---|
Тема | Re: PG 9.0 Solaris compile error on Sparc |
Дата | |
Msg-id | AANLkTikygj8pgQWpzLR0gsmX7vfyGBO9a8EJzWZf90zg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: PG 9.0 Solaris compile error on Sparc (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-bugs |
On Mon, Jul 19, 2010 at 2:03 PM, Tom Lane <tgl@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. =A0A 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) || define= d(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-conn= ect.c?r1=3D1.400&r2=3D1.401 --=20 Dave Page EnterpriseDB UK: http://www.enterprisedb.com The Enterprise Postgres Company
В списке pgsql-bugs по дате отправления: