Обсуждение: Postgres ODBC error
HI all,
I have installed the postgresql-7.2.3 in a Sun Solaris 2.8.
Because the need to get connection with another tool I have installed the libiodbc-3.51.2 (iODCC).
Next, doing:
$./configure –prefix= /app/common/postgres --enable-odbc --with-iodbc
Run OK
$make
I have the following error:
: libpsqlodbc.a
cc -Xa -G -h libpsqlodbc.so.0 -Wl,-Bsymbolic info.o bind.o columninfo.o connection.o convert.o drvconn.o environ.o execute.o lobj.o
md5.o misc.o options.o pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o statement.o tuple.o tuplelist.o dlg_specific.o odbc
api.o -lnsl -lsocket -lm -liodbcinst -R/app/common/postgres/lib -o libpsqlodbc.so.0.27
ld: fatal: symbol `_fini' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o type=FUNC; file psqlodbc.o type=FUNC);
ld: fatal: symbol `_init' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o type=FUNC; file psqlodbc.o type=FUNC);
ld: fatal: File processing errors. No output written to libpsqlodbc.so.0.27
make[3]: *** [libpsqlodbc.so.0.27] Error 1
make[3]: Leaving directory `/dw_app_new/common/postgres/postgresql-7.2.3/src/interfaces/odbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/dw_app_new/common/postgres/postgresql-7.2.3/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/dw_app_new/common/postgres/postgresql-7.2.3/src'
Nuno Pimenta