X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A118BD1B4E7 for ; Tue, 9 Sep 2003 23:57:02 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13653-02 for ; Tue, 9 Sep 2003 20:56:33 -0300 (ADT) Received: from cpc-gw2.cpc.net.au (unknown [210.9.248.93]) by svr1.postgresql.org (Postfix) with ESMTP id A35DBD1B536 for ; Tue, 9 Sep 2003 20:56:28 -0300 (ADT) Received: from utiba.com (ser1.cpc.net.au [192.168.0.19]) by Utiba Mail Gateway (2.2.2) with ESMTP id h89NuGl23467; Wed, 10 Sep 2003 09:56:16 +1000 Received: from pc37.cpc.net.au (pc37.cpc.net.au [192.168.0.37]) by Utiba Mail Thingy (0.0.2) with ESMTP id h89NuBx15859; Wed, 10 Sep 2003 09:56:11 +1000 Content-Type: text/plain; charset="iso-8859-1" From: Philip Yarra Organization: Utiba To: Tom Lane , Xinyu Hua Subject: Re: libpq.so.3 not found Date: Wed, 10 Sep 2003 09:56:10 +1000 User-Agent: KMail/1.4.3 Cc: pgsql-interfaces@postgresql.org References: <20777.1063079749@sss.pgh.pa.us> In-Reply-To: <20777.1063079749@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200309100956.10770.philip@utiba.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/16 X-Sequence-Number: 4434 On Tue, 9 Sep 2003 01:55 pm, Tom Lane wrote: > In that case I'm out of ideas :-(. Anyone else care to take a swing? I'm game - I hit a similar problem on my old Sparc box last night (not rela= ted=20 to libpq specifically). I did this: $ uname -a SunOS sparc4 5.6 Generic_105181-05 sun4m sparc SUNW,SPARCstation-4 $ gcc -lpthread test.c # this is Bruce's thread test app Undefined first referenced symbol in file gethostbyname /var/tmp/cc31rpyq.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status $ gcc -lpthread -lnsl test.c # this works libnsl contains the gethostbyname function... why on earth I had to tell th= e=20 linker to actually link against it, I do not know, especially since I didn'= t=20 need to tell it -L/usr/lib to locate the .so... maybe if you're still stuck= ,=20 try telling it to link against absolutely everything. Regards, Philip.