Thanks Dave for confirming this. I could build a version of xalan using
gcc 4.1.1.
However when I tried building my app, it moans about some standard c++
library.

Undefined                       first referenced
 symbol                             in file
std::ostrstream::ostrstream()       ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::istrstream::~istrstream()      ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::ostrstream::~ostrstream()      ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::ostrstream::str()              ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::istrstream::istrstream(char const*,
long)ReleaseAll/XSLTransformer.o64  (symbol belongs to implicit
dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)

Would you have any clue?

Thanks,
Debasis

-----Original Message-----
From: David Bertoni [mailto:dbert...@apache.org] 
Sent: 10 April 2010 20:00
To: xalan-c-users@xml.apache.org
Subject: Re: Xalan Build issue

On 4/9/2010 9:27 AM, Debasis Ray wrote:
> Hi,
>
> I am building Solaris 64 bit xalan 1.10 pointing to xerces 2_6. But
> getting some standard c++ error at link time.
>
> My environment details are below:
>
> *OS*: /var/gnu/3.4.0/lib/sparcv9> uname -a
>
> SunOS lndus0142 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire-480R
>
> *Gcc*:
>
> Reading specs from
/var/gnu/3.4.0/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
>
> Configured with: ../gcc-3.4.0/configure --prefix=/var/gnu/3.4.0
> --disable-nls --enable-languages=c,c++
>
> Thread model: posix
>
> gcc version 3.4.0
>
> The command I have used to configure xerces and xalan are:
>
> *Xerces(2_6)*
>
> ./runConfigure -psolaris -cgcc -xg++
> -P/nanfs02/home/dray/unix/xerces_2_6 -l -m64 -z -m64 -minmem -nsocket
> -tnative -rpthread
>
> *Xalan(1_10)*
>
> ./runConfigure -psolaris -c gcc -x g++
> -P/nanfs02/home/dray/unix/xalan_110_26 -l -m64 -z -m64 -z
> -Wno-deprecated -minmem -tnative -rpthread
>
> The xerces builds ok, but xalan gives the following error at link
time.
>
> Text relocation remains referenced
>
> against symbol offset in file
>
> <unknown> 0xc8
>
/var/gnu/3.4.0/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../sparcv9/libst
dc++.a(locale.o)
>
> <unknown> 0xd0
>
/var/gnu/3.4.0/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../sparcv9/libst
dc++.a(locale.o)
>
> Is there any compatibility issue between versions of gcc/g++, solaris,
> xerces and xalan? I have tried different permutations without any
luck,
> hence bit stuck at the moment.
>
> I would really appreciate any suggestion/help on this.
This comes up every so often. From what I remember, it's a bug in the 
Solaris tool chain or gcc. You might try building a newer version of gcc

and using that. You might also try the "-mimpure-text" compiler option. 
That may work around the problem, but it will mean the shared library 
won't really be shared.

Dave

********************************************************************************************************************************************************************************************
This message is intended only for the stated addressee(s) and may be 
confidential.  Access to this email by anyone else is unauthorised. Any 
opinions expressed in this email do not necessarily reflect the opinions of 
Fidessa. Any unauthorised disclosure, use or dissemination, either whole or in 
part is prohibited. If you are not the intended recipient of this message, 
please notify the sender immediately.

Fidessa plc - Registered office:
Dukes Court, Duke Street, Woking, Surrey, GU21 5BH, United Kingdom
Registered in England no. 3781700 VAT registration no. 688 9008 78

Fidessa LatentZero Limited  - Registered office:
Dukes Court, Duke Street, Woking, Surrey, GU21 5BH, United Kingdom
Registered in England no. 3656437 VAT registration no. 726 8371 13

Fidessa group plc - Registered Office:
Dukes Court, Duke Street, Woking, Surrey, GU21 5BH, United Kingdom
Registered in England no. 3234176 VAT registration no. 688 9008 78

Reply via email to