Undefined Symbols when building xerces on AIX 5.1 32 bit machine

S

Stu

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
 
S

Stu

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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top