Обсуждение: Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds

Поиск
Список
Период
Сортировка

Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds

От
"Dave Page"
Дата:
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
>

Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds

От
Peter Eisentraut
Дата:
Am Sonntag, 2. Juli 2006 17:02 schrieb Dave Page:
> > Subject: psqlodbc-08.02.0002 on os x tiger build fails, with
> > workarounds

The build is known to fail with newer iodbc versions (which is what is used on
Mac OS X).  There are more discussions on this in the mailing list archive.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/