Hello everyone,
Im trying to harden the security on an internal server and decided to improve the security for the Apache daemon with the mod_security module.
I downloaded the latest version and tried to compile it but got the following error:
Code:
[root@asterisk1 apache2]# apxs -cia modsecurity.c
/bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd -c -o modsecurity.lo modsecurity.c && touch modsecurity.slo
In file included from modsecurity.h:38,
from modsecurity.c:23:
msc_pcre.h:24:18: pcre.h: No such file or directory
In file included from modsecurity.h:40,
from modsecurity.c:23:
msc_xml.h:25:31: libxml/xmlschemas.h: No such file or directory
msc_xml.h:26:26: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:40,
from modsecurity.c:23:
msc_xml.h:31: error: syntax error before "xmlSAXHandler"
msc_xml.h:31: warning: no semicolon at end of struct or union
msc_xml.h:32: warning: data definition has no type or storage class
msc_xml.h:33: error: syntax error before "doc"
msc_xml.h:33: warning: data definition has no type or storage class
msc_xml.h:36: error: syntax error before '}' token
modsecurity.c: In function `is_response_status_relevant':
modsecurity.c:359: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this function)
modsecurity.c:359: error: (Each undeclared identifier is reported only once
modsecurity.c:359: error: for each function it appears in.)
apxs:Error: Command failed with rc=65536
I should point out that all the necessary development packages are installed.
I havent found a proper fix doing some googling, so maybe someone here can help me out?
Thanks in advance...