> I'm using centos 5.3 with apache 2.2.3, and I can compile modsecurity
> without issues, but make test shows alot of errors related to apr and
> The configure args used are as follows:
> ./configure --prefix=/usr --sysconfdir=/etc --with-apxs=/usr/sbin/apxs
> (without the --with-apr flag the configure script can't find apr at all)
There is currently a bug in 2.5.9 configure script for 2.5.9 that
requires specifying all of --with-apxs, --with-apr *and* --with-apu if
you use any one of them. Try adding --with-apu as well. Doing a "make
test" is still a bit experimental.
> and the relevant lines about apr and lua from the configure output:
> configure: looking for Apache module support via DSO through APXS
> configure: found apxs at /usr/sbin/apxs
> configure: checking httpd version
> configure: httpd is recent enough
> checking for libpcre config script... /usr/bin/pcre-config
> configure: using '-lpcre' for pcre Library
> checking for libapr config script... /usr/bin/apr-1-config
> configure: using ' -lpthread -ldl' for apr Library
> checking for libapr-util config script... /usr/bin/apr-1-config
> configure: using ' -lapr-1' for apu Library
Yep, it is not finding apu (finding apr instead, which is the bug).
> checking for libxml2 config script... /usr/bin/xml2-config
> configure: using '-L/usr/lib -lxml2 -lz -lm' for libxml Library
> checking for pkg-config script for lua library... /usr/bin/pkg-config lua
> configure: using '-llua -lm ' for lua Library
Lools like it did not find the link path (-L) and that may have broken
it if it is in a non-standard location. Or maybe "pkg-config lua" is
finding another lua (<5.1)? You can try exporting LD_LIBRARY_PATH to
the lua lib.
> checking for libcurl config script... /usr/bin/curl-config
> configure: using '-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5
> -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz ' for curl Library
> configure: creating ./config.status
> All header files for both lua and apr are available in /usr/include
> Lua was built from source but then I manually created an .so file from
> the archive:
> cd /usr/lib
> gcc -shared -o liblua.5.1.3.so liblua.a
> ln -s liblua5.1.3.so liblua.so
> And the lua test runs fine as well:
> [root@... lua-5.1.3]# make test
> src/lua test/hello.lua
> Hello world, from Lua 5.1!
> httpd headers are installed as well
> Any idea what I might be missing here?
Let me know if you are still having issues so that I might be able to
fix them for 2.5.10.