Re: [xslt] undefined reference to `xmlXPathContextSetCache'



2007/1/5, Jeroen Ruigrok/asmodai <asmodai in-nomine org>:
-On [20070105 09:38], Nicolas Ecarnot (nicolas ecarnot net) wrote:
>/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2 -Wall    -o xsltproc
>xsltproc.o  ../libxslt/libxslt.la  ../libexslt/libexslt.la  -L/usr/local/lib
>-lxml2 -lz -lpthread -lm -L/usr/local/lib -lxml2 -lz -lpthread -lm -lm
>gcc -g -O2 -Wall -o .libs/xsltproc xsltproc.o  -L/somefolder/tmp/libxslt-
>1.1.17/libxslt/.libs -L../libxslt/.libs -L/usr/local/lib -L../libexslt/.libs
>-lexslt -lxslt -lxml2 -lz -lpthread -lm -Wl,-rpath,/usr/local/lib
[snip]
>/somefolder/tmp/libxslt-1.1.17/libxslt/.libs/libxslt.so.2.17: undefined
>reference to `xmlXPathContextSetCache'

Obviously it cannot find xmlXPathContextSetCache(). This probably means that
the -lxml2 line is not working, i.e. it cannot find the libxml2 library. Do
you have this installed? Is it installed in /usr/local/lib? Is the name
libxml2.so.N, where N is a number or something else?

Hello,

Just before compiling the libxslt code, I downloaded, compile and installed libxml2-2.6.27 without any trouble. I just launched the configure script without any option, so the good old /usr/local directory was used as default.

Now, in /usr/local/lib, I see (amongst other things) :

libxml2.a
libxml2.la
libxml2.so.8.27
libxml2.so.9.0

Does that sound correct ?
Are there other things I could check ?

--
Nicolas Ecarnot

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