Re: [xsl] Configuring apache 1.3.3 with modxslt, libxml2 and libxslt

Subject: Re: [xsl] Configuring apache 1.3.3 with modxslt, libxml2 and libxslt
From: Daniel Bibbens <dbibbens@xxxxxxxxxx>
Date: Tue, 18 Jan 2005 08:34:02 -0800
prasannap@xxxxxx writes:

> Hello,
>
> Im trying to configure Apache 1.3.3 with modxslt.
> I installed libxml2-2.6.16, libxslt-1.1.12 and and then tried to install modxslt-2004112100.
>
> While trying to compile modxslt, I ran up to the following problem,
>
> Configuring modxslt: ./configure --with-sapi=apache1 --with-apxs='path-to-apxs' --with-xml2-config='path-to-xml2-config' --with-xslt-config='path-to-xslt-config'
>
> gcc -o .libs/modxslt-parse .libs/modxslt-parse.o  -L/usr/local/apps/xml/lib -L/usr/local/apps/lib ../lib/.libs/libmodxslt0.so
> ../lib/.libs/libmodxslt0.so: undefined reference to `xmlXIncludeProcessFlags'
> ../lib/.libs/libmodxslt0.so: undefined reference to `xsltSetCtxtParseOptions'
> ../lib/.libs/libmodxslt0.so: undefined reference to `xsltCopyTextString'
> ../lib/.libs/libmodxslt0.so: undefined reference to `xmlCtxtUseOptions'
>
> I have compiled and installed both libxml2 and libxslt successfully.
> I dont know which library to include in the library path. Could you please throw some light on me.
>
> Thanks,
> Prasanna
>

You're on the right track, but your 'include' and 'lib' are messed
up and the compiler is not finding them. You should have something
like this in your Makefile:

PREFIX=/usr/local

INCPREFIX=$(PREFIX)/include
LIBPREFIX=$(PREFIX)/lib

INC=-I$(INCPREFIX) -I$(INCPREFIX)/libxml2
LIB=$(LIBPREFIX)/libxml2.so $(LIBPREFIX)/libxslt.so

This is probably a topic best sent to the Apache modules list at:
http://modules.apache.org/
-- 
*----------------------------------------------------------------------*
|XOBJEX Research & Development Corp.            Daniel Bibbens, Partner|
|Santa Monica, California                            http://xobjex.com/|
|    +------------------------------------------------------------+    |	
|     Apache modules and other open-source projects for XSL & RSS      |
*----------------------------------------------------------------------*

Current Thread