You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/10/30 16:11:37 UTC

DO NOT REPLY [Bug 24246] - Error compiling Xalan library on AIX 5.1

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24246>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24246

Error compiling Xalan library on AIX 5.1

phartman@axsone.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows XP                  |AIX
           Platform|PC                          |Other
            Summary|The number() function fails |Error compiling Xalan
                   |                            |library on AIX 5.1



------- Additional Comments From phartman@axsone.com  2003-10-30 15:11 -------
I download Xalan-C_1_6-AIX51_600.tar.gz and tried compiling the source code on 
AIX 5.1 32 bit machine using c++
 
/usr/local/bin/c++ -v
Reading specs from /opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-a
ix51-020209/specs
gcc version 2.9-aix51-020209
 
And I am getting the follwoing errors:
 
c++ -O -DNDEBUG      -fno-elide-constructors -qthreaded -DAIX -D_THREAD_SAFE -
I/stlport  -c -I/rdbms/xalan/c/src -I/rdbms/xerces/src/ -
I/rdbms/xerces/include/xercesc -I/rdbms/xerces/include/  -
o /rdbms/xalan/c/obj/DoubleSupport.o /rdbms/xalan/c/src/xalanc/PlatformSupport/D
oubleSupport.cpp
c++: unrecognized option `-
qthreaded'  /rdbms/xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp: In 
function `void __static_initialization_and_destruction_0 (int, int)':
/rdbms/xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp:96: non-lvalue in 
unary `&'
/rdbms/xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp:125: non-lvalue in 
unary `&'
gmake: *** [/rdbms/xalan/c/obj/DoubleSupport.o] Error 1
 
Line 96 of the code looks like this:
#if defined(_AIX)
const DoubleSupport::NumberUnion    DoubleSupport::s_NaN = { DBL_QNAN };
#else
....
#endif
 
I can seem to find DBL_QNAN in any header file.
 
Line 125 looks like this:
125  const DoubleSupport::NumberUnion        DoubleSupport::s_negativeZero =
{ modf(-7.0, &theDummy) };
 
Does anybody have any ideas on how to fix this ?