Hi all,

I am having a heck of a time getting ModSecurity 2.5 compiled on my Solaris 10 machine.  The following is a rundown of what Ive done thus far.  Has anyone encountered this before, or does anyone have suggestions on how I solve this one?  Ive spent hours looking through Google search results, but wasnt able to find anything that made sense. 

Solaris 10:

gcc 3.4.3:

Environment info:

à Compiled OpenSSL 0.9.8g with configure script below. Build was successful.

à Compiled PCRE 7.6 with configure script below.  Build was successful.

à Compiled LibXML2 with configure script below.  Build was successful.

à Compiled Apache 2.2.8 with the configure script below.  Build was successful, and site is running.

à Compiled Lua 5.1.3 as follows build was successful, and lua v produces Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio

à Trying to compile ModSecurity with the configure script below.  Configure completes without error, but build fails as shown further below. 

During the make process, it fails with output below. 

<lots of similar messages above this line>

fprintf                             0x1248    /cust/lib/liblua.a(lauxlib.o)

fprintf                             0xce0     /cust/lib/liblua.a(liolib.o)

.udiv                               0x13b8    /cust/lib/liblua.a(lgc.o)

.udiv                               0x146c    /cust/lib/liblua.a(lgc.o)

.udiv                               0xb8      /cust/lib/liblua.a(lmem.o)

.udiv                               0x114     /cust/lib/liblua.a(lmem.o)

fflush                              0x4a0     /cust/lib/liblua.a(liolib.o)

fflush                              0xe64     /cust/lib/liblua.a(liolib.o)

fflush                              0xe8c     /cust/lib/liblua.a(liolib.o)

dlsym                               0xd4      /cust/lib/liblua.a(loadlib.o)

ld: fatal: relocations remain against allocatable but non-writable sections

collect2: ld returned 1 exit status

apxs:Error: Command failed with rc=65536

.

*** Error code 1

The following command caused the error:

src=""; \

for f in mod_security2 apache2_config apache2_io apache2_util  re re_operators re_actions re_tfns re_variables  msc_logging msc_xml msc_multipart modsecurity msc_parsers msc_util msc_pcre  persist_dbm msc_reqbody pdf_protect msc_geo acmp msc_lua; do \

src="$src $f.c"; \

done; \

build/apxs-wrapper -c -I/cust/apps/apache-2.2.8/include  -I/cust/apps/apache-2.2.8/include -I. -I/cust/depot/httpd-2.2.8/srclib/apr/include -I/cust/depot/httpd-2.2.8/srclib/apr-util/include -I/cust/apps/openssl-0.9.8g/include -I/usr/sfw/include  -I/cust/include -I/cust/include/libxml2 -DWITH_LUA -I/cust/include  -L/cust/lib -R/cust/lib -lpcre -L/cust/lib -R/cust/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl -L/cust/lib -llua -Wc,-O2 -Wc,-g -Wc,-Wall  $src

make: Fatal error: Command failed for target `mod_security2.la'

Is there anything else (additional detail) I should provide?

Thanks,

Andrew