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 19BC914B281A for ; Tue, 10 Aug 2004 22:19:41 -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 55864-06 for ; Wed, 11 Aug 2004 01:19:38 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id CDBE914B2824 for ; Tue, 10 Aug 2004 22:19:33 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i7B1JIU29556; Tue, 10 Aug 2004 21:19:18 -0400 (EDT) From: Bruce Momjian Message-Id: <200408110119.i7B1JIU29556@candle.pha.pa.us> Subject: Re: 8.0.0beta1: -lpthread missing In-Reply-To: <200408101453.36209.xzilla@users.sourceforge.net> To: Robert Treat Date: Tue, 10 Aug 2004 21:19:18 -0400 (EDT) Cc: =?ISO-8859-1?Q?Martin_M=FCnstermann?= , pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (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, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/61 X-Sequence-Number: 8851 Robert Treat wrote: > > `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=/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 > problem? http://archives.postgresql.org/pgsql-hackers/2004-08/msg00525.php I looked at that. The line that does the tests is in config/acx_pthread.m4: acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-conf ig" so you should see that list tried. Does that help? I am majorly concerned that Slackware has the same problem as Unixware, meaning that if you use threading in the lib, you now need the flags on every applicaiton that uses the lib. -- 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