Re: Cleaning up multiply-defined-symbol warnings on OS X - Mailing list pgsql-patches

From Martijn van Oosterhout
Subject Re: Cleaning up multiply-defined-symbol warnings on OS X
Date
Msg-id 20060509121451.GE29652@svana.org
Whole thread Raw
In response to Re: Cleaning up multiply-defined-symbol warnings on OS X  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Cleaning up multiply-defined-symbol warnings on OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Tue, May 09, 2006 at 01:50:38PM +0200, Peter Eisentraut wrote:
> Am Dienstag, 9. Mai 2006 10:41 schrieb Martijn van Oosterhout:
> > Depends what you mean by signature. The structures of PGconn and
> > PGresult have changed over time, so if you you pass a PGresult
> > allocated by libpq4 to a function in libpq3, it'll crash.
>
> Symbol versioning only affects functions (and maybe variables?) but not
> structs.  Nothing helps in that case.

Eh? It stops a program expecting libpq4 being linked to libpq3 for any
reason, so the above situation can't happen. You don't need to version
any structs, only the functions using them.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Have configure complain about unknown options
Next
From: Tom Lane
Date:
Subject: Re: Cleaning up multiply-defined-symbol warnings on OS X