Open
Description
Pulling my hair out with this.
I built libmodsecurity from source, and it seems to of installed properly... Here's what I get:
$ ls -halF /usr/local/modsecurity/lib/
drwxr-xr-x 3 root root 4.0K Jan 30 20:10 ./
drwxr-xr-x 5 root root 4.0K Jan 30 20:10 ../
-rw-r--r-- 1 root root 83.7M Jan 30 20:09 libmodsecurity.a
-rwxr-xr-x 1 root root 1.0K Jan 30 20:09 libmodsecurity.la*
lrwxrwxrwx 1 root root 23 Jan 30 20:09 libmodsecurity.so -> libmodsecurity.so.3.0.3*
lrwxrwxrwx 1 root root 23 Jan 30 20:10 libmodsecurity.so.3 -> libmodsecurity.so.3.0.3*
-rwxr-xr-x 1 root root 45.8M Jan 30 20:09 libmodsecurity.so.3.0.3*
drwxr-xr-x 2 root root 4.0K Jan 30 20:10 pkgconfig/
Looks like it's installed...
$ pwd
/usr/src/ModSecurity-apache
That's where https://github.com/SpiderLabs/ModSecurity-apache
is cloned to...
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: looking for Apache module support via DSO through APXS
configure: found APXS at /usr/local/apache2/bin/apxs
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
configure: looking for libmodsecurity
checking for msc_init in -lmodsecurity... no
configure: error: ModSecurity libraries not found!
Is what I get when trying to run the configure script.
Is there an option or something I should be passing somewhere to tell the Apache Connector where the libmodsecurity
files are? If so, where is any of this documented?
I'm very new to compiling C/C++, and haven't ever really done it before, so sorry if this is really basic stuff.
This is on Alpine, running in a Docker container.
Thanks!