Undefined Symbols when building xerces on AIX 5.1 32 bit machine

Discussion in 'XML' started by Stu, Nov 5, 2003.

  1. Stu

    Stu Guest

    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, Nov 5, 2003
    #1
    1. Advertising

  2. Stu

    Stu Guest

    (Stu) wrote in message news:<>...
    > 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.
     
    Stu, Nov 6, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,802
    Timothy Bendfelt
    Jan 19, 2007
  2. Justin Johnson
    Replies:
    0
    Views:
    503
    Justin Johnson
    Jan 10, 2007
  3. Replies:
    4
    Views:
    1,107
    Jim Langston
    Nov 17, 2005
  4. harijay
    Replies:
    2
    Views:
    493
    Gabriel Genellina
    Feb 19, 2009
  5. teodell
    Replies:
    1
    Views:
    96
    teodell
    Apr 22, 2005
Loading...

Share This Page