J M | 22 Feb 16:46 2012

Cant Compile modsecurity

Hi All,

  Would someone tell me what's wrong:

make[1]: Entering directory `/usr/local/src/modsecurity-apache_2.6.3/apache2'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE    -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include -I/usr/local/include -I/usr/include/libxml2  -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500        -g -O2 -MT mod_security2_la-msc_pcre.lo -MD -MP -MF .deps/mod_security2_la-msc_pcre.Tpo -c -o mod_security2_la-msc_pcre.lo `test -f 'msc_pcre.c' || echo './'`msc_pcre.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -g -O2 -MT mod_security2_la-msc_pcre.lo -MD -MP -MF .deps/mod_security2_la-msc_pcre.Tpo -c msc_pcre.c  -fPIC -DPIC -o .libs/mod_security2_la-msc_pcre.o
msc_pcre.c: In function ‘msc_pregcomp_ex’:
msc_pcre.c:70: error: invalid application of ‘sizeof’ to incomplete type ‘pcre_extra’
msc_pcre.c:74: error: invalid application of ‘sizeof’ to incomplete type ‘pcre_extra’
make[1]: *** [mod_security2_la-msc_pcre.lo] Error 1
make[1]: Leaving directory `/usr/local/src/modsecurity-apache_2.6.3/apache2'
make: *** [check-recursive] Error 1

configure: using pcre v8.21
checking for libapr config script... /usr/local/apache2/bin/apr-config
configure: using apr v0.9.19
checking for libapu config script... /usr/local/apache2/bin/apu-config
configure: using apu v0.9.19
checking for libxml2 config script... /usr/bin/xml2-config
configure: using libxml2 v2.6.26
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for liblua config script... no
checking for lua install... no
configure: optional lua library not found
checking for libcurl config script... /usr/bin/curl-config
checking if libcurl is at least v... yes, 7.15.5
checking if libcurl is linked with gnutls... no
configure: using curl v7.15.5

HTTP: httpd-2.0.64
OS: Rhel5 64 bit.


Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
mod-security-users mailing list
mod-security-users <at> lists.sourceforge.net
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs: