[xml] Problem building .so for libxml2-2.6.3 on Linux using Intel's icc 7.0



xmlsoft.org isn't responding right now, so I couldn't do much searching to see if this has already been reported or fixed.

The libxml2-2.6.3 build fails when trying to make the libxml2.so.

bash-2.05$ icc -V Intel(R) C++ Compiler for 32-bit applications, Version 7.0 Build 20021021Z
Copyright (C) 1985-2002 Intel Corporation.  All rights reserved.

GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
 Supported emulations:
  elf_i386
  i386linux
  elf_i386_glibc21

Here is the end of make:

/bin/sh ./libtool --mode=link icc -c99 -g -Wall -wd869,1419 -o libxml2.la -rpath /usr/casc/babel/apps/linux_intel_compiler/lib -version-info 8:3:6 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 xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo chvalid.lo pattern.lo -lpthread -lz -lm icc -c99 -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/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 -lpthread -lz -lm -lc -soname libxml2.so.2 -o .libs/libxml2.so.2.6.3
icc: Command line warning: ignoring unknown option '-soname'
ld: cannot open libxml2.so.2: No such file or directory
make[2]: *** [libxml2.la] Error 1
make[2]: Leaving directory `/usr/casc/babel/apps/libxml2-2.6.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/casc/babel/apps/libxml2-2.6.3'
make: *** [all] Error 2
bash-2.05$ uname -a
Linux tux86.llnl.gov 2.4.20-perfctr245 #1 SMP Thu Oct 9 11:35:57 PDT 2003 i686 unknown


I was able to finish the compile by hand by modifying the link line to the following (removing -lc and using -Wl,):

bash-2.05$ icc -c99 -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/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  -lpthread -lz -lm   -Wl,-soname -Wl,libxml2.so.2 -o 
.libs/libxml2.so.2.6.3


Regards,

Tom




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