Thread: [mod-security-users] modsecurity-apache 2.5.1 build issue on SuSE 10/x86-64
Brought to you by:
victorhora,
zimmerletw
From: Mark L. <ml...@sg...> - 2008-03-19 00:26:44
|
Hello everyone, I have been having trouble building modsecurity 2.5.0 and 2.5.1, whereas before I could successfully build version 2.1.5 with Apache 2.2.x I am trying to build everything in /data/20080318, so you will see that prefix, forgive the line wrapping and long message, but here's everything I encounter: ~/WORKAREAS/content/webplatform/build/dev/20080318/modsecurity-apache_2. 5.1/apache2> ./configure --with-apxs=/data/20080318/bin/apxs \ --with-httpd-src=/home/mlavi/WORKAREAS/content/webplatform/build/dev/200 80318/httpd-2.2.8\ --with-apr=/data/20080318/bin --with-apu=/data/20080318/bin\ --with-libxml=/data/20080318 --with-lua=/data/20080318 --with-curl=/data/20080318 checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc 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 how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for perl... /data/20080312/bin/perl checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for atexit... yes checking for fchmod... yes checking for getcwd... yes checking for memset... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes configure: looking for Apache module support via DSO through APXS configure: found apxs at /data/20080318/bin/apxs configure: checking httpd version configure: httpd is recent enough checking for libpcre config script... /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 /srclib/pcre/pcre-config configure: using '-L/data/20080318/lib -lpcre' for pcre Library checking for libapr config script... /data/20080318/bin/apr-1-config configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library checking for libapr-util config script... /data/20080318/bin/apu-1-config configure: using ' -L/data/20080318/lib -laprutil-1' for apu Library checking for libxml2 config script... /data/20080318/bin/xml2-config configure: using '-L/data/20080318/lib -lxml2 -L/data/20080318/lib/lib -lz -lm' for libxml Library checking for pkg-config script for lua library... no checking for lua install... /data/20080318/lib /data/20080318/include configure: using '-L/data/20080318/lib -llua' for lua Library checking for libcurl config script... /data/20080318/bin/curl-config configure: using '-L/data/20080318/lib -lcurl -R/data/20080318/lib -L/data/20080318/lib -L/data/20080318/lib/lib' for curl Library configure: creating ./config.status config.status: creating Makefile config.status: creating build/apxs-wrapper config.status: creating t/run-tests.pl config.status: creating ../tools/rules-updater.pl config.status: creating mod_security2_config.h config.status: mod_security2_config.h is unchanged So configure is happy, onto the build: mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec urity-apache_2.5.1/apache2> make clean mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec urity-apache_2.5.1/apache2> make /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o mod_security2.lo mod_security2.c && touch mod_security2.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o apache2_config.lo apache2_config.c && touch apache2_config.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o apache2_io.lo apache2_io.c && touch apache2_io.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o apache2_util.lo apache2_util.c && touch apache2_util.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o re.lo re.c && touch re.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o re_operators.lo re_operators.c && touch re_operators.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o re_actions.lo re_actions.c && touch re_actions.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o re_tfns.lo re_tfns.c && touch re_tfns.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o re_variables.lo re_variables.c && touch re_variables.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_logging.lo msc_logging.c && touch msc_logging.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_xml.lo msc_xml.c && touch msc_xml.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_multipart.lo msc_multipart.c && touch msc_multipart.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o modsecurity.lo modsecurity.c && touch modsecurity.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_parsers.lo msc_parsers.c && touch msc_parsers.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_util.lo msc_util.c && touch msc_util.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_pcre.lo msc_pcre.c && touch msc_pcre.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o persist_dbm.lo persist_dbm.c && touch persist_dbm.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_reqbody.lo msc_reqbody.c && touch msc_reqbody.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o pdf_protect.lo pdf_protect.c && touch pdf_protect.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && touch msc_geo.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o acmp.lo acmp.c && touch acmp.slo /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall -I/data/20080318/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/apr-util/include -I/data/20080318/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 -I/data/20080318/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && touch msc_lua.slo /data/20080318/build/libtool --silent --mode=link gcc -o mod_security2.la -L/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 .8/srclib/pcre -L/data/20080318/lib -L/data/20080318/lib -L/data/20080318/lib/lib -L/data/20080318/lib -lpcre -lxml2 -lz -lm -llua -rpath /data/20080318/modules -module -avoid-version 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin /ld: /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 /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/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 /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 . make: *** [mod_security2.la] Error 1 It seems that I might need to recompile Apache 2.2.8 with static PCRE -- would that be correct? I am puzzled on what the next step would be to correct. Can anyone help? Thanks, __ Mark Lavi, Enterprise Web Management Tel: (650) 933-7707 || www.sgi.com |
From: Brian R. <Bri...@br...> - 2008-03-19 15:19:13
|
You specified --with-httpd-src and it is trying to use the httpd bundled pcre lib under the srclib directory and the dynamic lib is not there (not built by default with the apache srclib). I would just fetch the latest pcre src and build that into /data/20080318, use --with-pcre=/data/20080318 and *not* use --with-httpd-src. NOTE: You may also have to set/export LD_LIBRARY_PATH to the non-default lib directory, /data/20080318/lib. Also, double check the libxml2 and libcurl library paths as they seem to have been detected as /data/20080318/lib/lib and that does not look correct. -B Mark Lavi wrote: > Hello everyone, > > I have been having trouble building modsecurity 2.5.0 and 2.5.1, whereas > before I could successfully build version 2.1.5 with Apache 2.2.x > > I am trying to build everything in /data/20080318, so you will see that > prefix, forgive the line wrapping and long message, but here's > everything I encounter: > > ~/WORKAREAS/content/webplatform/build/dev/20080318/modsecurity-apache_2. > 5.1/apache2> ./configure --with-apxs=/data/20080318/bin/apxs \ > > --with-httpd-src=/home/mlavi/WORKAREAS/content/webplatform/build/dev/200 > 80318/httpd-2.2.8\ > --with-apr=/data/20080318/bin --with-apu=/data/20080318/bin\ > --with-libxml=/data/20080318 --with-lua=/data/20080318 > --with-curl=/data/20080318 > > checking for g++... g++ > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for gcc... gcc > 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 how to run the C preprocessor... gcc -E > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln -s works... yes > checking whether make sets $(MAKE)... yes > checking for ranlib... ranlib > checking for perl... /data/20080312/bin/perl > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/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 > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking limits.h usability... yes > checking limits.h presence... yes > checking for limits.h... yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking for unistd.h... (cached) yes > checking for an ANSI C-conforming const... yes > checking for inline... inline > checking for C/C++ restrict keyword... __restrict > checking for size_t... yes > checking whether struct tm is in sys/time.h or time.h... time.h > checking for uint8_t... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible malloc... yes > checking for working memcmp... yes > checking for atexit... yes > checking for fchmod... yes > checking for getcwd... yes > checking for memset... yes > checking for strcasecmp... yes > checking for strchr... yes > checking for strdup... yes > checking for strerror... yes > checking for strncasecmp... yes > checking for strrchr... yes > checking for strstr... yes > checking for strtol... yes > configure: looking for Apache module support via DSO through APXS > configure: found apxs at /data/20080318/bin/apxs > configure: checking httpd version > configure: httpd is recent enough > checking for libpcre config script... > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /srclib/pcre/pcre-config > configure: using '-L/data/20080318/lib -lpcre' for pcre Library > checking for libapr config script... /data/20080318/bin/apr-1-config > configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library > checking for libapr-util config script... > /data/20080318/bin/apu-1-config > configure: using ' -L/data/20080318/lib -laprutil-1' for apu Library > checking for libxml2 config script... /data/20080318/bin/xml2-config > configure: using '-L/data/20080318/lib -lxml2 -L/data/20080318/lib/lib > -lz -lm' for libxml Library > checking for pkg-config script for lua library... no > checking for lua install... /data/20080318/lib /data/20080318/include > configure: using '-L/data/20080318/lib -llua' for lua Library > checking for libcurl config script... /data/20080318/bin/curl-config > configure: using '-L/data/20080318/lib -lcurl -R/data/20080318/lib > -L/data/20080318/lib -L/data/20080318/lib/lib' for curl Library > configure: creating ./config.status > config.status: creating Makefile > config.status: creating build/apxs-wrapper > config.status: creating t/run-tests.pl > config.status: creating ../tools/rules-updater.pl > config.status: creating mod_security2_config.h > config.status: mod_security2_config.h is unchanged > > So configure is happy, onto the build: > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec > urity-apache_2.5.1/apache2> make clean > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec > urity-apache_2.5.1/apache2> make > > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o mod_security2.lo > mod_security2.c && touch mod_security2.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_config.lo > apache2_config.c && touch apache2_config.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_io.lo apache2_io.c && > touch apache2_io.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_util.lo > apache2_util.c && touch apache2_util.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re.lo re.c && touch re.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_operators.lo > re_operators.c && touch re_operators.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_actions.lo re_actions.c && > touch re_actions.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_tfns.lo re_tfns.c && touch > re_tfns.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_variables.lo > re_variables.c && touch re_variables.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_logging.lo msc_logging.c > && touch msc_logging.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_xml.lo msc_xml.c && touch > msc_xml.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_multipart.lo > msc_multipart.c && touch msc_multipart.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o modsecurity.lo modsecurity.c > && touch modsecurity.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_parsers.lo msc_parsers.c > && touch msc_parsers.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_util.lo msc_util.c && > touch msc_util.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_pcre.lo msc_pcre.c && > touch msc_pcre.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o persist_dbm.lo persist_dbm.c > && touch persist_dbm.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_reqbody.lo msc_reqbody.c > && touch msc_reqbody.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o pdf_protect.lo pdf_protect.c > && touch pdf_protect.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && touch > msc_geo.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o acmp.lo acmp.c && touch > acmp.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && touch > msc_lua.slo > /data/20080318/build/libtool --silent --mode=link gcc -o > mod_security2.la > -L/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -L/data/20080318/lib -L/data/20080318/lib > -L/data/20080318/lib/lib -L/data/20080318/lib -lpcre -lxml2 -lz -lm > -llua -rpath /data/20080318/modules -module -avoid-version 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin > /ld: > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /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/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /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 > . > make: *** [mod_security2.la] Error 1 > > It seems that I might need to recompile Apache 2.2.8 with static PCRE -- > would that be correct? I am puzzled on what the next step would be to > correct. Can anyone help? > > Thanks, > > __ > Mark Lavi, Enterprise Web Management > Tel: (650) 933-7707 || www.sgi.com > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users > -- Brian Rectanus Breach Security |
From: Mark L. <ml...@sg...> - 2008-03-20 01:12:41
|
Ok, definite progress has been made: I am building against pcre (not the embedded version with Apache), however I am onto the next stumbling block. mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec urity-apache_2.5.1/apache2> echo ${LD_LIBRARY_PATH} /lib:/lib64:/data/20080319/lib mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec urity-apache_2.5.1/apache2> LD_LIBRARY_PATH=/lib:/lib64:/data/20080319/lib ./configure\ --with-apxs=/data/20080319/bin/apxs --with-curl=/data/20080319\ --with-apr=/data/20080319 --with-apu=/data/20080319\ --with-libxml=/data/20080319 --with-lua=/data/20080319\ --with-pcre=/data/20080319 checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc 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 how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for perl... /data/20080312/bin/perl checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for atexit... yes checking for fchmod... yes checking for getcwd... yes checking for memset... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes configure: looking for Apache module support via DSO through APXS configure: found apxs at /data/20080319/bin/apxs configure: checking httpd version configure: httpd is recent enough checking for libpcre config script... /data/20080319/bin/pcre-config configure: using '-L/data/20080319/lib -lpcre' for pcre Library checking for libapr config script... /data/20080319/bin/apr-1-config configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library checking for libapr-util config script... /data/20080319/bin/apu-1-config configure: using ' -L/data/20080319/lib -laprutil-1' for apu Library checking for libxml2 config script... /data/20080319/bin/xml2-config configure: using '-L/data/20080319/lib -lxml2 -L/data/20080319/lib/lib -lz -lm' for libxml Library checking for pkg-config script for lua library... no checking for lua install... /data/20080319/lib /data/20080319/include configure: using '-L/data/20080319/lib -llua' for lua Library checking for libcurl config script... /data/20080319/bin/curl-config configure: using '-L/data/20080319/lib -lcurl -R/data/20080319/lib -L/data/20080319/lib -L/data/20080319/lib/lib' for curl Library configure: creating ./config.status config.status: creating Makefile config.status: creating build/apxs-wrapper config.status: creating t/run-tests.pl config.status: creating ../tools/rules-updater.pl config.status: creating mod_security2_config.h config.status: mod_security2_config.h is unchanged [note that we still see libxml2's -L ends in lib/lib, but other lines source lib fine, not sure if this is on my side or not] mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec urity-apache_2.5.1/apache2> make clean mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec urity-apache_2.5.1/apache2> make [snip -- omitted compile lines] /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr-util/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include/libxml2 -I/data/20080319/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && touch msc_geo.slo /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr-util/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include/libxml2 -I/data/20080319/include -DWITH_LUA -c -o acmp.lo acmp.c && touch acmp.slo /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr/include -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 .8/srclib/apr-util/include -I/data/20080319/include -I/data/20080319/include -I/data/20080319/include/libxml2 -I/data/20080319/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && touch msc_lua.slo /data/20080319/build/libtool --silent --mode=link gcc -o mod_security2.la -L/data/20080319/lib -L/data/20080319/lib -L/data/20080319/lib/lib -L/data/20080319/lib -lpcre -lxml2 -lz -lm -llua -rpath /data/20080319/modules -module -avoid-version 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin /ld: /data/20080319/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC /data/20080319/lib/liblua.a: could not read symbols: Bad value collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . make: *** [mod_security2.la] Error 1 So perhaps I've not compiled LUA properly? make test with Lua was fine. Thanks again, --Mark Mark Lavi, Enterprise Web Management Team @ SGI mailto:ml...@sg... || phone:+1-650-933-7707 -----Original Message----- From: Brian Rectanus [mailto:Bri...@br...] Sent: Wednesday, March 19, 2008 8:19 AM To: Mark Lavi Cc: mod...@li... Subject: Re: [mod-security-users] modsecurity-apache 2.5.1 build issue on SuSE10/x86-64 You specified --with-httpd-src and it is trying to use the httpd bundled pcre lib under the srclib directory and the dynamic lib is not there (not built by default with the apache srclib). I would just fetch the latest pcre src and build that into /data/20080318, use --with-pcre=/data/20080318 and *not* use --with-httpd-src. NOTE: You may also have to set/export LD_LIBRARY_PATH to the non-default lib directory, /data/20080318/lib. Also, double check the libxml2 and libcurl library paths as they seem to have been detected as /data/20080318/lib/lib and that does not look correct. -B Mark Lavi wrote: > Hello everyone, > > I have been having trouble building modsecurity 2.5.0 and 2.5.1, whereas > before I could successfully build version 2.1.5 with Apache 2.2.x > > I am trying to build everything in /data/20080318, so you will see that > prefix, forgive the line wrapping and long message, but here's > everything I encounter: > > ~/WORKAREAS/content/webplatform/build/dev/20080318/modsecurity-apache_2. > 5.1/apache2> ./configure --with-apxs=/data/20080318/bin/apxs \ > > --with-httpd-src=/home/mlavi/WORKAREAS/content/webplatform/build/dev/200 > 80318/httpd-2.2.8\ > --with-apr=/data/20080318/bin --with-apu=/data/20080318/bin\ > --with-libxml=/data/20080318 --with-lua=/data/20080318 > --with-curl=/data/20080318 > > checking for g++... g++ > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for gcc... gcc > 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 how to run the C preprocessor... gcc -E > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln -s works... yes > checking whether make sets $(MAKE)... yes > checking for ranlib... ranlib > checking for perl... /data/20080312/bin/perl > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/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 > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking limits.h usability... yes > checking limits.h presence... yes > checking for limits.h... yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking for unistd.h... (cached) yes > checking for an ANSI C-conforming const... yes > checking for inline... inline > checking for C/C++ restrict keyword... __restrict > checking for size_t... yes > checking whether struct tm is in sys/time.h or time.h... time.h > checking for uint8_t... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible malloc... yes > checking for working memcmp... yes > checking for atexit... yes > checking for fchmod... yes > checking for getcwd... yes > checking for memset... yes > checking for strcasecmp... yes > checking for strchr... yes > checking for strdup... yes > checking for strerror... yes > checking for strncasecmp... yes > checking for strrchr... yes > checking for strstr... yes > checking for strtol... yes > configure: looking for Apache module support via DSO through APXS > configure: found apxs at /data/20080318/bin/apxs > configure: checking httpd version > configure: httpd is recent enough > checking for libpcre config script... > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /srclib/pcre/pcre-config > configure: using '-L/data/20080318/lib -lpcre' for pcre Library > checking for libapr config script... /data/20080318/bin/apr-1-config > configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library > checking for libapr-util config script... > /data/20080318/bin/apu-1-config > configure: using ' -L/data/20080318/lib -laprutil-1' for apu Library > checking for libxml2 config script... /data/20080318/bin/xml2-config > configure: using '-L/data/20080318/lib -lxml2 -L/data/20080318/lib/lib > -lz -lm' for libxml Library > checking for pkg-config script for lua library... no > checking for lua install... /data/20080318/lib /data/20080318/include > configure: using '-L/data/20080318/lib -llua' for lua Library > checking for libcurl config script... /data/20080318/bin/curl-config > configure: using '-L/data/20080318/lib -lcurl -R/data/20080318/lib > -L/data/20080318/lib -L/data/20080318/lib/lib' for curl Library > configure: creating ./config.status > config.status: creating Makefile > config.status: creating build/apxs-wrapper > config.status: creating t/run-tests.pl > config.status: creating ../tools/rules-updater.pl > config.status: creating mod_security2_config.h > config.status: mod_security2_config.h is unchanged > > So configure is happy, onto the build: > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec > urity-apache_2.5.1/apache2> make clean > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec > urity-apache_2.5.1/apache2> make > > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o mod_security2.lo > mod_security2.c && touch mod_security2.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_config.lo > apache2_config.c && touch apache2_config.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_io.lo apache2_io.c && > touch apache2_io.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o apache2_util.lo > apache2_util.c && touch apache2_util.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re.lo re.c && touch re.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_operators.lo > re_operators.c && touch re_operators.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_actions.lo re_actions.c && > touch re_actions.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_tfns.lo re_tfns.c && touch > re_tfns.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o re_variables.lo > re_variables.c && touch re_variables.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_logging.lo msc_logging.c > && touch msc_logging.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_xml.lo msc_xml.c && touch > msc_xml.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_multipart.lo > msc_multipart.c && touch msc_multipart.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o modsecurity.lo modsecurity.c > && touch modsecurity.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_parsers.lo msc_parsers.c > && touch msc_parsers.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_util.lo msc_util.c && > touch msc_util.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_pcre.lo msc_pcre.c && > touch msc_pcre.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o persist_dbm.lo persist_dbm.c > && touch persist_dbm.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_reqbody.lo msc_reqbody.c > && touch msc_reqbody.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o pdf_protect.lo pdf_protect.c > && touch pdf_protect.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && touch > msc_geo.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o acmp.lo acmp.c && touch > acmp.slo > /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080318/include -I/data/20080318/include > -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall > -I/data/20080318/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080318/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -I/data/20080318/include -I/data/20080318/include/libxml2 > -I/data/20080318/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && touch > msc_lua.slo > /data/20080318/build/libtool --silent --mode=link gcc -o > mod_security2.la > -L/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 > .8/srclib/pcre -L/data/20080318/lib -L/data/20080318/lib > -L/data/20080318/lib/lib -L/data/20080318/lib -lpcre -lxml2 -lz -lm > -llua -rpath /data/20080318/modules -module -avoid-version 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin > /ld: > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /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/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 > /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 > . > make: *** [mod_security2.la] Error 1 > > It seems that I might need to recompile Apache 2.2.8 with static PCRE -- > would that be correct? I am puzzled on what the next step would be to > correct. Can anyone help? > > Thanks, > > __ > Mark Lavi, Enterprise Web Management > Tel: (650) 933-7707 || www.sgi.com > > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users > -- Brian Rectanus Breach Security |
From: Brian R. <Bri...@br...> - 2008-03-20 22:24:08
|
Hi Mark. Same problem as Clayton, but I'll copy it here: You need to build Lua with a dynamic lib. Unfortunately there are no instructions to do this from Lua :( You can (and I recommend it) just using the binaries from lua.org that have already done this. BTW, Lua is not required, so you can just configure with --without-lua if you want. To go a bit further on this. This is what I had to do on Linux to build Lua as a shared lib: First append a target to the Makefile: $ cat >> src/Makefile <<EOT # Added to build shared lib \$(LUA_SO): \$(CORE_O) \$(LIB_O) \$(CC) -o \$@ -shared \$? EOT Then build with: $ make \ INSTALL_TOP=$INSTALLDIR \ CFLAGS="-O2 -Wall -fPIC" \ PLATS="$LUAPLAT posix liblua.so" \ LUA_A="liblua.a" \ LUA_SO="liblua.so" \ TO_LIB="liblua.a liblua.so" \ $LUAPLAT And then: $ make \ INSTALL_TOP=$INSTALLDIR \ CFLAGS="-O2 -Wall -fPIC" \ PLATS="$LUAPLAT posix liblua.so" \ LUA_A="liblua.a" \ LUA_SO="liblua.so" \ TO_LIB="liblua.a liblua.so" \ liblua.so Set INSTALLDIR to whatever you want. In my case LUAPLAT is "linux" (or probably LUAPLAT=`uname -s | tr '[A-Z]' '[a-z]'`). Hope that helps. -B Mark Lavi wrote: > Ok, definite progress has been made: I am building against pcre (not the > embedded version with Apache), however I am onto the next stumbling > block. > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec > urity-apache_2.5.1/apache2> echo ${LD_LIBRARY_PATH} > /lib:/lib64:/data/20080319/lib > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec > urity-apache_2.5.1/apache2> > LD_LIBRARY_PATH=/lib:/lib64:/data/20080319/lib ./configure\ > --with-apxs=/data/20080319/bin/apxs --with-curl=/data/20080319\ > --with-apr=/data/20080319 --with-apu=/data/20080319\ > --with-libxml=/data/20080319 --with-lua=/data/20080319\ > --with-pcre=/data/20080319 > > checking for g++... g++ > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for gcc... gcc > 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 how to run the C preprocessor... gcc -E > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln -s works... yes > checking whether make sets $(MAKE)... yes > checking for ranlib... ranlib > checking for perl... /data/20080312/bin/perl > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/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 > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking limits.h usability... yes > checking limits.h presence... yes > checking for limits.h... yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking for unistd.h... (cached) yes > checking for an ANSI C-conforming const... yes > checking for inline... inline > checking for C/C++ restrict keyword... __restrict > checking for size_t... yes > checking whether struct tm is in sys/time.h or time.h... time.h > checking for uint8_t... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible malloc... yes > checking for working memcmp... yes > checking for atexit... yes > checking for fchmod... yes > checking for getcwd... yes > checking for memset... yes > checking for strcasecmp... yes > checking for strchr... yes > checking for strdup... yes > checking for strerror... yes > checking for strncasecmp... yes > checking for strrchr... yes > checking for strstr... yes > checking for strtol... yes > configure: looking for Apache module support via DSO through APXS > configure: found apxs at /data/20080319/bin/apxs > configure: checking httpd version > configure: httpd is recent enough > checking for libpcre config script... /data/20080319/bin/pcre-config > configure: using '-L/data/20080319/lib -lpcre' for pcre Library > checking for libapr config script... /data/20080319/bin/apr-1-config > configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library > checking for libapr-util config script... > /data/20080319/bin/apu-1-config > configure: using ' -L/data/20080319/lib -laprutil-1' for apu Library > checking for libxml2 config script... /data/20080319/bin/xml2-config > configure: using '-L/data/20080319/lib -lxml2 -L/data/20080319/lib/lib > -lz -lm' for libxml Library > checking for pkg-config script for lua library... no > checking for lua install... /data/20080319/lib /data/20080319/include > configure: using '-L/data/20080319/lib -llua' for lua Library > checking for libcurl config script... /data/20080319/bin/curl-config > configure: using '-L/data/20080319/lib -lcurl -R/data/20080319/lib > -L/data/20080319/lib -L/data/20080319/lib/lib' for curl Library > configure: creating ./config.status > config.status: creating Makefile > config.status: creating build/apxs-wrapper > config.status: creating t/run-tests.pl > config.status: creating ../tools/rules-updater.pl > config.status: creating mod_security2_config.h > config.status: mod_security2_config.h is unchanged > > [note that we still see libxml2's -L ends in lib/lib, but other lines > source lib fine, not sure if this is on my side or not] > > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec > urity-apache_2.5.1/apache2> make clean > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080319/modsec > urity-apache_2.5.1/apache2> make > > [snip -- omitted compile lines] > > /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include/libxml2 > -I/data/20080319/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && touch > msc_geo.slo > /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include/libxml2 > -I/data/20080319/include -DWITH_LUA -c -o acmp.lo acmp.c && touch > acmp.slo > /data/20080319/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include > -I/data/20080319/include -O2 -g -Wall -I/data/20080319/include -I. > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr/include > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080319/httpd-2.2 > .8/srclib/apr-util/include -I/data/20080319/include > -I/data/20080319/include -I/data/20080319/include/libxml2 > -I/data/20080319/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && touch > msc_lua.slo > /data/20080319/build/libtool --silent --mode=link gcc -o > mod_security2.la -L/data/20080319/lib -L/data/20080319/lib > -L/data/20080319/lib/lib -L/data/20080319/lib -lpcre -lxml2 -lz -lm > -llua -rpath /data/20080319/modules -module -avoid-version 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin > /ld: /data/20080319/lib/liblua.a(lapi.o): relocation R_X86_64_32 against > `luaO_nilobject_' can not be used when making a shared object; recompile > with -fPIC > /data/20080319/lib/liblua.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > apxs:Error: Command failed with rc=65536 > . > make: *** [mod_security2.la] Error 1 > > > So perhaps I've not compiled LUA properly? make test with Lua was fine. > > Thanks again, > > --Mark > Mark Lavi, Enterprise Web Management Team @ SGI > mailto:ml...@sg... || phone:+1-650-933-7707 > > -----Original Message----- > From: Brian Rectanus [mailto:Bri...@br...] > Sent: Wednesday, March 19, 2008 8:19 AM > To: Mark Lavi > Cc: mod...@li... > Subject: Re: [mod-security-users] modsecurity-apache 2.5.1 build issue > on SuSE10/x86-64 > > You specified --with-httpd-src and it is trying to use the httpd bundled > pcre lib under the srclib directory and the dynamic lib is not there > (not built by default with the apache srclib). I would just fetch the > latest pcre src and build that into /data/20080318, use > --with-pcre=/data/20080318 and *not* use --with-httpd-src. > > NOTE: You may also have to set/export LD_LIBRARY_PATH to the non-default > lib directory, /data/20080318/lib. Also, double check the libxml2 and > libcurl library paths as they seem to have been detected as > /data/20080318/lib/lib and that does not look correct. > > -B > > Mark Lavi wrote: >> Hello everyone, >> >> I have been having trouble building modsecurity 2.5.0 and 2.5.1, > whereas >> before I could successfully build version 2.1.5 with Apache 2.2.x >> >> I am trying to build everything in /data/20080318, so you will see > that >> prefix, forgive the line wrapping and long message, but here's >> everything I encounter: >> >> > ~/WORKAREAS/content/webplatform/build/dev/20080318/modsecurity-apache_2. >> 5.1/apache2> ./configure --with-apxs=/data/20080318/bin/apxs \ >> >> > --with-httpd-src=/home/mlavi/WORKAREAS/content/webplatform/build/dev/200 >> 80318/httpd-2.2.8\ >> --with-apr=/data/20080318/bin --with-apu=/data/20080318/bin\ >> --with-libxml=/data/20080318 --with-lua=/data/20080318 >> --with-curl=/data/20080318 >> >> checking for g++... g++ >> checking for C++ compiler default output file name... a.out >> checking whether the C++ compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking for gcc... gcc >> 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 how to run the C preprocessor... gcc -E >> checking for a BSD-compatible install... /usr/bin/install -c >> checking whether ln -s works... yes >> checking whether make sets $(MAKE)... yes >> checking for ranlib... ranlib >> checking for perl... /data/20080312/bin/perl >> checking for grep that handles long lines and -e... /usr/bin/grep >> checking for egrep... /usr/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 >> checking fcntl.h usability... yes >> checking fcntl.h presence... yes >> checking for fcntl.h... yes >> checking limits.h usability... yes >> checking limits.h presence... yes >> checking for limits.h... yes >> checking for stdlib.h... (cached) yes >> checking for string.h... (cached) yes >> checking for unistd.h... (cached) yes >> checking for an ANSI C-conforming const... yes >> checking for inline... inline >> checking for C/C++ restrict keyword... __restrict >> checking for size_t... yes >> checking whether struct tm is in sys/time.h or time.h... time.h >> checking for uint8_t... yes >> checking for stdlib.h... (cached) yes >> checking for GNU libc compatible malloc... yes >> checking for working memcmp... yes >> checking for atexit... yes >> checking for fchmod... yes >> checking for getcwd... yes >> checking for memset... yes >> checking for strcasecmp... yes >> checking for strchr... yes >> checking for strdup... yes >> checking for strerror... yes >> checking for strncasecmp... yes >> checking for strrchr... yes >> checking for strstr... yes >> checking for strtol... yes >> configure: looking for Apache module support via DSO through APXS >> configure: found apxs at /data/20080318/bin/apxs >> configure: checking httpd version >> configure: httpd is recent enough >> checking for libpcre config script... >> > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 >> /srclib/pcre/pcre-config >> configure: using '-L/data/20080318/lib -lpcre' for pcre Library >> checking for libapr config script... /data/20080318/bin/apr-1-config >> configure: using ' -lrt -lcrypt -lpthread -ldl' for apr Library >> checking for libapr-util config script... >> /data/20080318/bin/apu-1-config >> configure: using ' -L/data/20080318/lib -laprutil-1' for apu Library >> checking for libxml2 config script... /data/20080318/bin/xml2-config >> configure: using '-L/data/20080318/lib -lxml2 -L/data/20080318/lib/lib >> -lz -lm' for libxml Library >> checking for pkg-config script for lua library... no >> checking for lua install... /data/20080318/lib /data/20080318/include >> configure: using '-L/data/20080318/lib -llua' for lua Library >> checking for libcurl config script... /data/20080318/bin/curl-config >> configure: using '-L/data/20080318/lib -lcurl -R/data/20080318/lib >> -L/data/20080318/lib -L/data/20080318/lib/lib' for curl Library >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: creating build/apxs-wrapper >> config.status: creating t/run-tests.pl >> config.status: creating ../tools/rules-updater.pl >> config.status: creating mod_security2_config.h >> config.status: mod_security2_config.h is unchanged >> >> So configure is happy, onto the build: >> >> > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec >> urity-apache_2.5.1/apache2> make clean >> >> > mlavi@ldap-dev:~/WORKAREAS/content/webplatform/build/dev/20080318/modsec >> urity-apache_2.5.1/apache2> make >> >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o mod_security2.lo >> mod_security2.c && touch mod_security2.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o apache2_config.lo >> apache2_config.c && touch apache2_config.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o apache2_io.lo apache2_io.c > && >> touch apache2_io.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o apache2_util.lo >> apache2_util.c && touch apache2_util.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o re.lo re.c && touch re.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o re_operators.lo >> re_operators.c && touch re_operators.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o re_actions.lo re_actions.c > && >> touch re_actions.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o re_tfns.lo re_tfns.c && > touch >> re_tfns.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o re_variables.lo >> re_variables.c && touch re_variables.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_logging.lo > msc_logging.c >> && touch msc_logging.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_xml.lo msc_xml.c && > touch >> msc_xml.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_multipart.lo >> msc_multipart.c && touch msc_multipart.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o modsecurity.lo > modsecurity.c >> && touch modsecurity.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_parsers.lo > msc_parsers.c >> && touch msc_parsers.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_util.lo msc_util.c && >> touch msc_util.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_pcre.lo msc_pcre.c && >> touch msc_pcre.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o persist_dbm.lo > persist_dbm.c >> && touch persist_dbm.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_reqbody.lo > msc_reqbody.c >> && touch msc_reqbody.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o pdf_protect.lo > pdf_protect.c >> && touch pdf_protect.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_geo.lo msc_geo.c && > touch >> msc_geo.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o acmp.lo acmp.c && touch >> acmp.slo >> /data/20080318/build/libtool --silent --mode=compile gcc -prefer-pic >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread >> -I/data/20080318/include -I/data/20080318/include >> -I/data/20080318/include -I/data/20080318/include -O2 -g -Wall >> -I/data/20080318/include -I. >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/apr-util/include -I/data/20080318/include >> > -I/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -I/data/20080318/include > -I/data/20080318/include/libxml2 >> -I/data/20080318/include -DWITH_LUA -c -o msc_lua.lo msc_lua.c && > touch >> msc_lua.slo >> /data/20080318/build/libtool --silent --mode=link gcc -o >> mod_security2.la >> > -L/home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2 >> .8/srclib/pcre -L/data/20080318/lib -L/data/20080318/lib >> -L/data/20080318/lib/lib -L/data/20080318/lib -lpcre -lxml2 -lz -lm >> -llua -rpath /data/20080318/modules -module -avoid-version > 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/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin >> /ld: >> > /home/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 >> /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/mlavi/WORKAREAS/content/webplatform/build/dev/20080318/httpd-2.2.8 >> /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 >> . >> make: *** [mod_security2.la] Error 1 >> >> It seems that I might need to recompile Apache 2.2.8 with static PCRE > -- >> would that be correct? I am puzzled on what the next step would be to >> correct. Can anyone help? >> >> Thanks, >> >> __ >> Mark Lavi, Enterprise Web Management >> Tel: (650) 933-7707 || www.sgi.com >> >> >> >> > ------------------------------------------------------------------------ > - >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> mod-security-users mailing list >> mod...@li... >> https://lists.sourceforge.net/lists/listinfo/mod-security-users >> > > > -- > Brian Rectanus > Breach Security > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users > -- Brian Rectanus Breach Security |
From: David V. <dm...@or...> - 2008-03-20 12:24:16
|
Mark Lavi wrote: > Ok, definite progress has been made: I am building against pcre (not the > embedded version with Apache), however I am onto the next stumbling > block. > > /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin > /ld: /data/20080319/lib/liblua.a(lapi.o): relocation R_X86_64_32 against > `luaO_nilobject_' can not be used when making a shared object; recompile > with -fPIC > /data/20080319/lib/liblua.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > apxs:Error: Command failed with rc=65536 > . > make: *** [mod_security2.la] Error 1 > > > So perhaps I've not compiled LUA properly? make test with Lua was fine. Just going from the last error, did you compile LUA with CFLAGS="-fPIC"? -- -dave |