Can't install latest mod security as a DSO

Support for security such as Firewalls and securing linux
Post Reply
M0nKeY
Posts: 3
Joined: 2005/01/18 07:55:25

Can't install latest mod security as a DSO

Post by M0nKeY » 2007/01/18 14:35:59

pcre-devel and libxml2-devel are both installed yet when I attempt to compile: pcre.h cannot be found.

[code] 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:37,
from modsecurity.c:17:
msc_pcre.h:18:18: pcre.h: No such file or directory
modsecurity.c: In function `is_response_status_relevant':
modsecurity.c:316: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this function)
modsecurity.c:316: error: (Each undeclared identifier is reported only once
modsecurity.c:316: error: for each function it appears in.)
apxs:Error: Command failed with rc=65536[/code]

NedSlider
Forum Moderator
Posts: 2890
Joined: 2005/10/28 13:11:50
Location: UK

Re: Can't install latest mod security as a DSO

Post by NedSlider » 2007/01/19 04:24:02

I've come across similar problems compiling other packages. pcre.h is located in /usr/include/pcre/ but I suspect it's expecting to find it in /usr/include/

Linking the header files in /usr/include/pcre/ to /usr/include/ should solve the problem, or you may be able to pass the correct location directly to the configure script.

Hope that helps,

Ned

Post Reply

Return to “CentOS 4 - Security Support”