Re: [mod-security-users] Compiling ModSec 2.5.12 on RHEL5 (64bit)
Brought to you by:
victorhora,
zimmerletw
From: Brian R. <Bri...@br...> - 2010-03-23 02:54:56
|
Superpizza wrote: > Hello everyone. > Im trying to compile the latest version of modsec on a RHEL5 box. > I've got a custom compiled version of apache (2.0.63) linked to latest PCRE > version (8.0.1). > Here is ldd output: >>ldd /usr/local/apachepcre/bin/httpd > libaprutil-0.so.0 => /usr/local/apachepcre/lib/libaprutil-0.so.0 > (0x00002ad93ab41000) > ������� libexpat.so.0 => /usr/local/apachepcre/lib/libexpat.so.0 > (0x00002ad93ad58000) > ������� libapr-0.so.0 => /usr/local/apachepcre/lib/libapr-0.so.0 > (0x00002ad93af78000) > > Here is pcre config version: >>/usr/local/pcre/bin/pcre-config --version > 8.01 > > > All that said, I tried to compile modsec this way: > /configure� --with-apxs=/usr/local/apachepcre/bin/apxs > --with-apr=/usr/local/apachepcre/bin/apr-config > --with-apu=/usr/local/apachepcre/bin/apu-config > What was the output of configure (and config.log)? -B > But what I'm getting from the make command is: >>make > .......snipped > /usr/local/apachepcre/build/libtool --silent --mode=compile gcc -prefer-pic > -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 > -pthread -I/usr/local/apachepcre/include� -I/usr/local/apachepcre/include� > -I/usr/local/apachepcre/include� -O2 -g -Wall > -I/usr/local/apachepcre/include > -I/usr/local/pcre/include -I/usr/include/libxml2� -c -o msc_pcre.lo > msc_pcre.c > && touch msc_pcre.slo > msc_pcre.c: In function 'msc_pregcomp_ex': > msc_pcre.c:74: error: invalid application of 'sizeof' to incomplete type > 'pcre_extra' > msc_pcre.c:78: error: invalid application of 'sizeof' to incomplete type > 'pcre_extra' > msc_pcre.c:97:2: warning: #warning This PCRE version does not support match > limits! Upgrade to at least PCRE v6.5. > msc_pcre.c:116:2: warning: #warning This PCRE version does not support match > recursion limits! Upgrade to at least PCRE v6.5. > apxs:Error: Command failed with rc=65536 > > I tried adding these directives: > ./configure --with-pcre=/usr/local/pcre/bin/pcre-config > --with-apxs=/usr/local/apachepcre/bin/apxs > --with-apr=/usr/local/apachepcre/bin/apr-config > --with-apu=/usr/local/apachepcre/bin/apu-config --disable-pcre-study > --disable-pcre-match-limit-recursion --disable-pcre-match-limit > > The result is the same. > Any clue? > > Txs, Luca > > -- > --------------------------------------------------------------------------------------------------- > "XML may not always be a good idea for every project, but everyone > agrees that it's definitely cool and should be used wherever > possible to create elegant configuration nightmares." > --------------------------------------------------------------------------------------------------- > > > -- Brian Rectanus Breach Security |