[Mod-security-developers] mod-security 2.6.1 make test errors
Brought to you by:
victorhora,
zimmerletw
From: James B. M. <Jam...@hi...> - 2011-09-14 18:59:22
|
Hello All, I am building mod_security 2.6.1 on Solaris 10 and am receiving errors during "make test". As requested in the mod_security documentation I am posting the following snippet that shows the error: ---------------------------------------------------------------------------- Making all in tests Making check in tools Making check in apache2 Making check in tests make msc_test run-unit-tests.pl /bin/bash ../libtool --tag=CC --mode=link gcc -I/usr/local/httpd-2.2.20/include -I/usr/local/src/httpd-2.2.20/srclib/apr/include -I/usr/local/src/httpd-2.2.20/srclib/apr-util/include -I/usr/local/include -I/usr/include/libxml2 -g -O2 -luuid -lsendfile -lrt -lsocket -lnsl -lpthread -lexpat -o msc_test msc_test-msc_test.o msc_test-re.o msc_test-re_operators.o msc_test-re_actions.o msc_test-re_tfns.o msc_test-re_variables.o msc_test-msc_logging.o msc_test-msc_xml.o msc_test-msc_multipart.o msc_test-modsecurity.o msc_test-msc_parsers.o msc_test-msc_util.o msc_test-msc_pcre.o msc_test-msc_unicode.o msc_test-persist_dbm.o msc_test-msc_reqbody.o msc_test-msc_geo.o msc_test-msc_gsb.o msc_test-acmp.o msc_test-msc_lua.o msc_test-msc_release.o /usr/local/src/httpd-2.2.20/srclib/apr/libapr-1.la /usr/local/src/httpd-2.2.20/srclib/apr-util/libaprutil-1.la -L/usr/local/lib -R/usr/local/lib -lpcre -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl libtool: link: gcc -I/usr/local/httpd-2.2.20/include -I/usr/local/src/httpd-2.2.20/srclib/apr/include -I/usr/local/src/httpd-2.2.20/srclib/apr-util/include -I/usr/local/include -I/usr/include/libxml2 -g -O2 -o .libs/msc_test msc_test-msc_test.o msc_test-re.o msc_test-re_operators.o msc_test-re_actions.o msc_test-re_tfns.o msc_test-re_variables.o msc_test-msc_logging.o msc_test-msc_xml.o msc_test-msc_multipart.o msc_test-modsecurity.o msc_test-msc_parsers.o msc_test-msc_util.o msc_test-msc_pcre.o msc_test-msc_unicode.o msc_test-persist_dbm.o msc_test-msc_reqbody.o msc_test-msc_geo.o msc_test-msc_gsb.o msc_test-acmp.o msc_test-msc_lua.o msc_test-msc_release.o /usr/local/src/httpd-2.2.20/srclib/apr-util/.libs/libaprutil-1.so -lexpat /usr/local/src/httpd-2.2.20/srclib/apr/.libs/libapr-1.so -luuid -lsendfile -lrt -L/usr/local/lib /usr/local/lib/libpcre.so -L/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl -R/usr/local/httpd-2.2.20/lib -R/usr/local/lib -R/usr/lib Undefined first referenced symbol in file ap_regexec msc_test-re_operators.o ap_pregcomp msc_test-re_operators.o ld: fatal: Symbol referencing errors. No output written to .libs/msc_test collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `msc_test' Current working directory /opt/sfw/src/modsecurity-apache_2.6.1/tests *** Error code 1 make: Fatal error: Command failed for target `check-am' Current working directory /opt/sfw/src/modsecurity-apache_2.6.1/tests *** Error code 1 The following command caused the error: fail= failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo check-recursive | sed s/-recursive//`; \ list='tools apache2 tests'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `check-recursive' ---------------------------------------------------------------------------- my build script is as follows: ---------------------------------------------------------------------------- #!/usr/bin/bash # hdrs_build_mod_security.sh - build the mod_security2.so module. # Make sure we can get to gcc, but not cc. Set the path # to find the gcc compiler in /usr/local/bin. # Set the path to find the Solaris make in /usr/ccs/bin. PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin export PATH # Build mod_security outside the apache source tree as a DSO with Apache 2. # You need to supply the path to the APR and APU config scripts inside Apache2. # You also need to disable the mlogc option that we are not using. cd /usr/local/src/modsecurity-apache_2.6.1 ./configure --disable-mlogc \ --with-apxs=/usr/local/httpd-2.2.20/bin/apxs \ --with-apr=/usr/local/src/httpd-2.2.20/srclib/apr \ --with-apu=/usr/local/src/httpd-2.2.20/srclib/apr-util make && make test && make install ---------------------------------------------------------------------------- -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the use of the person to whom it is addressed and may contain information that is privileged, confidential, and protected from disclosure under applicable law. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records. |