[OpenIndiana-discuss] More recent modsecurity pkg

John D Groenveld jdg117 at elvis.arl.psu.edu
Thu May 5 14:55:55 UTC 2016


In message <572AE717.9040709 at gmail.com>, Nikola M writes:
>On 05/ 3/16 11:25 PM, Stefan Müller-Wilken wrote:
>>could anyone with access to the Sun Studio environment do me a great
>>favor and lift the mod_security package from its current IPS
>>incarnation to the 2.9.1 available from modsecurity.org?
>>I tried to compile it with 'gcc' but that will crash Apache httpd
>>under oi_151a9 when loading the module.

Try building Apache with gcc and then building modsecurity
against your custom Apache.

$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/usr/sfw/bin \
CC=gcc CFLAGS="-m64 -O3" LDFLAGS="-m64" \
./configure --with-expat=/usr --with-ssl=/usr --enable-ssl \
--enable-proxy --enable-rewrite --enable-modules=all \
--enable-mods-shared=all --with-included-apr --prefix=/opt/apache22

$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/usr/sfw/bin \
CC=gcc CFLAGS="-m64 -O3" LDFLAGS=-m64 \
./configure --with-apxs=/opt/apache22/bin/apxs \
--with-apr=/opt/apache22/bin/apr-1-config \
--with-apu=/opt/apache22/bin/apu-1-config \
--prefix=/opt/apache22/modsecurity

John
groenveld at acm.org



More information about the openindiana-discuss mailing list