[xsl] undefined reference to `xmlXPathContextSetCache'

Subject: [xsl] undefined reference to `xmlXPathContextSetCache'
From: Nicolas Ecarnot <nicolas@xxxxxxxxxxx>
Date: Thu, 04 Jan 2007 18:53:45 +0100
Hello,

Under OpenBSD 3.9, I'm trying to compile libxslt-1.1.17.
I just downloaded the tar.gz file, untared it, and tried the default
configure/make usual way.
I also tried with many sets of options, the maximum longest command line being :
./configure --prefix=/usr/local --without-plugins --without-crypto
--without-python --disable-static --enable-shared

I tried it with so many combinations I can't remember all.

In every cases, here is what I get :

[...]
[...many subdirectories compiling very well...]
[...]
Making all in xsltproc
/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
/usr/local/lib/libxml2.so.9.0: warning: strcpy() is almost always misused,
please use strlcpy()
/somefolder/tmp/libxslt-1.1.17/libxslt/.libs/libxslt.so.2.17: warning: sprintf()
is often misused, please use snprintf()
/usr/local/lib/libxml2.so.9.0: warning: strcat() is almost always misused,
please use strlcat()
/somefolder/tmp/libxslt-1.1.17/libxslt/.libs/libxslt.so.2.17: undefined
reference to `xmlXPathContextSetCache'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /somefolder/tmp/libxslt-1.1.17/xsltproc (line 311 of Makefile).
*** Error code 1

Stop in /somefolder/tmp/libxslt-1.1.17 (line 445 of Makefile).
*** Error code 1

Stop in /somefolder/tmp/libxslt- 1.1.17 (line 274 of Makefile).



May you explain me if there's a way to correct that ?

--
Nicolas Ecarnot

Current Thread