Thanka Rainer,

I will take a look

Breno

On Tue, Jul 19, 2011 at 7:06 PM, Rainer Jung <rainer.jung@kippdata.de> wrote:
Hi devs,

2.6.1 has small build problems. The module build Makefile in apache2
does not use any of the PCRE_* vars when actually building the modules.
So it will only work when PCRE is in the default system pathzs and will
then use that PCRE.

Possible patch:

--- Makefile.in.kpdt_orig       2011-07-19 12:40:41.000000000 +0200
+++ Makefile.in 2011-07-20 01:31:31.823349000 +0200
@@ -306,41 +306,41 @@
                           msc_geo.c msc_gsb.c msc_unicode.c acmp.c
msc_lua.c msc_release.c

 mod_security2_la_CFLAGS = @APXS_CFLAGS@ @APR_CFLAGS@ @APU_CFLAGS@ \
-                          @LIBXML2_CFLAGS@ @LUA_CFLAGS@
@MODSEC_EXTRA_CFLAGS@
+                          @PCRE_CFLAGS@ @LIBXML2_CFLAGS@ @LUA_CFLAGS@
@MODSEC_EXTRA_CFLAGS@

-mod_security2_la_CPPFLAGS = @APR_CPPFLAGS@ @LIBXML2_CPPFLAGS@
-mod_security2_la_LIBADD = @APR_LDADD@ @APU_LDADD@ @LIBXML2_LDADD@
@LUA_LDADD@
+mod_security2_la_CPPFLAGS = @APR_CPPFLAGS@ @PCRE_CPPFLAGS@
@LIBXML2_CPPFLAGS@
+mod_security2_la_LIBADD = @APR_LDADD@ @APU_LDADD@ @PCRE_LDADD@
@LIBXML2_LDADD@ @LUA_LDADD@
 @AIX_TRUE@mod_security2_la_LDFLAGS = -module -avoid-version \
 @AIX_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@AIX_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@AIX_TRUE@                           @PCRE_LDFLAGS@ @LIBXML2_LDFLAGS@
@LUA_LDFLAGS@

 @FREEBSD_TRUE@mod_security2_la_LDFLAGS = -no-undefined -module
-avoid-version \
 @FREEBSD_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@FREEBSD_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@FREEBSD_TRUE@                           @PCRE_LDFLAGS@
@LIBXML2_LDFLAGS@ @LUA_LDFLAGS@

 @HPUX_TRUE@mod_security2_la_LDFLAGS = -module -avoid-version \
 @HPUX_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@HPUX_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@HPUX_TRUE@                           @PCRE_LDFLAGS@ @LIBXML2_LDFLAGS@
@LUA_LDFLAGS@

 @LINUX_TRUE@mod_security2_la_LDFLAGS = -no-undefined -module
-avoid-version \
 @LINUX_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@LINUX_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@LINUX_TRUE@                           @PCRE_LDFLAGS@ @LIBXML2_LDFLAGS@
@LUA_LDFLAGS@

 @MACOSX_TRUE@mod_security2_la_LDFLAGS = -module -avoid-version \
 @MACOSX_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@MACOSX_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@MACOSX_TRUE@                           @PCRE_LDFLAGS@
@LIBXML2_LDFLAGS@ @LUA_LDFLAGS@

 @NETBSD_TRUE@mod_security2_la_LDFLAGS = -no-undefined -module
-avoid-version \
 @NETBSD_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@NETBSD_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@NETBSD_TRUE@                           @PCRE_LDFLAGS@
@LIBXML2_LDFLAGS@ @LUA_LDFLAGS@

 @OPENBSD_TRUE@mod_security2_la_LDFLAGS = -no-undefined -module
-avoid-version \
 @OPENBSD_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@OPENBSD_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@OPENBSD_TRUE@                           @PCRE_LDFLAGS@
@LIBXML2_LDFLAGS@ @LUA_LDFLAGS@

 @SOLARIS_TRUE@mod_security2_la_LDFLAGS = -module -avoid-version \
 @SOLARIS_TRUE@                           @APR_LDFLAGS@ @APU_LDFLAGS@
@APXS_LDFLAGS@ \
-@SOLARIS_TRUE@                           @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
+@SOLARIS_TRUE@                           @PCRE_LDFLAGS@
@LIBXML2_LDFLAGS@ @LUA_LDFLAGS@

 all: modsecurity_config_auto.h
       $(MAKE) $(AM_MAKEFLAGS) all-am


Ânother thing: the -DMSC_TEST hint is a bit hidden. It would be nice, if
"make test" would apply this automatically. I first ran into link
failures for msc_test, and when checking the code that used the missing
symbols, I saw the test against the MSC_TEST define, which I then also
found in the doc file.

Thanks for the good work!

Rainer

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
mod-security-developers mailing list
https://lists.sourceforge.net/lists/listinfo/mod-security-developers
ModSecurity Services from Trustwave's SpiderLabs:
https://www.trustwave.com/spiderLabs.php