[prev in list] [next in list] [prev in thread] [next in thread]
List: mod-security-users
Subject: Re: [mod-security-users] ModSec 2.5 Compile Problem
From: Brian Rectanus <Brian.Rectanus () breach ! com>
Date: 2008-04-24 23:15:56
Message-ID: 481114AC.3090705 () breach ! com
[Download RAW message or body]
Looks like the lua lib was not built as a shared lib. Try to run
configure with "--without-lua".
-B
Crawford, Andrew (IT) wrote:
> 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 I've done thus
> far. Has anyone encountered this before, or does anyone have
> suggestions on how I solve this one? I've spent hours looking through
> Google search results, but wasn't able to find anything that made sense.
>
> Solaris 10:
>
> uname –a
>
> SunOS camdamx1 5.10 Generic_127111-06 sun4v sparc
> SUNW,SPARC-Enterprise-T5220
>
> gcc 3.4.3:
>
> gcc -v
>
> Reading specs from
> /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
>
> Configured with:
> /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld
> --enable-languages=c,c++ --enable-shared
>
> Thread model: posix
>
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
> Environment info:
>
> LD_LIBRARY_PATH=/usr/sfw/lib:/cust/lib:/usr/lib:/lib
>
> PATH=/usr/sfw/bin:/home/www/bin:/bin:/usr/bin:/usr/ucb:/sbin:/usr/sbin:/usr/local/bin:/cust/bin:/usr/ccs/bin:/cust/bin:/usr/ucb
>
> Ã Compiled OpenSSL 0.9.8g with configure script below. Build was
> successful.
>
> ./configure --prefix=/cust/apps/openssl-0.9.8g
> --openssldir=/cust/apps/openssl-0.9.8g shared
>
> Ã Compiled PCRE 7.6 with configure script below. Build was successful.
>
> ./configure --prefix=/cust --enable-utf8
>
> Ã Compiled LibXML2 with configure script below. Build was successful.
>
> ./configure --prefix=/cust
>
> Ã Compiled Apache 2.2.8 with the configure script below. Build was
> successful, and site is running.
>
> ./configure CPPFLAGS=-I/cust/include
> --prefix=/cust/apps/apache-2.2.8 \
>
> --with-mpm=worker --with-pcre=/cust --with-included-apr
> --with-ldap \
>
> --with-ssl=/cust/apps/openssl-0.9.8g --disable-include
> --disable-cgi \
>
> --disable-cgid --disable-userdir --enable-so --enable-ssl
> --enable-autoindex \
>
> --enable-mods-shared="unique-id proxy proxy-http rewrite
> proxy-ajp proxy-balancer cache disk-cache ldap"
>
> à 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"
>
> Edited the Makefile, changing INSTALL_TOP to "/cust"
>
> Edited the Makefile, removing "-p" from the INSTALL_EXEC
> command definition (-p is not a valid install arg on my
> Solaris box).
>
> Edited the Makefile, removing "-p" from the INSTALL_DATA
> command definition (-p is not a valid install arg on my
> Solaris box).
>
> Executed "make solaris install"
>
> Ã Trying to compile ModSecurity with the configure script below.
> Configure completes without error, but build fails as shown further below.
>
> ./configure --prefix=/cust --with-pcre=/cust --with-lua=/cust \
>
> --with-libxml=/cust
> --with-apxs=/cust/apps/apache-stable/bin/apxs \
>
> --with-apr=/cust/apps/apache-stable
> --with-apu=/cust/apps/apache-stable
>
> 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
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mod-security-users mailing list
> mod-security-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
--
Brian Rectanus
Breach Security
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
mod-security-users mailing list
mod-security-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic