Re:Call for platforms AIX 4.3.3 Failed

From: Gilles DAROLD <gilles(at)darold(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re:Call for platforms AIX 4.3.3 Failed
Date: 2001-03-21 21:37:39
Message-ID: 3AB91F23.9F865D8D@darold.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Peter Eisentraut wrote:

> This could be a name mangling problem. Maybe the linker needs to be
> invoked specially when building C++ libraries. Maybe the C++ compiler
> driver needs to be invoked directly. This could especially be a problem
> if you're using the GNU compiler with system libraries, since those are
> usually compiled by the system compiler.
>
> > I have change the Makefile.global and replace c++ by g++ but it the same
> > output.
>
> I think the good C++ compiler on AIX is called xlC. In any case, make
> sure that you don't mix different C++ compilers. You need to do 'gmake
> clean' at least in the libpq++ directory if you're switching.

AIX faq said that xlC compiler don't work with libpq++ but with g++ it
may works :

> libpq++ does not work because xlC does not have the string and bool
classes.
> compiling the few files, that fail, with g++ does work.

Humm, I have no xlC compiler installed.Here are the compilation lines :

make[3]: Entering directory
`/home/darold/postgresql-7.1beta6/src/interfaces/libpq++'
g++ -O2 -Wall -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include -c -o pgconnection.o p
gconnection.cc
g++ -O2 -Wall -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include -c -o pgdatabase.o pgd
atabase.cc
g++ -O2 -Wall -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include -c -o pgtransdb.o pgtr
ansdb.cc
g++ -O2 -Wall -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include -c -o pgcursordb.o pgc
ursordb.cc
g++ -O2 -Wall -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include -c -o pglobject.o pglo
bject.cc
ar crs libpq++.a pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o
pglobject.o
touch libpq++.a
../../../src/backend/port/aix/mkldexport.sh libpq++.a > libpq++.exp
/usr/local/bin/gcc -Wl,-H512 -Wl,-bM:SRE
-Wl,-bI:../../../src/backend/postgres.imp -Wl,-bE:libpq++.exp -o libpq++.
so libpq++.a -L/usr/local/lib -L../../../src/interfaces/libpq -lpq -lc
ld: 0711-224 WARNING: Duplicate symbol: __start

All work until it want to link with libraries, it seems to want the libc
(-lc) and I don't
have it installed. Is it normal or this realease is not portable with AIX
4.3.3 ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christian Marschalek 2001-03-21 21:45:29 $PGDATA problem
Previous Message Joshua D. Drake 2001-03-21 21:33:22 Re: hang on (was: New Book: PostgreSQL: The Elephant Never Forgets)

Browse pgsql-hackers by date

  From Date Subject
Next Message bpalmer 2001-03-21 22:21:30 Re: Re: Final Call: RC1 about to go out the door ...
Previous Message Peter Eisentraut 2001-03-21 21:25:55 Re: Re: [HACKERS] Call for platforms AIX 4.3.3 Failed