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

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Ash Gokhale" <ash(at)aeria(dot)net>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: psqlodbc-08.02.0002 on os x tiger build fails, with workarounds
Date: 2006-07-02 15:02:02
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E401388CD4@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)aeria(dot)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(at)devi(dot)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
>

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message noreply 2006-07-02 23:06:29 [ psqlodbc-Bugs-1000678 ] Timeout Not Implemented
Previous Message noreply 2006-07-02 07:34:14 [ psqlodbc-Bugs-1000635 ] Failure with 08.02.0002 / 8.1.3: Cannot read ints of that length