Skip site navigation (1) Skip section navigation (2)

Re: Overly enthusiastic use of pg_config

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Overly enthusiastic use of pg_config
Date: 2006-10-27 18:31:36
Message-ID: 01be01c6f9f6$22db8280$0b01a8c0@yourc3ftrhkaod (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

From: "Peter Eisentraut"

> What was the point of this change?
> 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.

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/  -Wl,-soname -Wl, -o .libs/
(cd .libs && rm -f && ln -s ../
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/ 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/
/usr/home/saito/PSQLODBC/psqlodbc-08020105/.libs/ => /usr/lib/ (0x281b8000) => /usr/local/lib/ (0x281dd000)

Hiroshi Saito 

In response to

pgsql-odbc by date

Next:From: kashkonDate: 2006-10-28 02:05:49
Subject: Postgres 7.4 to Oracle 10g Migration with BLOBs
Previous:From: Peter EisentrautDate: 2006-10-27 12:01:04
Subject: Overly enthusiastic use of pg_config

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group