Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A98889F9F7B for ; Fri, 27 Oct 2006 15:31:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 64728-10 for ; Fri, 27 Oct 2006 18:31:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.guitar.ocn.ne.jp (guitar.ocn.ne.jp [61.207.12.174]) by postgresql.org (Postfix) with ESMTP id 597149FA089 for ; Fri, 27 Oct 2006 15:31:36 -0300 (ADT) Received: from yourc3ftrhkaod (p5023-ipadfx01funabasi.chiba.ocn.ne.jp [218.43.105.23]) by smtp.guitar.ocn.ne.jp (Postfix) with SMTP id AA3201D65; Sat, 28 Oct 2006 03:31:33 +0900 (JST) Message-ID: <01be01c6f9f6$22db8280$0b01a8c0@yourc3ftrhkaod> From: "Hiroshi Saito" To: "Peter Eisentraut" Cc: References: <200610271401.05616.peter_e@gmx.net> Subject: Re: Overly enthusiastic use of pg_config Date: Sat, 28 Oct 2006 03:31:36 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/111 X-Sequence-Number: 8374 Hi. From: "Peter Eisentraut" > What was the point of this change? > > http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/psqlodbc/psqlodbc/configure.ac.diff?r1=1.52&r2=1.53 > > This ends up linking psqlodbc against all kinds of garbage. > > AFAICT, we did fine without that. Umm, It had one problem when it being nothing and building. See, gcc -shared .libs/info.o .libs/bind.o .libs/columninfo.o .libs/connection.o .libs/convert.o .libs/drvconn.o .libs/environ.o .libs/execute.o .libs/lobj.o .libs/win_md5.o .libs/misc.o .libs/options.o .libs/pgtypes.o .libs/psqlodbc.o .libs/qresult.o .libs/results.o .libs/socket.o .libs/parse.o .libs/statement.o .libs/tuple.o .libs/dlg_specific.o .libs/loadlib.o .libs/multibyte.o .libs/odbcapi.o .libs/descriptor.o .libs/odbcapi30.o .libs/pgapi30.o .libs/info30.o .libs/mylog.o .libs/odbcapi30w.o .libs/odbcapiw.o .libs/win_unicode.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/local/pgsql/lib -lpthread /usr/local/lib/libiodbcinst.so -Wl,-soname -Wl,psqlodbcw.so -o .libs/psqlodbcw.so creating psqlodbcw.la (cd .libs && rm -f psqlodbcw.la && ln -s ../psqlodbcw.la psqlodbcw.la) gmake[1]: Leaving directory `/usr/home/saito/PSQLODBC/psqlodbc-08020105' --- run test --- inet% iodbctest DSN=PostgreSQL iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0406.0126 1: SQLDriverConnect = [iODBC][Driver Manager]/usr/home/saito/PSQLODBC/psqlodbc-08020105/.libs/psqlodbcw.so: Undefined symbol "PQconnectdb" (0) SQLSTATE=00000 2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003 --- ldd check --- inet% ldd /usr/home/saito/PSQLODBC/psqlodbc-08020105/.libs/psqlodbcw.so /usr/home/saito/PSQLODBC/psqlodbc-08020105/.libs/psqlodbcw.so: libpthread.so.2 => /usr/lib/libpthread.so.2 (0x281b8000) libiodbcinst.so.3 => /usr/local/lib/libiodbcinst.so.3 (0x281dd000) Regards, Hiroshi Saito