I can't get a program (ices2) that uses libxml2 to compile statically with this library. It fails in "./configure" process exposing this in config.log:
configure:20640: gcc -o conftest -g -O2 -I/home/pierre-luc/staticxml2//include/libxml2 -static conftest.c -L/ home/pierre-luc/staticxml2//lib -lxml2 -lz -lm >&5 /home/pierre-luc/staticxml2//lib/libxml2.a(nanohttp.o)(.text+0xc1b): In function `xmlNanoHTTPConnectHost': /home/pierre-luc/Desktop/libxml2-2.6.26/nanohttp.c:1004: warning: Using 'getaddrinfo' in statically linked app lications requires at runtime the shared libraries from the glibc version used for linking /home/pierre-luc/staticxml2//lib/libxml2.a(nanohttp.o)(.text+0xce5):/home/pierre-luc/Desktop/libxml2-2.6.26/na nohttp.c:1050: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking I tried building libxml2 with --disable-shared and it was doing the same as with the normal system library. I did the same on 3 different computers without much more success (two of them running Slackware and the other under Ubuntu). Would this be related the way ices2 implements libtool ? Should I recompile libxml2 in another way ? -- Pierre-Luc Bacon www.aqra.ca _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
