X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BF39414B281A for ; Tue, 10 Aug 2004 15:53:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30032-06 for ; Tue, 10 Aug 2004 18:53:02 +0000 (GMT) Received: from lakermmtao10.cox.net (lakermmtao10.cox.net [68.230.240.29]) by svr1.postgresql.org (Postfix) with ESMTP id B961514B2800 for ; Tue, 10 Aug 2004 15:52:55 -0300 (ADT) Received: from [192.168.0.9] (really [68.101.86.96]) by lakermmtao10.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040810185254.FNGJ20148.lakermmtao10.cox.net@[192.168.0.9]>; Tue, 10 Aug 2004 14:52:54 -0400 From: Robert Treat To: Martin =?iso-8859-1?q?M=FCnstermann?= Subject: Re: 8.0.0beta1: -lpthread missing Date: Tue, 10 Aug 2004 14:53:36 -0400 User-Agent: KMail/1.6.2 Cc: pgsql-bugs@postgresql.org References: <41189210.4040104@betrusted.com> In-Reply-To: <41189210.4040104@betrusted.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408101453.36209.xzilla@users.sourceforge.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/53 X-Sequence-Number: 8843 On Tuesday 10 August 2004 05:14, Martin M=FCnstermann wrote: > System Configuration > --------------------- > Architecture (example: Intel Pentium) : Intel Pentium > > Operating System (example: Linux 2.4.18) : Linux 2.4.21-grsec > (Debian) > > PostgreSQL version (example: PostgreSQL-8.0): PostgreSQL-8.0.0-beta1 > > Compiler used (example: gcc 2.95.2) : 2.95.4 > > > Please enter a FULL description of your problem: > ------------------------------------------------ > When configuring --enable-thread-safety the binaries cannot be linked: > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes > -Wmissing-declarations initdb.o dirmod.o exe > c.o -L../../../src/interfaces/libpq -lpq -L../../../src/port > -Wl,-rpath,/opt/postgresql-800beta1/li > b -lpgport -lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -o initdb > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `pthread_getspecific' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `pthread_once' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `pthread_key_create' > ../../../src/interfaces/libpq/libpq.so: undefined reference to > `pthread_setspecific' > collect2: ld returned 1 exit status > > > > Please describe a way to repeat the problem. Please try to provide a > concise reproducible example, if at all possible: > ---------------------------------------------------------------------- > # ./configure --prefix=3D/opt/postgresql-800beta1 --enable-thread-safety > # make > > > If you know how this problem might be fixed, list the solution below: > --------------------------------------------------------------------- > The binaries must be linked with pthread (-lpthread). > Can you take a look at the thread below and report back if that fixes your= =20 problem? http://archives.postgresql.org/pgsql-hackers/2004-08/msg00525.php --=20 Robert Treat Build A Better Lamp :: Linux Apache {middleware} PostgreSQL