Re: Re: [HACKERS] Call for platforms AIX 4.3.3 Failed

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Gilles DAROLD <gilles(at)darold(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: [HACKERS] Call for platforms AIX 4.3.3 Failed
Date: 2001-03-21 21:25:55
Message-ID: Pine.LNX.4.30.0103212221420.1694-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2001-03-21 21:33:22 Re: hang on (was: New Book: PostgreSQL: The Elephant Never Forgets)
Previous Message Mikheev, Vadim 2001-03-21 21:24:16 RE: 7.1b6 - pg_xlog filled fs, postmaster won't start

Browse pgsql-hackers by date

  From Date Subject
Next Message Gilles DAROLD 2001-03-21 21:37:39 Re:Call for platforms AIX 4.3.3 Failed
Previous Message Bruce Momjian 2001-03-21 21:17:22 New Unapplied Patches web page