You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Al Sparks <da...@yahoo.com> on 2009/07/25 02:49:24 UTC

[users@httpd] Compiling ModSecurity on CentOS 5.3 x86_64

Running CentOS 5.3 x86_64, and Apache httpd-2.2.9, which is successfully compiled.

I do a 

 ./configure \
    --with-apxs=/usr/local/apache2/bin/apxs \
    --with-httpd-src=/home/sparks/install/httpd-2.2.9

I'll add that the apxs path is valid.  There's an -fPIC error which is also curious....

Anyway, after the configure, I then do a make.

It errors out.  The last few lines of output are:

/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la  -L/home/sparks/install/httpd-2.2.9/srclib/pcre -L/usr/local/apache2/lib -lpcre -lxml2 -lz -lm -rpath /usr/local/apache2/modules -module -avoid-version    msc_release.lo msc_lua.lo acmp.lo msc_geo.lo pdf_protect.lo msc_reqbody.lo persist_dbm.lo msc_pcre.lo msc_util.lo msc_parsers.lo modsecurity.lo msc_multipart.lo msc_xml.lo msc_logging.lo re_variables.lo re_tfns.lo re_actions.lo re_operators.lo re.lo apache2_util.lo apache2_io.lo apache2_config.lo mod_security2.lo
/usr/bin/ld: /home/sparks/install/httpd-2.2.9/srclib/pcre/.libs/libpcre.a(maketables.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/sparks/install/httpd-2.2.9/srclib/pcre/.libs/libpcre.a(maketables.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

   === Al


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Compiling ModSecurity on CentOS 5.3 x86_64

Posted by Dan Poirier <po...@pobox.com>.
You'll probably get more help over at
http://www.modsecurity.org/contact/.  This list is for support of the
Apache web server and the modules that come with it.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org