Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Undefined Symbols when building xerces on AIX 5.1 32 bit machine

Reply
Thread Tools

Undefined Symbols when building xerces on AIX 5.1 32 bit machine

 
 
Stu
Guest
Posts: n/a
 
      11-05-2003
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
 
Reply With Quote
 
 
 
 
Stu
Guest
Posts: n/a
 
      11-06-2003
http://www.velocityreviews.com/forums/(E-Mail Removed) (Stu) wrote in message news:<(E-Mail Removed). com>...
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reading binary data from a 32 bit machine on 64 bit machine harijay Python 2 02-19-2009 08:31 PM
putenv for AIX and ifdef for AIX ClownPleco C Programming 5 08-24-2007 02:15 PM
Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor Justin Johnson Python 0 01-10-2007 03:29 PM
Porting C++ application on 32 bit to 64 bit on AIX - ld : 0711-317 ERROR : Undefined symbol r.nikhilk@gmail.com C++ 4 11-17-2005 02:03 AM
Perl5.8.6 AIX 4.3.3 VAC4.4.0.3 - Undefined Symbols teodell Perl Misc 1 04-22-2005 06:57 PM



Advertisments