Re: building 7.4.3 on Solaris 9/Intel - Mailing list pgsql-general
From | David Parker |
---|---|
Subject | Re: building 7.4.3 on Solaris 9/Intel |
Date | |
Msg-id | 120DB10316D2B946A3A1BEFB82324BB17D3EED@kodos.tazznetworks.com Whole thread Raw |
In response to | building 7.4.3 on Solaris 9/Intel ("David Parker" <dparker@tazznetworks.com>) |
Responses |
Re: building 7.4.3 on Solaris 9/Intel
|
List | pgsql-general |
Thanks for the response. Yup, I'm sure it's 7.4.3. From the config.log, it looks like the check for getpwuid_r test program uses -D_POSIX_PTHREAD_SEMANTICS, which turns on the POSIX version of the call, but the check for "fifth argument" test compile doesn't include this define, so it fails, and the GETPWUID_R_5ARG doesn't get set: configure:13411: checking for getpwuid_r configure:13454: gcc -o conftest -O2 -fno-strict-aliasing -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wl,-i,-z,defs,-z, ignore,-z,lazyload conftest.c -lz -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm -lpthread >&5 configure:13457: $? = 0 configure:13460: test -s conftest configure:13463: $? = 0 configure:13473: result: yes configure:13411: checking for gethostbyname_r configure:13454: gcc -o conftest -O2 -fno-strict-aliasing -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wl,-i,-z,defs,-z, ignore,-z,lazyload conftest.c -lz -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm -lpthread >&5 configure:13457: $? = 0 configure:13460: test -s conftest configure:13463: $? = 0 configure:13473: result: yes configure:13485: checking whether getpwuid_r takes a fifth argument configure:13515: gcc -c -O2 -fno-strict-aliasing conftest.c >&5 configure: In function `main': configure:13507: too many arguments to function `getpwuid_r' Once I #defined the variable in pg_config.h, everything compiled fine, of course, but one shouldn't have to.... - DAP -----Original Message----- From: Jim Seymour [mailto:jseymour@linxnet.com] Sent: Tuesday, June 15, 2004 4:38 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] building 7.4.3 on Solaris 9/Intel "David Parker" <dparker@tazznetworks.com> wrote: > > Hi. I'm trying to build 7.4.3 on Solaris 9/Intel (gcc 3.2.2), and I > get the following: > > ====================================================================== > == > ================ > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes > -Wmissing-declarations -fPIC -I. -I../../../src/include -D_REENTRANT > -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND > -DSYSCONFDIR='"/home/dparker/servers/install/i386/etc/postgresql"' -c > -o thread.o thread.c > thread.c: In function `pqGetpwuid': > thread.c:119: too few arguments to function `getpwuid_r' > ====================================================================== > == > ================ [snip] 7.4.3? Are you sure? This should be fixed in 7.4.3. From an earlier reply I made to somebody in the [ADMIN] mailing list, regarding trying to build 7.4.2 on Solaris 8: This is fixed in CVS. Or you can apply this patch http://jimsun.linxnet.com/misc/pgsql-7.4.2.patch to a freshly-extracted 7.4.2 tarball (*before* running configure). Standard Disclaimer: No warranties, express or implied. I'm running 7.4.2 on both a Sparc Solaris 7 and a Sparc Solaris 8 machine, with that patch. Jim ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
pgsql-general by date: