GNOME Bugzilla – Bug 161654
--with-libxml-libs-prefix is broken
Last modified: 2006-07-05 21:12:00 UTC
have one library for libxml in /usr/lib (old version). Build a new version elsewhere (new version). configure using ./configure --with-libxml-prefix=/home/fred/dist/usr \ --with-libxml-include-prefix=/home/fred/dist/usr/include/libxml2 \ --with-libxml-libs-prefix=/home/fred/dist/usr/lib configure works correctly, but when you make, you get the following error: (stuff...., and then) make[2]: Entering directory`/home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc' /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o xsltproc xsltproc.o ../libxslt/libxslt.la ../libexslt/libexslt.la -L../../../dist/usr/lib -L/usr/lib -lxml2 -lz -lpthread -lm -L../../../dist/usr/lib -L/usr/lib -lxml2 -lz -lpthread -lm -lm gcc -g -O2 -Wall -o .libs/xsltproc xsltproc.o ../libxslt/.libs/libxslt.so -L/home/fred/authdemo/dist/usr/lib -L/usr/lib ../libexslt/.libs/libexslt.so /home/fred/authdemo/libxslt/libxslt-1.1.12/libxslt/.libs/libxslt.so /usr/lib/libxml2.so -lz -lpthread -lm xsltproc.o: In function `xsltProcess': /home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc/xsltproc.c:377: undefined reference to `xmlXIncludeProcessFlags' /home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc/xsltproc.c:398: undefined reference to `htmlReadFile' (and more unimportant lines) It looks to me like the libtool line is correct (-L is given correctly), but the output of libtools is not (the /usr/lib location is specified). At any rate this is a real nusiance when trying to build a version on a system that you don't have root access on with older versions of libxml (as is the case in the example given). b
It appears that your trouble is caused by your libxml2 installation. When you want to do this sort of installation, the sequence should be: 1) configure libxml2 including "--prefix=/home/fred/dist/usr" 2) make, make install libxml2 3) configure libxslt including "--prefix=/home/fred/dist/usr --with-libxml-prefix=/home/fred/dist/ usr" I expect that if you try the command: /home/fred/dist/usr/bin/xml2-config --cflags --lflags you will see that your libxml2 is configured with it's libraries in /usr/lib. Please report the results. Bill
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information William asked for. Thanks!