Re: Re: [HACKERS] Call for platforms AIX 4.3.3 Failed - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Re: [HACKERS] Call for platforms AIX 4.3.3 Failed
Date
Msg-id Pine.LNX.4.30.0103212221420.1694-100000@peter.localdomain
Whole thread Raw
In response to Re: [HACKERS] Call for platforms AIX 4.3.3 Failed  (Gilles DAROLD <gilles@darold.net>)
List pgsql-general
Gilles DAROLD writes:

> I have now tested the --with-CXX option to compile libpq++ and it
> really don't work, here are the output :

> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_start_free
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_heap_size
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_free_list
> ld: 0711-317 ERROR: Undefined symbol: .__out_of_range(char const *)
> ld: 0711-317 ERROR: Undefined symbol: .__length_error(char const *)
> collect2: ld returned 8 exit status
> make[3]: *** [libpq++.so] Error 1
> make[3]: Leaving directory
> `/home/darold/postgresql-7.1beta6/src/interfaces/libpq++'
> make[2]: *** [all] Error 2

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.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: New Book: PostgreSQL: The Elephant Never Forgets
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: 7.1b6 - pg_xlog filled fs, postmaster won't start