I'm dealing with this problems a couple of weeks and i can't get it to work.. Still a beginner and learning my way into Linux. I will first show the error, and i will tell what i think is wrong:
I try to make mod_security but i get this error:
__________________________________________>
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX =2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apr-1 -I/usr/include/apache -O2 -g -Wall -DWITH_PCRE _STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 - I/usr/include/apache -I/usr/include/apache -I. -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/ srclib/apr-util/xml/expat/lib -I/usr/local/include -I/usr/include -I/usr/kerberos/include -I/usr/local/include -I/usr/local/include/libxml2 -c -o msc_pcre.lo m sc_pcre.c && touch msc_pcre.slo
msc_pcre.c: In function 'msc_pregcomp_ex':
msc_pcre.c:73: error: invalid application of 'sizeof' to incomplete type 'pcre_extra'
msc_pcre.c:77: error: invalid application of 'sizeof' to incomplete type 'pcre_extra'
msc_pcre.c:98: warning: ignoring #pragma message
msc_pcre.c:119: warning: ignoring #pragma message
apxs:Error: Command failed with rc=65536
.
make: *** [mod_security2.la] Error 1
____________________________________________<
I see it wants to do something in /usr/include/apache .. but that does not exists?
But i guess the problem is this i have 2 pcre installed one with yum install pcre and one with pcre comstumbuild ./build pcre
The yum installed version is:
Package pcre-8.02-1.jason.1.x86_64 already installed and latest version
and the directadmin costumbuild pcre is the on that seems to be running on the server:
-bash-3.2# pcretest -C
PCRE version 8.10 2010-06-25
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
I have found kind of simular threads and i hear them talking about:
"The solution is simply replace the the pcre.h at /usr/local/apache/include
by the new one(8.0.1) at /usr/local/include"
http://web.archiveorange.com/archive/v/eCIWmXHWwviop6FixKTV
I have a CentOS 5.5 64Bit Directadmin + PHP5.3.3
In the beginning i had simular error report as the link above:
#warning This PCRE version does not support match
recursion limits! Upgrade to at least PCRE v6.5.
i think after yum update or yum install pcre this turned in this other error from above.
So i guess it's using the wrong pcre, not the one build with directadmin(and that is running on the server)...
I really don't know what to do?
I try to make mod_security but i get this error:
__________________________________________>
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX =2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apr-1 -I/usr/include/apache -O2 -g -Wall -DWITH_PCRE _STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 - I/usr/include/apache -I/usr/include/apache -I. -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/ srclib/apr-util/xml/expat/lib -I/usr/local/include -I/usr/include -I/usr/kerberos/include -I/usr/local/include -I/usr/local/include/libxml2 -c -o msc_pcre.lo m sc_pcre.c && touch msc_pcre.slo
msc_pcre.c: In function 'msc_pregcomp_ex':
msc_pcre.c:73: error: invalid application of 'sizeof' to incomplete type 'pcre_extra'
msc_pcre.c:77: error: invalid application of 'sizeof' to incomplete type 'pcre_extra'
msc_pcre.c:98: warning: ignoring #pragma message
msc_pcre.c:119: warning: ignoring #pragma message
apxs:Error: Command failed with rc=65536
.
make: *** [mod_security2.la] Error 1
____________________________________________<
I see it wants to do something in /usr/include/apache .. but that does not exists?
But i guess the problem is this i have 2 pcre installed one with yum install pcre and one with pcre comstumbuild ./build pcre
The yum installed version is:
Package pcre-8.02-1.jason.1.x86_64 already installed and latest version
and the directadmin costumbuild pcre is the on that seems to be running on the server:
-bash-3.2# pcretest -C
PCRE version 8.10 2010-06-25
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
I have found kind of simular threads and i hear them talking about:
"The solution is simply replace the the pcre.h at /usr/local/apache/include
by the new one(8.0.1) at /usr/local/include"
http://web.archiveorange.com/archive/v/eCIWmXHWwviop6FixKTV
I have a CentOS 5.5 64Bit Directadmin + PHP5.3.3
In the beginning i had simular error report as the link above:
#warning This PCRE version does not support match
recursion limits! Upgrade to at least PCRE v6.5.
i think after yum update or yum install pcre this turned in this other error from above.
So i guess it's using the wrong pcre, not the one build with directadmin(and that is running on the server)...
I really don't know what to do?