Skip site navigation (1) Skip section navigation (2)

Re: Cleaning up multiply-defined-symbol warnings on OS X

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Cleaning up multiply-defined-symbol warnings on OS X
Date: 2006-04-28 01:36:56
Message-ID: 17555.1146188216@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> The problem is that the call to thread.c::pqGetpwuid() happens in a
> #ifndef WIN32 block, so the function is not seen by Win32, so we don't
> get a compile error.

> I am thinking your patch is a good idea because it will give us a
> non-Win32 platform that has the _check_ behavior.  We do have to bump
> the major for ecpg libs for this, but not libpq.

I just came across some documentation claiming that it's possible to do
similar exported-symbol filtering in Linux:
	http://people.redhat.com/%7edrepper/dsohowto.pdf
I'm going to see if I can make that work along the same lines as my
Darwin patch.  If we can get it going on both Linux and Darwin then
I think we'll have critical mass to make the change.

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-04-28 03:43:28
Subject: Re: [BUGS] BUG #2401: spinlocks not available on amd64
Previous:From: Bruce MomjianDate: 2006-04-28 00:45:00
Subject: Re: Cleaning up multiply-defined-symbol warnings on OS X

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group