Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds
От | Dave Page |
---|---|
Тема | Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds |
Дата | |
Msg-id | E7F85A1B5FF8D44C8A1AF6885BC9A0E401388CD4@ratbert.vale-housing.co.uk обсуждение исходный текст |
Ответы |
Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds
|
Список | pgsql-odbc |
Please send future bug reports/patches to the mailing list, not directly to me (I rarely work on ODBC atm). I've forwarded this there. Thanks, Dave. > -----Original Message----- > From: Ash Gokhale [mailto:ash@aeria.net] > Sent: 30 June 2006 23:44 > To: Dave Page > Subject: psqlodbc-08.02.0002 on os x tiger build fails, with > workarounds > > the build fails with: > > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -MT > options.lo -MD -MP -MF .deps/options.Tpo -c options.c -fno-common - > DPIC -o .libs/options.o > options.c:288: error: conflicting types for 'PGAPI_SetConnectOption' > pgapifunc.h:126: error: previous declaration of > 'PGAPI_SetConnectOption' was here > make[1]: *** [options.lo] Error 1 > make: *** [all] Error 2 > > my patch is thus: > root@devi.local:psqlodbc-08.02.0002}diff options.c oldoptions.c > {root@/dev/ttyp3 > 287c287 > < SQLUINTEGER vParam) > --- > > SQLULEN vParam) > Exit 1 > > Then it refuses to link: > gcc -o .libs/psqlodbc.so -bundle .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/ > odbcapiw.o .libs/odbcapi30w.o .libs/win_unicode.o > -L/usr/local/lib -lpq > /usr/bin/ld: Undefined symbols: > _SSL_get_error > _SSL_read > _SSL_write > _SQLGetPrivateProfileString > _SQLWritePrivateProfileString > collect2: ld returned 1 exit status > make: *** [psqlodbc.la] Error 1 > > It needed -liodbc -liodbcinst -lssl hacked into the > Makefile added > libs, then it linked. Life is too short to fix auto config!! > > cheers, > >ash >
В списке pgsql-odbc по дате отправления: