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



Tom Epperly wrote:

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

Actually to get make to work, I needed to patch libtool as follows:

bash-2.05$ diff -c libtool~ libtool
*** libtool~    Wed Dec 17 10:26:01 2003
--- libtool     Wed Dec 17 10:41:25 2003
***************
*** 56,62 ****
 build_old_libs=yes
# Whether or not to add -lc for building shared libraries.
! build_libtool_need_lc=yes
# Whether or not to disallow shared libs when runtime libs are static
 allow_libtool_libs_with_static_runtimes=no
--- 56,62 ----
 build_old_libs=yes
# Whether or not to add -lc for building shared libraries.
! build_libtool_need_lc=no
# Whether or not to disallow shared libs when runtime libs are static
 allow_libtool_libs_with_static_runtimes=no
***************
*** 119,125 ****
 reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
# How to pass a linker flag through the compiler.
! wl=""
# Object file suffix (normally "o").
 objext="o"
--- 119,125 ----
 reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
# How to pass a linker flag through the compiler.
! wl="-Wl,"
# Object file suffix (normally "o").
 objext="o"
bash-2.05$

Please Cc me on replies because I am not a member of the mailing list.

Regards,

Tom




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