Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7832DC2FBC7 for ; Sun, 27 May 2012 12:07:01 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SYf3Z-0001FM-JI for pgsql-odbc@postgresql.org; Sun, 27 May 2012 15:06:59 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4RF6hE6022547; Sun, 27 May 2012 11:06:43 -0400 (EDT) To: julia.jacobson@arcor.de cc: pgsql-odbc@postgresql.org Subject: Re: unixODBC fails to open psqlodbcw.so library on Mac OS X 10.4 In-reply-to: <604906052.623100.1338123997652.JavaMail.ngmail@webmail21.arcor-online.net> References: <604906052.623100.1338123997652.JavaMail.ngmail@webmail21.arcor-online.net> Comments: In-reply-to julia.jacobson@arcor.de message dated "Sun, 27 May 2012 15:06:37 +0200" Date: Sun, 27 May 2012 11:06:43 -0400 Message-ID: <22546.1338131203@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/15 X-Sequence-Number: 10853 julia.jacobson@arcor.de writes: > Moreover, all required dependencies of the library are present on the machine: > MacMini:~ user$ otool -L /Library/PostgreSQL/psqlODBC/lib/psqlodbcw.so > /Library/PostgreSQL/psqlODBC/lib/psqlodbcw.so: > /usr/lib/libltdl.3.dylib (compatibility version 5.0.0, current version 5.4.0) > /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) > @loader_path/libpq.5.dylib (compatibility version 5.0.0, current version 5.4.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4) > /usr/lib/libiodbc.2.dylib (compatibility version 4.0.0, current version 4.17.0) > /usr/lib/libiodbcinst.2.dylib (compatibility version 4.0.0, current version 4.17.0) > /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) Hm, what's that "@loader_path" business? I don't know much about dynamic linking on OS X, but if that works at all, it must be some sort of environment reference, which would be pretty fragile. I'd suggest asking EnterpriseDB whether that's meant to be like that or is a packaging bug. And if it is meant to be like that, what do you have to do to ensure the reference is resolved correctly? regards, tom lane