Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 16178632FA4 for ; Thu, 15 Jul 2010 15:49:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 42174-06 for ; Thu, 15 Jul 2010 18:49:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id D559B632CC3 for ; Thu, 15 Jul 2010 15:49:47 -0300 (ADT) Received: by pwi5 with SMTP id 5so405469pwi.19 for ; Thu, 15 Jul 2010 11:49:45 -0700 (PDT) Received: by 10.114.79.1 with SMTP id c1mr21597254wab.118.1279219775819; Thu, 15 Jul 2010 11:49:35 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id s5sm8303510wak.12.2010.07.15.11.49.33 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Jul 2010 11:49:34 -0700 (PDT) Message-ID: <4C3F583C.50208@emolecules.com> Date: Thu, 15 Jul 2010 11:49:32 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: 8.3 to 8.4 - Can't load dynamic shared library Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/88 X-Sequence-Number: 35107 I'm migrating from Postgres 8.3.10 to 8.4.4, and also from Fedora 9 to Ubuntu 10.04. On 8.3.10, I have a C extension that worked on 8.3, but now refuses to load on 8.4: CREATE OR REPLACE FUNCTION chmoogle_session_id() RETURNS integer AS '/usr/local/pgsql/lib/libchmoogle.so', 'chmoogle_session_id' LANGUAGE 'C' VOLATILE; ERROR: could not load library "/usr/local/pgsql/lib/libchmoogle.so": /usr/local/pgsql/lib/libchmoogle.so: undefined symbol: _ZN9OpenBabel4etabE So it finds the first shared library, libchmoogle.so. But the symbol _ZN9OpenBabel4etabE is from a second library, the OpenBabel (chemistry) shared library, which is also located in /usr/local/pgsql/lib/libopenbabel.so On the Postgres 8.3 system, I simply put libopenbabel.so into the /usr/local/pgsql/lib directory, and everything worked well. On 8.4, I can't seem to get it to load libopenbabel.so. Other programs that use this library have no trouble finding it. What (if anything) has changed from 8.3 to 8.4 regarding how it finds and links dynamic libraries? What else should I look for? I'm stumped on this one. Thanks, Craig