X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A58F99DCA58 for ; Wed, 1 Feb 2006 08:49:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35731-09 for ; Wed, 1 Feb 2006 08:49:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id ADBE69DCA42 for ; Wed, 1 Feb 2006 08:49:15 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11CnIT12212; Wed, 1 Feb 2006 07:49:18 -0500 (EST) From: Bruce Momjian Message-Id: <200602011249.k11CnIT12212@candle.pha.pa.us> Subject: Re: Thread Safety problem on Solaris 10 In-Reply-To: <786c2f6d0602010411h4ab80223x84b53123cf4353f5@mail.gmail.com> To: Paul Mackay Date: Wed, 1 Feb 2006 07:49:18 -0500 (EST) CC: pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/2 X-Sequence-Number: 2292 I have no idea. I don't see you compiling in 64-bit mode, so you should be OK, and the failure is in initdb. Those missing functions should be in libc. Perhaps they are replaced somehow in threaded mode. --------------------------------------------------------------------------- Paul Mackay wrote: > Hi, > > I'm tring to compile PG 8.1.2 with the option --enable-thread-safety on > Solaris 10 (with AMD64 opteron). > > The gmake fails, ending with this output : > > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing initdb.o > -L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq > -L../../../src/port -L/opt/sfw/lib -Wl,-rpath,/usr/local/pgsql/lib -lpgport > -lz -lreadline -ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm -o > initdb > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `write@SUNW_0.9' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `fcntl@SUNW_0.9' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `pthread_sigmask@SUNW_0.9' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `close@SUNW_0.9' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `read@SUNW_0.9' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `poll@SUNW_1.2' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `sigaction@SUNW_0.9' > collect2: ld returned 1 exit status > gmake[3]: *** [initdb] Error 1 > gmake[3]: Leaving directory `/export/home0/postgres/pg_install/postgresql- > 8.1.2/src/bin/initdb' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory `/export/home0/postgres/pg_install/postgresql- > 8.1.2/src/bin' > gmake[1]: *** [all] Error 2 > gmake[1]: Leaving directory `/export/home0/postgres/pg_install/postgresql- > 8.1.2/src' > gmake: *** [all] Error 2 > > > > Help would be appreciated. > > Thanks, > Paul -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073