Joe Cusick wrote:
Hi All,
I hope someone can help me here.
I am trying to compile xerces c++ on solaris 10 (sparc) using GCC 4.4.0 and
am having problems getting it to link, when the make file issues this
command
g++ -shared -nostdlib -L/usr/local/gcc-4.4.0/lib -R/usr/local/gcc-4.4.0/lib
-L/usr/local/gcc-4.4.0/lib/sparcv9 -R/usr/local/gcc-4.4.0/lib/sparcv9
-L/usr/local/db/lib -L/usr/local/gcc/lib/sparcv9
-R/usr/local/gcc/lib/sparcv9 -L/usr/local/gcc/lib/ -R/usr/local/gcc/lib
-L/usr/local/openssl/lib -L/usr/local/lib/courier-authlib -m32
/usr/local/gcc-4.4.0/lib/gcc/sparc-sun-solaris2.10/4.4.0/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/gcc-4.4.0/lib/gcc/sparc-sun-solaris2.10/4.4.0/crtbegin.o
xercesc/util/.libs/Base64.o xercesc/util/.libs/BinFileInputStream.o
xercesc/util/.libs/BinInputStream.o xercesc/util/.libs/BinMemInputStream.o
xercesc/util/.libs/BitSet.o xercesc/util/.libs/DefaultPanicHandler.o
xercesc/util/.libs/EncodingValidator.o xercesc/util/.libs/HeaderDummy.o
xercesc/util/.libs/HexBin.o xercesc/util/.libs/KVStringPair.o
,,,,,
../../.. /usr/local/gcc-4.4.0/lib/libstdc++.a -lm -lgcc
/usr/local/gcc-4.4.0/lib/gcc/sparc-sun-solaris2.10/4.4.0/crtend.o
/usr/local/gcc-4.4.0/lib/gcc/sparc-sun-solaris2.10/4.4.0/crtn.o -pthreads
-m32 -Wl,-h -Wl,libxerces-c-3.0.so -o .libs/libxerces-c-3.0.so
I get this error
ld: fatal: relocation error: R_SPARC_TLS_LE_HIX22: file
/usr/local/gcc-4.4.0/lib/libstdc++.a(eh_globals.o): symbol <unknown>: bad
symbol type SECT: symbol type must be TLS
collect2: ld returned 1 exit status
I see the configure parameters on the xerces website to compile using sun
studio but not using GCC, does anyone know how to get this package to build
correctly in my environment.
I tried to suggest we use sun studio but my bosses are set on using GCC.
This appears to be a bug with the Sun linker:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29986
You might want to use an earlier version of GCC that's built by Sun, or
build gcc 4.4 and configure it to use the GNU toolchain.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]