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: PostgreSQL general <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
- Subject: Re: [GENERAL] aix build question re: duplicate symbol warning
- Date: Thu, 27 Oct 2005 15:46:08 -0400
- Message-id: <23352(dot)1130442368(at)sss(dot)pgh(dot)pa(dot)us>
Kevin Murphy <murphy(at)genome(dot)chop(dot)edu> writes:
> I'm trying to build PG 8.1 beta on an AIX server.
> The 'make' finishes without errors, but I'm getting lots of duplicate
> symbol warnings like the following one. What am I to make of these?
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
> -fno-strict-aliasing -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE -o libpq.\
> so libpq.a -L../../../src/port -L../../../src/port -lnsl
> -Wl,-bI:../../../src/backend/postgres.imp -Wl,-bE:libpq.exp
> ld: 0711-224 WARNING: Duplicate symbol:
> .pqStrerror
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.
regards, tom lane
Home |
Main Index |
Thread Index