[xml] Build failure on Sparc solaris using gcc and binutils

Hi all,
on sparc solaris ./configure.in sets VERSION_SCRIPT_FLAGS to "-Wl,-M -Wl," no matter which compiler/linker is used. Unfortunately gnu gcc/ld does not like -M option for symbol files, which causes a build using gcc to fail. Instead good old "--version-script=" is expectd here.

Any idea how an additional check for gnu ld to be added to configure.in could look like? Wouldn't it be better to use ld from PATH or any magic variable instead of using hard wired /usr/bin/ld?

From configure.in
> $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \
>     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
> test "`uname`" == "SunOS" && \
>  if test -n "$VERSION_SCRIPT_FLAGS"; then
> ...

Maybe this is a no-brainer, but I have absoluteley no knowledge about configure scripts except of using them ;-)

Best regards,


CC=/net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/gcc-4.1.1/bin/gcc CXX=/net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/gcc-4.1.1/bin/g++ CFLAGS="-O3" ./configure --prefix=/net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/libxml2-2.7.6 --without-threads --without-http --without-ftp --without-zlib

/bin/bash ./libtool --tag=CC --mode=link /net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/gcc-4.1.1/bin/gcc -O3 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wl,-M -Wl,./libxml2.syms -version-info 9:6:7 -o libxml2.la -rpath /net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/libxml2-2.7.6/lib SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlstring.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo xmlmodule.lo schematron.lo -lm -lsocket -lnsl libtool: link: /net/solaris/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/gcc-4.1.1/bin/gcc -shared .libs/SAX.o .libs/entities.o .libs/encoding.o .libs/error.o .libs/parserInternals.o .libs/parser.o .libs/tree.o .libs/hash.o .libs/list.o .libs/xmlIO.o .libs/xmlmemory.o .libs/uri.o .libs/valid.o .libs/xlink.o .libs/HTMLparser.o .libs/HTMLtree.o .libs/debugXML.o .libs/xpath.o .libs/xpointer.o .libs/xinclude.o .libs/nanohttp.o .libs/nanoftp.o .libs/DOCBparser.o .libs/catalog.o .libs/globals.o .libs/threads.o .libs/c14n.o .libs/xmlstring.o .libs/xmlregexp.o .libs/xmlschemas.o .libs/xmlschemastypes.o .libs/xmlunicode.o .libs/xmlreader.o .libs/relaxng.o .libs/dict.o .libs/SAX2.o .libs/xmlwriter.o .libs/legacy.o .libs/chvalid.o .libs/pattern.o .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o -lm -lsocket -lnsl -lc -Wl,-M -Wl,./libxml2.syms -Wl,-soname -Wl,libxml2.so.2 -o .libs/libxml2.so.2.7.6
./libxml2.syms: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [libxml2.la] Error 1
make[2]: Leaving directory `/net/solaris/nobackup/pkg/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/libxml2-2.7.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/net/solaris/nobackup/pkg/buildenv/sparc-sun-solaris2.8/gcc-4.1.1/libxml2-2.7.6'

Matthias Jung
Email: matthias jung prismtech com
Phone: +49-30-440306-38
http://www.xtradyne.com | http://www.prismtech.com

* XTRADYNE Security Infrastructure - a PRISMTECH Product Line *

PrismTech GmbH
Schoenhauser Allee 6-7, D-10119 Berlin, Germany
Ust.-Id.-Nr.: DE814235971
Handelsregister: Amtsgericht Charlottenburg B HRB 96377 B
Geschäftsführer: Keith Raymond Steele

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]