[kaffe] fix configure --enable-xslttest
Nektarios K. Papadopoulos
npapadop at inaccessnetworks.com
Wed Apr 13 05:12:58 PDT 2005
Hi,
I use CVS Head (or 1.1.5) on linux-x86. When I configure using --enable-xslttest
I get the following error:
...
checking for libxml - version >= 2.6.8... yes (version 2.6.16)
checking for xslt-config... /home/u2/npapadop/devel/libxsl/bin/xslt-config
checking for libxslt - version >= 1.1.11... no
*** Could not run libxslt test program, checking why...
*** The test program failed to compile or link. See the file config.log for
the
*** exact error that occured. This usually means LIBXSLT was incorrectly
installed
*** or that you have moved LIBXSLT since it was installed. In the latter case,
you
*** may want to edit the xslt-config script:
/home/u2/npapadop/devel/libxsl/bin/xslt-config
configure: error: unable to locate libxslt.
....
Looking in the config.log I see that:
...
configure:47806: checking for libxslt - version >= 1.1.11
configure:47913: gcc -o conftest -g -O2 -Wall -pthread
-I/home/u2/npapadop/devel/x86-linux-libxslt-1.1.13/include
-I/home/u2/npapadop/devel/x86-linux-libxml2-2.6.17/include/libxml2
-D_REENTRANT -DKAFFE_VMDEBUG -D_REENTRANT conftest.c
-L/home/u2/npapadop/devel/x86-linux-libxslt-1.1.13/lib
-L/home/u2/npapadop/devel/x86-linux-libxml2-2.6.17/lib -lxslt -lxml2 -lz
-lpthread -lm -L/usr/lib -lxml2 -lz -lpthread -lm >&5
conftest.c: In function `main':
conftest.c:246: error: `LIBXSLT_DOTTED_VERSION' undeclared (first use in this
function)
conftest.c:246: error: (Each undeclared identifier is reported only once
conftest.c:246: error: for each function it appears in.)
conftest.c:269: error: `LIBXSLT_VERSION_STRING' undeclared (first use in this
function)
....
I am using libxslt-1.1.13 from source. configure and make install to a directory
of my own. grep-ing the headers I see that the ofending LIBXSLT_VERSION_STRING
is defined in <libxslt/xsltconfig.h> which is never included.
The attached patch fixed this for me.
Cheers,
Nek
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvs/kaffe/kaffe/configure,v
retrieving revision 1.443
diff -u -r1.443 configure
--- configure 5 Apr 2005 03:32:32 -0000 1.443
+++ configure 13 Apr 2005 12:08:41 -0000
@@ -47843,6 +47843,7 @@
#include <stdio.h>
#include <string.h>
#include <libxslt/xslt.h>
+#include <libxslt/xsltconfig.h>
int
main()
{
More information about the kaffe
mailing list