You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Hartman, Paul" <PH...@axsone.com> on 2003/12/17 15:11:40 UTC

Linking Xalan/Xerces on AIX (Unresolved symbols)

Hi,

I was wondering if anybody has some insight on the following problem.

I compiled Xalan and Xerces source code on AIX 5.2 platform using
version 3.3.1. I than packaged the *.o files into a xalan.a and xerces.a
accordingly.

When I issue the following command:

xlc -o libaxsxlia.o -Wl,-bbigtoc -Wl,-bloadmap:map.txt  xerces.a xalan.a
-lpthreads_compat 

I come up with the following unresolved math symbols.

ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld: 0711-317 ERROR: Undefined symbol: .floor
ld: 0711-317 ERROR: Undefined symbol: .ceil
ld: 0711-317 ERROR: Undefined symbol: .acos
ld: 0711-317 ERROR: Undefined symbol: .asin
ld: 0711-317 ERROR: Undefined symbol: .atan
ld: 0711-317 ERROR: Undefined symbol: .atan2
ld: 0711-317 ERROR: Undefined symbol: .cos
ld: 0711-317 ERROR: Undefined symbol: .exp
ld: 0711-317 ERROR: Undefined symbol: .log
ld: 0711-317 ERROR: Undefined symbol: .pow
ld: 0711-317 ERROR: Undefined symbol: .sin
ld: 0711-317 ERROR: Undefined symbol: .tan

Further investigation shows that these symbols comming from
XalanEXSLTMath.o (see below). Does anybody have an idea on what I need
to do to resolve this issue.


ERROR: Undefined symbols were found.
    The following symbols are in error:
 Symbol                    Inpndx  TY CL Source-File(Object-File) OR
Import-File
{Shared-object}
                              RLD: Address  Section  Rld-type
Referencing Symbol
 
------------------------------------------------------------------------
-------
---------------
.acos                     [1946]  ER PR
/rdbms/xalan/c/src/xalanc/XalanEXSLT/Xa
lanEXSLTMath.cpp(/rdbms/xalan/c/obj/xalan.a[XalanEXSLTMath.o])

Thanks in advance for all that answer this post.

PBH


Re: Linking Xalan/Xerces on AIX (Unresolved symbols)

Posted by June Ng <ju...@ca.ibm.com>.
Hi Paul,

You need to link with libm.a for the math functions.

Cheers,
June K. Ng
XSLT Development
IBM Toronto Laboratory
Email: june@ca.ibm.com




"Hartman, Paul" <PH...@axsone.com> 
12/17/2003 09:11 AM
Please respond to
xalan-dev


To
<xa...@xml.apache.org>
cc

Subject
Linking Xalan/Xerces on AIX (Unresolved symbols)






Hi,

I was wondering if anybody has some insight on the following problem.

I compiled Xalan and Xerces source code on AIX 5.2 platform using
version 3.3.1. I than packaged the *.o files into a xalan.a and xerces.a
accordingly.

When I issue the following command:

xlc -o libaxsxlia.o -Wl,-bbigtoc -Wl,-bloadmap:map.txt  xerces.a xalan.a
-lpthreads_compat 

I come up with the following unresolved math symbols.

ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld: 0711-317 ERROR: Undefined symbol: .floor
ld: 0711-317 ERROR: Undefined symbol: .ceil
ld: 0711-317 ERROR: Undefined symbol: .acos
ld: 0711-317 ERROR: Undefined symbol: .asin
ld: 0711-317 ERROR: Undefined symbol: .atan
ld: 0711-317 ERROR: Undefined symbol: .atan2
ld: 0711-317 ERROR: Undefined symbol: .cos
ld: 0711-317 ERROR: Undefined symbol: .exp
ld: 0711-317 ERROR: Undefined symbol: .log
ld: 0711-317 ERROR: Undefined symbol: .pow
ld: 0711-317 ERROR: Undefined symbol: .sin
ld: 0711-317 ERROR: Undefined symbol: .tan

Further investigation shows that these symbols comming from
XalanEXSLTMath.o (see below). Does anybody have an idea on what I need
to do to resolve this issue.


ERROR: Undefined symbols were found.
    The following symbols are in error:
 Symbol                    Inpndx  TY CL Source-File(Object-File) OR
Import-File
{Shared-object}
                              RLD: Address  Section  Rld-type
Referencing Symbol
 
------------------------------------------------------------------------
-------
---------------
.acos                     [1946]  ER PR
/rdbms/xalan/c/src/xalanc/XalanEXSLT/Xa
lanEXSLTMath.cpp(/rdbms/xalan/c/obj/xalan.a[XalanEXSLTMath.o])

Thanks in advance for all that answer this post.

PBH