Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds
am 02.07.2006 17:02:02 von Dave PagePlease 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]=20
> Sent: 30 June 2006 23:44
> To: Dave Page
> Subject: psqlodbc-08.02.0002 on os x tiger build fails, with=20
> workarounds
>=20
> the build fails with:
>=20
> 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 -=20
> 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
>=20
> 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
>=20
> Then it refuses to link:
> gcc -o .libs/psqlodbc.so -bundle .libs/info.o .libs/bind.o .libs/=20
> columninfo.o .libs/connection.o .libs/convert.o=20
> .libs/drvconn.o .libs/=20
> environ.o .libs/execute.o .libs/lobj.o .libs/win_md5.o .libs/=20
> misc.o .libs/options.o .libs/pgtypes.o .libs/psqlodbc.o .libs/=20
> qresult.o .libs/results.o .libs/socket.o .libs/parse.o .libs/=20
> statement.o .libs/tuple.o .libs/dlg_specific.o .libs/loadlib.o .libs/=20
> multibyte.o .libs/odbcapi.o .libs/descriptor.o .libs/=20
> odbcapi30.o .libs/pgapi30.o .libs/info30.o .libs/mylog.o .libs/=20
> 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
>=20
> It needed -liodbc -liodbcinst -lssl hacked into the=20
> Makefile added
> libs, then it linked. Life is too short to fix auto config!!
>=20
> cheers,
> >ash=20
>=20
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org