[Mod_transform] Issue finding ${top_srcdir}/include when compiling
outside the tree
Sander van Zoest
sander-mod-transform at vanZoest.com
Wed Oct 5 20:40:31 EST 2005
Hi All,
First of nice module. I have been wanting to write something like this,
but I guess you beat me too it. Good stuff.
I am attempting to compile mod_transform 0.6.0 on Debian Linux using the following
config.nice configuration.
------< config.nice >---------
#! /bin/sh
#
# Created by configure
"../../../mod_transform-0.6.0/configure" \
"--with-apxs=/usr/bin/apxs2" \
"--with-xslt-prefix=/usr" \
"--with-xml-prefix=/usr" \
"--prefix=/home/sander/build/mod_transform/linux/"
\
"$@"
------------------------------
Where "mod_transform-0.6.0" is the untarred directory downloaded from
<http://www.outoforder.cc/projects/apache/mod_transform/>.
When compiling outside of the distribution directory the compiler can
not find "mod_transform-0.6.0/include/mod_transform_private.h"
If I hand code a -I${top_srcdir}/include to COMPILE in src/Makefile it
compiles fine.
I am not exactly sure how you would like to see this added to the autoconf
setup, so I figured I'd ask. If you want me to take a stab at modifing
configure.ac to have it include this path, let me know, but I am not sure
how you would like to see this addressed.
Any suggestions?
---< make output >---
<snip>
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../mod_transform-0.6.0/src -I../include -Wall -I/usr/include/libxml2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -g -O2 -MT libmod_transform_la-mod_transform.lo -MD -MP -MF ".deps/libmod_transform_la-mod_transform.Tpo" -c -o libmod_transform_la-mod_transform.lo `test -f 'mod_transform.c' || echo '../../../../mod_transform-0.6.0/src/'`mod_transform.c; \
then mv -f ".deps/libmod_transform_la-mod_transform.Tpo" ".deps/libmod_transform_la-mod_transform.Plo"; else rm -f ".deps/libmod_transform_la-mod_transform.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../../../../mod_transform-0.6.0/src -I../include -Wall -I/usr/include/libxml2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -g -O2 -MT libmod_transform_la-mod_transform.lo -MD -MP -MF .deps/libmod_transform_la-mod_transform.Tpo -c ../../../../mod_transform-0.6.0/src/mod_transform.c -fPIC -DPIC -o .libs/libmod_transform_la-mod_transform.o
../../../../mod_transform-0.6.0/src/mod_transform.c:24:35: mod_transform_private.h: No such file or directory
../../../../mod_transform-0.6.0/src/mod_transform.c: In function `transform_error_cb':
../../../../mod_transform-0.6.0/src/mod_transform.c:28: error: `va_list' undeclared (first use in this function)
../../../../mod_transform-0.6.0/src/mod_transform.c:28: error: (Each undeclared identifier is reported only once
<snip>
--
Sander van Zoest
San Diego, CA, US
http://Sander.vanZoest.com/
More information about the Mod_transform
mailing list