Peter,

Please try:

make clean
make CFLAGS=-DMSC_TEST test.

Thanks


On Wed, Nov 21, 2012 at 9:25 AM, Peter Vrabec <pvrabec@redhat.com> wrote:
Hi Ulisses,

this is my configure cmd line:

./configure --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-pcre-match-limit=1000000
--enable-pcre-match-limit-recursion=1000000 --with-apxs=/usr/sbin/apxs


Peter.




On 11/21/2012 02:59 PM, Ulisses Montenegro wrote:
> Peter,
>
> I've had similar issues when enabling certain test/debug flags while
> configuring mod_security (I don't have access to my system right now, so
> I can't list which ones in particular). What is your ./configure command
> line?
>
> Thanks,
> Ulisses
>
>
> On Wed, Nov 21, 2012 at 11:56 AM, Peter Vrabec <pvrabec@redhat.com
> <mailto:pvrabec@redhat.com>> wrote:
>
>     Hi Breno,
>
>     I'd like to run make check but it doesn't work for me. I don't know what
>     I do wrong. Could you help me please.
>
>     libtool: link: gcc -I/usr/include/httpd -I/usr/include/apr-1
>     -I/usr/include/apr-1 -I/usr/include/libxml2 -DWITH_PCRE_STUDY
>     -DMODSEC_PCRE_MATCH_LIMIT=1000000
>     -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1000000 -DREQUEST_EARLY -DWITH_LUA
>     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>     -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wl,-z
>     -Wl,relro -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  -lpthread
>     -lldap -llber -lexpat -ldb-4.8 /usr/lib64/libapr-1.so
>     /usr/lib64/libaprutil-1.so -lpcre -lxml2 -lz -llua -lm -ldl -pthread
>     msc_test-re.o: In function `update_rule_target_ex':
>     /home/pvrabec/rpmbuild/BUILD/modsecurity-apache_2.7.1/tests/../apache2/re.c:366:
>     undefined reference to `ap_log_error'
>     ...
>
>
>     ap_log_error() is build in /usr/sbin/httpd.
>
>     $ nm -D /usr/sbin/httpd | grep ap_log_error
>     00000000002569a8 D ap_hack_ap_log_error
>     0000000000030760 T ap_log_error
>
>
>     thnx.,
>     Peter.
>
>     ------------------------------------------------------------------------------
>     Monitor your physical, virtual and cloud infrastructure from a single
>     web console. Get in-depth insight into apps, servers, databases, vmware,
>     SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>     Pricing starts from $795 for 25 servers or applications!
>     http://p.sf.net/sfu/zoho_dev2dev_nov
>     _______________________________________________
>     mod-security-developers mailing list
>     mod-security-developers@lists.sourceforge.net
>     <mailto:mod-security-developers@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/mod-security-developers
>     ModSecurity Services from Trustwave's SpiderLabs:
>     https://www.trustwave.com/spiderLabs.php
>
>
>
>
> --
> “If debugging is the process of removing software bugs, then programming
> must be the process of putting them in.” - Edsger Dijkstra
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
>
>
>
> _______________________________________________
> mod-security-developers mailing list
> mod-security-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mod-security-developers
> ModSecurity Services from Trustwave's SpiderLabs:
> https://www.trustwave.com/spiderLabs.php
>


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
mod-security-developers mailing list
mod-security-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-developers
ModSecurity Services from Trustwave's SpiderLabs:
https://www.trustwave.com/spiderLabs.php