The build system in 2.6.0 was totally rewritten ... i will need to setup a debian 6 box to check it closer.

Thanks

Breno

On Mon, May 23, 2011 at 1:46 PM, Todd Woods <TWoods@linguisystems.com> wrote:

There’s an issue building 2.6.0 on Debian 6.0.1 with apache httpd 2.2.19.

2.5.13 compiles and runs tests with no errors.

Here’s the configure script

 

./configure --prefix=/usr/local/modsecurity-2.6.0 --with-apxs=/usr/local/apache-2.2.19/bin/apxs --with-pcre=/usr/bin/pcre-config --with-apr=/usr/local/apache-2.2.19/bin/apr-1-config --with-apu=/usr/local/apache-2.2.19/bin/apu-1-config

 

Didn’t see any errors during configuration.

 

Running make produces this error

 

/bin/bash ../libtool --tag=CC   --mode=link gcc -I/usr/local/apache-2.2.19/include  -I/usr/local/apache-2.2.19/include   -I/usr/local/apache-2.2.19/include -I/usr/include/libxml2  -g -O2 -no-undefined -module -avoid-version -lrt -lcrypt  -lpthread -ldl      -lexpat   -o mod_security2.la -rpath /usr/local/modsecurity-2.6.0/lib mod_security2_la-mod_security2.lo mod_security2_la-apache2_config.lo mod_security2_la-apache2_io.lo mod_security2_la-apache2_util.lo mod_security2_la-re.lo mod_security2_la-re_operators.lo mod_security2_la-re_actions.lo mod_security2_la-re_tfns.lo mod_security2_la-re_variables.lo mod_security2_la-msc_logging.lo mod_security2_la-msc_xml.lo mod_security2_la-msc_multipart.lo mod_security2_la-modsecurity.lo mod_security2_la-msc_parsers.lo mod_security2_la-msc_util.lo mod_security2_la-msc_pcre.lo mod_security2_la-persist_dbm.lo mod_security2_la-msc_reqbody.lo mod_security2_la-msc_geo.lo mod_security2_la-msc_gsb.lo mod_security2_la-acmp.lo mod_security2_la-msc_lua.lo mod_security2_la-msc_release.lo /usr/local/apache-2.2.19/lib/libapr-1.la  /usr/local/apache-2.2.19/lib/libaprutil-1.la -lxml2

libtool: link: gcc -shared  .libs/mod_security2_la-mod_security2.o .libs/mod_security2_la-apache2_config.o .libs/mod_security2_la-apache2_io.o .libs/mod_security2_la-apache2_util.o .libs/mod_security2_la-re.o .libs/mod_security2_la-re_operators.o .libs/mod_security2_la-re_actions.o .libs/mod_security2_la-re_tfns.o .libs/mod_security2_la-re_variables.o .libs/mod_security2_la-msc_logging.o .libs/mod_security2_la-msc_xml.o .libs/mod_security2_la-msc_multipart.o .libs/mod_security2_la-modsecurity.o .libs/mod_security2_la-msc_parsers.o .libs/mod_security2_la-msc_util.o .libs/mod_security2_la-msc_pcre.o .libs/mod_security2_la-persist_dbm.o .libs/mod_security2_la-msc_reqbody.o .libs/mod_security2_la-msc_geo.o .libs/mod_security2_la-msc_gsb.o .libs/mod_security2_la-acmp.o .libs/mod_security2_la-msc_lua.o .libs/mod_security2_la-msc_release.o   -Wl,-rpath -Wl,/usr/local/apache-2.2.19/lib -Wl,-rpath -Wl,/usr/local/apache-2.2.19/lib -lrt -lcrypt -lpthread -ldl -lexpat /usr/local/apache-2.2.19/lib/libapr-1.so /usr/local/apache-2.2.19/lib/libaprutil-1.so /usr/lib/libxml2.so    -Wl,-soname -Wl,mod_security2.so -o .libs/mod_security2.so

/usr/bin/ld: cannot find -lexpat

collect2: ld returned 1 exit status

make[2]: *** [mod_security2.la] Error 1

make[2]: Leaving directory `/home/twoods/modsecurity-apache_2.6.0/apache2'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/twoods/modsecurity-apache_2.6.0'

make: *** [all] Error 2

 

---------------

Todd Woods

Web Developer

LinguiSystems

309-755-2300

 


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
mod-security-developers mailing list
mod-security-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-developers
ModSecurity Services from Trustwave's SpiderLabs:
https://www.trustwave.com/spiderLabs.php