Re: [GENERAL] aix build question re: duplicate symbol warning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] aix build question re: duplicate symbol warning
Date: 2005-10-27 20:09:20
Message-ID: 23535.1130443760@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I wrote:
> Hmm. pqStrerror is defined in libpgport (which is linked into the
> backend) as well as libpq. ISTM that libpq should not be linked with
> -Wl,-bI:../../../src/backend/postgres.imp, since it's not intended to
> be loaded into the backend. Without having looked at the code, I'm
> wondering if the AIX makefiles stick that option into LDFLAGS_SL rather
> than someplace more restricted.

It seems that the right place to put this is BE_DLLLIBS, which is a
macro that probably didn't exist when the AIX support was last looked
at. But both Windows and Darwin ports use it now, so we may as well
bring AIX up to speed. Would you try the attached patch and see if it
gets rid of the warnings? Also check that regression tests and contrib
build/regression tests still work.

regards, tom lane

Attachment Content-Type Size
aix.patch application/octet-stream 1.6 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith C. Perry 2005-10-27 20:14:04 Re: Why database is corrupted after re-booting
Previous Message Tom Lane 2005-10-27 19:46:08 Re: aix build question re: duplicate symbol warning

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2005-10-27 20:10:57 Re: ERROR: invalid memory alloc request size <a_big_number_here>
Previous Message Andrew Dunstan 2005-10-27 19:47:53 enums