[xml] Building libxml2-2.6.16 on HP-UX 11i

Hi, I'm trying to build libxml2 with python bindings, zlib and iconv for

./configure --prefix=/h/dsbuild/hvaoyv/src/install/
--with-python=pythonloc --with-zlib=zlibloc --with-iconv=iconvloc

First I am halted by an error with the linker:

/usr/bin/ld -b +h libxml2.sl.8
-o .libs/libxml2.sl.8.16  .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  +b 
/h/dsbuild/build/hp-ux11.11-9000.800/libxml-2.6.11-iconv-newpyton-python-000/install/iconv/lib -lpthread 
-lm -lc
/usr/bin/ld: Invalid loader fixup in text space needed in output file
for symbol "$000003F1" in input file: ".libs/entities.o". Make sure it
was compiled with +z/+Z.

Then I set CFLAGS=+z and the make step completes, but when I do make
install it breaks with the following:

/bin/sh ../libtool --mode=install /fs/build/bin/install -c
libtool: install: warning: relinking `libxml2mod.la'
(cd /h/dsbuild/hvaoyv/src/libxml2-2.6.16/python; /bin/sh ../libtool
--mode=relink cc +z -Wp,-H30000 -o libxml2mod.la
 -module -avoid-version -L../.libs libxml.lo types.lo libxml2-py.lo ../libxml2.la )

*** Warning: linker path does not have real file for library -lxml2.
*** I have the capability to make that library automatically link in
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libxml2 and none of the candidates passed a file format test
*** using a file magic. Last file
checked: /h/dsbuild/hvaoyv/src/libxml2-2.6.16/.libs/libxml2.sl.8.16

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libxml2mod.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
ar cru .libs/libxml2mod.a  libxml.o types.o libxml2-py.o
ranlib .libs/libxml2mod.a
creating libxml2mod.la
(cd .libs && rm -f libxml2mod.la && ln -s ../libxml2mod.la
-c .libs/libxml2mod.slT 
/fs/build/bin/install: .libs/libxml2mod.slT: No such file or directory


.slT? What kind of file is that? I want it to say .sl. I suppose
something is wrong with libtool, or? Could anyone help? Also shouldn't
configure detect the need for +z?

In advance thanks..
Øyvind Hvamstad <oyvind hvamstad net>

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