Hi Paul,

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

Cheers,
June K. Ng
XSLT Development
IBM Toronto Laboratory
Email: [EMAIL PROTECTED]



"Hartman, Paul" <[EMAIL PROTECTED]>

12/17/2003 09:11 AM

Please respond to
xalan-dev

To
<[EMAIL PROTECTED]>
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


Reply via email to