Re: [Mod-security-developers] ModSecurity 2.7.4 build error
Brought to you by:
victorhora,
zimmerletw
From: Pavel M. <pa...@ne...> - 2013-05-28 12:22:41
|
> I fixed it in the tarball. Could you download again and try ? Hi, I was able to compile the new tarball. FIY: The (?^ test is still broken. -- Pavel Mateja > Thanks > > On Tue, May 28, 2013 at 9:10 AM, Breno Silva <bre...@gm...> wrote: > > You are right. > > > > need to add : > > > > #if !defined(MSC_TEST) > > ap_find_linked_module > > #endif > > > > On Tue, May 28, 2013 at 5:54 AM, Pavel Mateja <pa...@ne...> wrote: > >> Hi, > >> I've tried to build latest version of ModSecurity but it failed on: > >> > >> /bin/bash ../libtool --tag=CC --mode=link gcc -I/apache/include - > >> I/apache/include -I/apache/include -I/usr/include/libxml2 > >> -DWITH_PCRE_STUDY > >> -DMODSEC_PCRE_MATCH_LIMIT=50000 > >> -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=10000 > >> > >> - > >> > >> DREQUEST_EARLY -DMSC_TEST -lrt -lcrypt -lpthread -ldl > >> > >> -lexpat > >> > >> -o msc_test msc_test-msc_test.o msc_test-re.o msc_test-re_operators.o > >> msc_test-re_actions.o msc_test-re_tfns.o msc_test-re_variables.o > >> msc_test- msc_logging.o msc_test-msc_xml.o msc_test-msc_multipart.o > >> msc_test- modsecurity.o msc_test-msc_parsers.o msc_test-msc_util.o > >> msc_test-msc_pcre.o > >> msc_test-msc_unicode.o msc_test-persist_dbm.o msc_test-msc_reqbody.o > >> msc_test- > >> msc_crypt.o msc_test-msc_tree.o msc_test-msc_geo.o msc_test-msc_gsb.o > >> msc_test-acmp.o msc_test-msc_lua.o msc_test-msc_release.o > >> msc_test-sqlparse.o > >> /apache/lib/libapr-1.la > >> /apache/lib/libaprutil-1.la-L/usr/lib/i386-linux-gnu -lpcre -L/usr/lib > >> -lxml2 > >> libtool: link: gcc -I/apache/include -I/apache/include -I/apache/include > >> - I/usr/include/libxml2 -DWITH_PCRE_STUDY > >> -DMODSEC_PCRE_MATCH_LIMIT=50000 - > >> DMODSEC_PCRE_MATCH_LIMIT_RECURSION=10000 -DREQUEST_EARLY -DMSC_TEST -o > >> msc_test msc_test-msc_test.o msc_test-re.o msc_test-re_operators.o > >> msc_test- > >> re_actions.o msc_test-re_tfns.o msc_test-re_variables.o > >> msc_test-msc_logging.o > >> msc_test-msc_xml.o msc_test-msc_multipart.o msc_test-modsecurity.o > >> msc_test- > >> msc_parsers.o msc_test-msc_util.o msc_test-msc_pcre.o > >> msc_test-msc_unicode.o > >> msc_test-persist_dbm.o msc_test-msc_reqbody.o msc_test-msc_crypt.o > >> msc_test- > >> msc_tree.o msc_test-msc_geo.o msc_test-msc_gsb.o msc_test-acmp.o > >> msc_test- msc_lua.o msc_test-msc_release.o msc_test-sqlparse.o -lrt > >> -lcrypt -lpthread - > >> ldl /usr/lib/i386-linux-gnu/libexpat.so /apache/lib/libapr-1.so > >> /apache/lib/libaprutil-1.so -L/usr/lib/i386-linux-gnu -lpcre -L/usr/lib > >> -lxml2 > >> -pthread > >> msc_test-re_variables.o: In function `var_remote_addr_generate': > >> re_variables.c:(.text+0x191f): undefined reference to > >> `ap_find_linked_module' > >> collect2: error: ld returned 1 exit status > >> make[2]: *** [msc_test] Error 1 > >> make[2]: Leaving directory `/tmp/modsecurity-apache_2.7.4/tests' > >> make[1]: *** [check-am] Error 2 > >> make: *** [check-recursive] Error 1 > >> > >> 2.7.3 compiled just fine on the same system using the same configure > >> parameters: > >> ./configure --prefix=/apache/modules/ --with-apxs=/apache/bin/apxs > >> --with- apr=/apache/bin/apr-1-config > >> --with-apu=/apache/bin/apu-1-config --enable-pcre- > >> match-limit=50000 --enable-pcre-match-limit-recursion=10000 > >> --disable-mlogc > >> > >> What has changed since last version? I can see one new usage of > >> ap_find_linked_module in modsecurity-apache_2.7.4/apache2/re_variables.c > >> > >> Thanks > >> -- > >> Pavel Mateja > >> > >> > >> ------------------------------------------------------------------------ > >> ------ Try New Relic Now & We'll Send You this Cool Shirt > >> New Relic is the only SaaS-based application performance monitoring > >> service > >> that delivers powerful full stack analytics. Optimize and monitor your > >> browser, app, & servers with just a few lines of code. Try New Relic > >> and get this awesome Nerd Life shirt! > >> http://p.sf.net/sfu/newrelic_d2d_may > >> _______________________________________________ > >> mod-security-developers mailing list > >> mod...@li... > >> https://lists.sourceforge.net/lists/listinfo/mod-security-developers > >> ModSecurity Services from Trustwave's SpiderLabs: > >> https://www.trustwave.com/spiderLabs.php |