Have to tried installing PCRE as a separate package and then pointing ModSecurity configure flags to it?

--
Ryan Barnett

From: J M <jerome.m@gmail.com>
Reply-To: "mod-security-developers@lists.sourceforge.net" <mod-security-developers@lists.sourceforge.net>
Date: Mon, 27 Feb 2012 08:29:24 -0600
To: "mod-security-developers@lists.sourceforge.net" <mod-security-developers@lists.sourceforge.net>
Subject: [Mod-security-developers] Issue compiling "modsecurity-apache_2.6.4-rc1"

Hi All,


  I was trying to use 2.6.3 and thought that moving to 2.6.4 will help, unfortunately I'm stuck with the same issue:

  Configure:
      ./configure --with-apxs=/usr/local/
apache2/bin/apxs  --with-apu=/usr/local/apache2/bin/apu-config --with-apr=/usr/local/apache2/bin/apr-config

  OS: Redhat 5 - 64bit
  Apache 2.0.64

 
  Error:

  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[2]: *** [mod_security2_la-msc_pcre.lo] Error 1
make[2]: Leaving directory `/usr/local/src/modsecurity-apache_2.6.4-rc1/apache2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/modsecurity-apache_2.6.4-rc1/apache2'
make: *** [all-recursive] Error 1



tia,


This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.