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/libstdc++.a(locale.o)
<unknown> 0xd0
/var/gnu/3.4.0/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../sparcv9/libstdc++.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