Re: Re: [PATCHES] Fix for ODBC close

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [PATCHES] Fix for ODBC close
Date: 2001-02-10 11:55:58
Message-ID: 200102101155.GAA14141@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-odbc pgsql-patches

> Bruce Momjian writes:
>
> > > The -Bsymbolic switch is the same on all platforms that have it. You can
> > > link without it, but then you won't actually be able to use the ODBC
> > > driver. It seems like you need to link in a few other libraries to
> > > resolve all symbols.
> >
> > OK, if this is true on all platforms, why isn't -lc needed?
>
> Theory 1: Many other platforms use the compiler driver ([g]cc) to link
> shared libraries. That makes all the right things happen. Most likely
> this should happen on a lot more platforms that currently use ld directly.
>
> Theory 2: Not many people have tried to build the ODBC driver on
> non-mainstream platforms.

I just tried gcc and got:

#$ gcc -shared -soname libpsqlodbc.so.0 -Bsymbolic info.o bind.o
columninfo.o connection.o convert.o drvconn.o environ.o execute.o lobj.o
misc.o options.o pgtypes.o psqlodbc.o qresult.o results.o socket.o
parse.o statement.o gpps.o tuple.o tuplelist.o dlg_specific.o
-L/usr/local/lib -L/usr/contrib/lib -lm -o libpsqlodbc.so.0.26
gcc: unrecognized option `-soname'
gcc: file path prefix `symbolic' never used

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-02-10 12:03:19 Re: [GENERAL] MySQL -> Postgres dump converter
Previous Message Peter Eisentraut 2001-02-10 11:53:44 Re: [PATCHES] Fix for ODBC close

Browse pgsql-odbc by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-10 12:25:10 Re: Re: [PATCHES] Fix for ODBC close
Previous Message Peter Eisentraut 2001-02-10 11:53:44 Re: [PATCHES] Fix for ODBC close

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-10 12:25:10 Re: Re: [PATCHES] Fix for ODBC close
Previous Message Peter Eisentraut 2001-02-10 11:53:44 Re: [PATCHES] Fix for ODBC close