mod-xslt2 on FreeBSD with apache 2.1 Vincent Blondel
From: "Vincent Blondel" <vincent@xxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Subject: mod-xslt2 on FreeBSD with apache 2.1
Date: Mon, 1 Aug 2005 23:15:56 +0200
Importance: Normal
Hi everybody,
I got some servers running FreeBSD 4.11 with apache-2.1 located in
/opt/apache. I am completely new with mod-xslt2 and want to incorporate it
in my web package, so I am trying to compile last snapshot
modxslt-2005072000.tar.gz with these parameters :
but I encounter some problems. You can find below what I get on the console.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking build system type... i386-unknown-freebsd4.11
checking host system type... i386-unknown-freebsd4.11
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 16384
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the g++ linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for malloc... yes
checking for memcmp... yes
checking for memset... yes
checking for realloc... yes
checking for stat... yes
checking for vprintf... yes
checking for memset... (cached) yes
checking for strdup... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working memcmp... yes
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for function prototypes... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for xmlParseMemory in -lxml2... yes
checking for xsltApplyStylesheet in -lxslt... yes
checking for pcre_compile in -lpcre... yes
checking for xsltCopyTextString in -lxslt... yes
checking libxml/uri.h usability... yes
checking libxml/uri.h presence... yes
checking for libxml/uri.h... yes
checking libxml/tree.h usability... yes
checking libxml/tree.h presence... yes
checking for libxml/tree.h... yes
checking libxml/parserInternals.h usability... yes
checking libxml/parserInternals.h presence... yes
checking for libxml/parserInternals.h... yes
checking libxml/nanohttp.h usability... yes
checking libxml/nanohttp.h presence... yes
checking for libxml/nanohttp.h... yes
checking for xmlGetGlobalState in -lxml2... yes
checking for xmlNanoHTTPCtxt... no
configure: WARNING:
******************************************************
* Your libxml2 does not let applications access xmlNanoHTTPCtxt.
* This is not bad by itself, but any 404 or 403 or any error page
* returned by a remote host as a response to the request of a
* stylesheet or a dtd will be parsed as xml, leading to weird
* results. If you can live with it, ignore this warning.
* Ignore this warning also if you patched your library with
* patches/libxml.httpstatus.diff
* which cannot be easily detected. In any other case, you can
* apply the patch:
* patches/libxml.httpcontextexport.diff
* If you need further help, please read the doc/patches/patches.txt
* Compilation will go on anyway without problems.
******************************************************
checking for xmlSetGlobalState in -lxml2... no
configure: WARNING:
******************************************************
* Your libxml2 does not provide a setGlobalState.
* You probably haven't patched it. Please read the manual,
doc/manual/manual.txt.
* Compilation will go on anyway - I will compile a small compatibility
layer.
******************************************************
checking libxslt/xslt.h usability... yes
checking libxslt/xslt.h presence... yes
checking for libxslt/xslt.h... yes
checking libxslt/xsltInternals.h usability... yes
checking libxslt/xsltInternals.h presence... yes
checking for libxslt/xsltInternals.h... yes
checking libxslt/transform.h usability... yes
checking libxslt/transform.h presence... yes
checking for libxslt/transform.h... yes
checking libxslt/xsltutils.h usability... yes
checking libxslt/xsltutils.h presence... yes
checking for libxslt/xsltutils.h... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
configure: checking if pointers (void *) are at least 32 bits long...
configure: * Trying with: 'apache2'
configure: WARNING:
* Apache has been compiled with a different compiler than the specified (or
detected) one!
* I will use the same compiler as used by apache: 'cc'
* I'm also assuming 'cc' is ISO C and POSIX compliant.
checking for apr_send in -lapr-0... no
configure: error: apache2: 'apr-0' library found is not valid.
It seems 'configure' script doesn't find needed include files in
/opt/apache/include/apr1 and libraries in /opt/apache/lib.
I tried to change 'configure' script but without any success.
So, is mod-xslt2 compatible with apache-2.1 and if not could somebdy help me
to patch 'configure' and/or 'configure.ac' to add a new sapi option as
apache21 that would be compatible in my case with libapr-1 and not libapr-0.