Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8A9BF9FA0B7 for ; Sat, 23 Dec 2006 14:07:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 13831-02 for ; Sat, 23 Dec 2006 14:07:01 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 507DB9F9A72 for ; Sat, 23 Dec 2006 14:07:01 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by svr4.postgresql.org (Postfix) with ESMTP id B2D055AF884 for ; Sat, 23 Dec 2006 18:07:00 +0000 (GMT) Received: from [4.238.181.250] (helo=mindspring.com) by elasmtp-banded.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1GyBGp-0000wp-CI; Sat, 23 Dec 2006 13:06:56 -0500 Received: (from lbayuk@localhost) by mindspring.com (8.13.7/8.13.7) id kBNI3fdE000432; Sat, 23 Dec 2006 13:03:41 -0500 Date: Sat, 23 Dec 2006 13:03:41 -0500 From: L Bayuk To: Michael Talbot-Wilson Cc: pgsql-interfaces@postgresql.org Subject: Re: pgtcl installation problem Message-ID: <20061223180341.GA402@mail.mindspring.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-ELNK-Trace: 7a0205cf9d42df0a5e89bb4777695beb69025943178dce0b465f97f20b22a87d56d439141e5ebf3c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 4.238.181.250 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200612/28 X-Sequence-Number: 6362 On Sat, Dec 23, 2006 at 08:52:15PM +1030, Michael Talbot-Wilson wrote: > I have installed postgresql 8.2.0 and pgtclng 1.5.3 but the > installation of pgtclng 1.5.3 is faulty. I hope someone can tell me > what I'm doing wrong. >... > couldn't load file "/usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so": > /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so: undefined symbol: > lo_export > while executing > "load /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so pgtcl" > ("package ifneeded" script) > invoked from within > "package require Pgtcl" > (file "./see" line 2) Wow. I have no idea why you would get undefined on (just) the lo_* calls. As Tom pointed out, those are in the PostgreSQL libpq library, whereas the Pg_lo_* functions you show as "T" are internal to Pgtclng. > With nm /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so I see > > U lo_close > ... This is normal. Those symbols are in libpq and nm will report them as undefined. You should also see "U" for PQclear, PQexec, and lots more beginning with "PQ". First thing to do is what Tom said: ldd /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so Let's see if it can find libpq. (Yes, if not it should have said that when you did "package require", but who knows.) I have noticed that the pgtclng build includes the path to libpq (rpath), where I think the original Pgtcl does not. In my testing, it meant that original Pgtcl won't run without the PostgreSQL library directory in LD_LIBRARY_PATH or /etc/ld.so.conf, and my pgtcl-ng won't run if you build it on one system and use it elsewhere with a different PostgreSQL library path. I think there are valid points on both sides, but I'm no expert.