Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005

    APXS Mod Security errors


    I'm trying to install mod_security on my server. I've downloaded 2.0.4 and unpacked it, however, when I try and compile the module it comes up with the following error: -
    [[email protected] apache2]# /usr/sbin/apxs -cia modsecurity.c
    /bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o modsecurity.lo modsecurity.c && touch modsecurity.slo
    In file included from modsecurity.h:37,
                     from modsecurity.c:17:
    msc_pcre.h:18:18: pcre.h: No such file or directory
    modsecurity.c: In function `is_response_status_relevant':
    modsecurity.c:316: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this function)
    modsecurity.c:316: error: (Each undeclared identifier is reported only once
    modsecurity.c:316: error: for each function it appears in.)
    apxs:Error: Command failed with rc=65536
    Any ideas would be greatly appreciated, thank you!

  2. #2
    Join Date
    Mar 2003
    California USA
    do you have pcre-devel installed?
    Steven Ciaburri | Industry's Best Server Management -
    Software Auditing - 400+ Vulnerabilities Found - Quote @
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  3. #3
    Join Date
    Dec 2005
    Yep. Apparently there are sometimes problems as PCRE is bundled with both Centos and Apache, however, Apache was installed as standard config (v2) with yum, so it should be setup okay.

    Thanks for the suggestion, though!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts