Connecting Tech Pros Worldwide Help | Site Map

Undefined Symbols when building xerces on AIX 5.1 32 bit machine

Stu
Guest
 
Posts: n/a
#1: Jul 20 '05
I am trying to build the xerces shared library with 2.3.0 version of
their source code on an AIX 5.1 32 bit machine with the following
version of the g++ compiler

/usr/local/bin/g++ -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --disable-nls
Thread model: aix
gcc version 3.3.1


First I run "runConfigure -paix -cgcc" and than do a gmake. It appears
that all the source code gets compiled with g++ and is generated into
..o's.

At link time xerces is calling makeC++SharedLib_r (see below) and I
get the following undefined symbols: Can you tell me exactly what you
did to compile your version of xerces source code on AIX. Your help
would be very much appreciated.

makeC++SharedLib_r -p 5000 -brtl -o
/rdbms/xerces/lib/libxerces-c23.0.so
(all *.o's) -bmap:/rdbms/xerces/obj/libxerces-c23.0.map -l
pthreads -L/usr/lpp/xlC/lib

ld: 0711-317 ERROR: Undefined symbol:
_ZTVN10__cxxabiv120__si_class_type_infoE
ld: 0711-317 ERROR: Undefined symbol: __cxa_pure_virtual
ld: 0711-317 ERROR: Undefined symbol:
_ZTVN10__cxxabiv117__class_type_infoE
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-317 ERROR: Undefined symbol: ._ZdlPv
ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
ld: 0711-317 ERROR: Undefined symbol: .__cxa_allocate_exception
ld: 0711-317 ERROR: Undefined symbol: .__cxa_throw
ld: 0711-317 ERROR: Undefined symbol: ._Znam
ld: 0711-317 ERROR: Undefined symbol: ._ZdaPv
ld: 0711-317 ERROR: Undefined symbol: ._Znwm
ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch
ld: 0711-317 ERROR: Undefined symbol: .__cxa_rethrow
ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch
ld: 0711-317 ERROR: Undefined symbol:
_ZTVN10__cxxabiv116__enum_type_infoE
ld: 0711-317 ERROR: Undefined symbol: _ZTIi
ld: 0711-317 ERROR: Undefined symbol:
_ZTVN10__cxxabiv121__vmi_class_type_infoE
ld: 0711-317 ERROR: Undefined symbol: .__fixunssfsi
ld: 0711-317 ERROR: Undefined symbol: _ZSt4cout
ld: 0711-317 ERROR: Undefined symbol: ._ZNSo5flushEv
ld: 0711-317 ERROR: Undefined symbol: ._ZNSo5writeEPKcl
ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitD1Ev
ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitC1Ev
gmake[1]: *** [/rdbms/xerces/lib/libxerces-c23.0.so] Error 8
gmake[1]: Target `ALL' not remade because of errors.
gmake[1]: Leaving directory `/rdbms/xerces/obj'
gmake: *** [/rdbms/xerces/lib/libxerces-c23.0.so] Error 2
Stu
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Undefined Symbols when building xerces on AIX 5.1 32 bit machine


beefstu350@hotmail.com (Stu) wrote in message news:<a4229355.0311051135.2008190c@posting.google. com>...[color=blue]
> I am trying to build the xerces shared library with 2.3.0 version of
> their source code on an AIX 5.1 32 bit machine with the following
> version of the g++ compiler
>
> /usr/local/bin/g++ -v
> Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.1/specs
> Configured with: ../gcc-3.3.1/configure --disable-nls
> Thread model: aix
> gcc version 3.3.1
>
>
> First I run "runConfigure -paix -cgcc" and than do a gmake. It appears
> that all the source code gets compiled with g++ and is generated into
> .o's.
>
> At link time xerces is calling makeC++SharedLib_r (see below) and I
> get the following undefined symbols: Can you tell me exactly what you
> did to compile your version of xerces source code on AIX. Your help
> would be very much appreciated.
>
> makeC++SharedLib_r -p 5000 -brtl -o
> /rdbms/xerces/lib/libxerces-c23.0.so
> (all *.o's) -bmap:/rdbms/xerces/obj/libxerces-c23.0.map -l
> pthreads -L/usr/lpp/xlC/lib
>
> ld: 0711-317 ERROR: Undefined symbol:
> _ZTVN10__cxxabiv120__si_class_type_infoE
> ld: 0711-317 ERROR: Undefined symbol: __cxa_pure_virtual
> ld: 0711-317 ERROR: Undefined symbol:
> _ZTVN10__cxxabiv117__class_type_infoE
> ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
> ld: 0711-317 ERROR: Undefined symbol: ._ZdlPv
> ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
> ld: 0711-317 ERROR: Undefined symbol: .__cxa_allocate_exception
> ld: 0711-317 ERROR: Undefined symbol: .__cxa_throw
> ld: 0711-317 ERROR: Undefined symbol: ._Znam
> ld: 0711-317 ERROR: Undefined symbol: ._ZdaPv
> ld: 0711-317 ERROR: Undefined symbol: ._Znwm
> ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch
> ld: 0711-317 ERROR: Undefined symbol: .__cxa_rethrow
> ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch
> ld: 0711-317 ERROR: Undefined symbol:
> _ZTVN10__cxxabiv116__enum_type_infoE
> ld: 0711-317 ERROR: Undefined symbol: _ZTIi
> ld: 0711-317 ERROR: Undefined symbol:
> _ZTVN10__cxxabiv121__vmi_class_type_infoE
> ld: 0711-317 ERROR: Undefined symbol: .__fixunssfsi
> ld: 0711-317 ERROR: Undefined symbol: _ZSt4cout
> ld: 0711-317 ERROR: Undefined symbol: ._ZNSo5flushEv
> ld: 0711-317 ERROR: Undefined symbol: ._ZNSo5writeEPKcl
> ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitD1Ev
> ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitC1Ev
> gmake[1]: *** [/rdbms/xerces/lib/libxerces-c23.0.so] Error 8
> gmake[1]: Target `ALL' not remade because of errors.
> gmake[1]: Leaving directory `/rdbms/xerces/obj'
> gmake: *** [/rdbms/xerces/lib/libxerces-c23.0.so] Error 2[/color]

Just wanted to update this post since I appeared to found the answer.
I replaced makeC++SharedLib_r -p 5000 -brtl with g++ -o
/rdbms/xerces/lib/libxerces-c23.0.so -Wl,-bloadmap:map.txt -shared \

and the undefines disappered.
Closed Thread