We're asked to send bugs to this list. So just relabeling as "[BUG]"
...
On Tue, Oct 16, 2012, at 11:41 PM, msd...@15... wrote:
> Noting the new 2.7 release, switching to 2.7.x branch,
>
> svn info
> Path: .
> Working Copy Root Path: /usr/local/src/modsecurity
> URL:
> https://mod-security.svn.sourceforge.net/svnroot/mod-security/m2/branches/2.7.x
> Repository Root:
> https://mod-security.svn.sourceforge.net/svnroot/mod-security
> Repository UUID: 9017d574-64ec-4062-9424-5e00b32a252b
> Revision: 2088
> Node Kind: directory
> Schedule: normal
> Last Changed Author: brenosilva
> Last Changed Rev: 2087
> Last Changed Date: 2012-10-16 06:16:14 -0700 (Tue, 16
> Oct 2012)
>
> even with,
>
> > removing "-Wall -Werror" from automake init,
> >
> > perl -pi -e 's|^(AM_INIT_AUTOMAKE\(\[).*(\]\))|$1foreign$2|g' configure.ac
>
> as before, now, it won't build copmletely at all; `make` now fails @
>
> ...
> Making all in mlogc
> make[1]: Entering directory `/usr/local/src/modsecurity/mlogc'
> /usr/bin/gcc-4.7 -DHAVE_CONFIG_H -I. -I../apache2 -D_REENTRANT
> -D_GNU_SOURCE -I../apache2 -I/usr/local/include
> -I/usr/local/ssl/include -I/usr/include
> -I/usr/local/apache24x/include -I/usr/include
> -I/usr/local/include -O3 -march=amdfam10 -mtune=amdfam10 -fPIC
> -DPIC -D_GNU_SOURCE -fno-strict-aliasing -MT mlogc-mlogc.o -MD
> -MP -MF .deps/mlogc-mlogc.Tpo -c -o mlogc-mlogc.o `test -f
> 'mlogc.c' || echo './'`mlogc.c
> mv -f .deps/mlogc-mlogc.Tpo .deps/mlogc-mlogc.Po
> /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.7
> -I/usr/local/apache24x/include -I/usr/include
> -I/usr/local/include -O3 -march=amdfam10 -mtune=amdfam10 -fPIC
> -DPIC -D_GNU_SOURCE -fno-strict-aliasing -lcrypt -luuid -lrt
> -lcrypt -lpthread -ldl -lexpat -L/usr/local/ssl/lib64
> -Wl,-rpath,/usr/local/ssl/lib64 -lssl -lcrypto -o mlogc
> mlogc-mlogc.o /usr/local/apache24x/lib/libapr-2.la
> -L/usr/local/lib64 -lpcre -lcurl
> libtool: link: /usr/bin/gcc-4.7 -I/usr/local/apache24x/include
> -I/usr/include -I/usr/local/include -O3 -march=amdfam10
> -mtune=amdfam10 -fPIC -DPIC -D_GNU_SOURCE -fno-strict-aliasing
> -Wl,-rpath -Wl,/usr/local/ssl/lib64 -o mlogc mlogc-mlogc.o
> -L/usr/local/ssl/lib64 /usr/local/apache24x/lib/libapr-2.so
> -lssl -lcrypto -luuid -lrt -lcrypt -lpthread -ldl -lexpat
> -L/usr/local/lib64 /usr/local/lib64/libpcre.so -lcurl -pthread
> -Wl,-rpath -Wl,/usr/local/apache24x/lib -Wl,-rpath
> -Wl,/usr/local/apache24x/lib
> make[1]: Leaving directory `/usr/local/src/modsecurity/mlogc'
> Making all in docs
> /bin/sh: line 17: cd: docs: No such file or directory
> make: *** [all-recursive] Error 1
>
>
> On Sun, Oct 14, 2012, at 10:24 AM, msd...@15... wrote:
> > Hi
> >
> > Building latest mod-security,
> >
> > svn co
> > https://mod-security.svn.sourceforge.net/svnroot/mod-security/m2/branches/2.6.x
> > modsecurity
> > cd /usr/local/src/modsecurity
> > svn info
> > Path: .
> > Working Copy Root Path: /usr/local/src/modsecurity
> > URL:
> > https://mod-security.svn.sourceforge.net/svnroot/mod-security/m2/branches/2.6.x
> > Repository Root:
> > https://mod-security.svn.sourceforge.net/svnroot/mod-security
> > Repository UUID: 9017d574-64ec-4062-9424-5e00b32a252b
> > Revision: 2079
> > Node Kind: directory
> > Schedule: normal
> > Last Changed Author: brenosilva
> > Last Changed Rev: 2064
> > Last Changed Date: 2012-09-25 07:02:50 -0700 (Tue, 25
> > Sep 2012)
> >
> > I see a number of configure & build failures.
> >
> > On linux/64 with
> >
> > gcc -v | grep version
> > Using built-in specs.
> > COLLECT_GCC=/usr/bin/gcc-4.7
> > COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper
> > Target: x86_64-suse-linux
> > Configured with: ../configure --prefix=/usr
> > --infodir=/usr/share/info --mandir=/usr/share/man
> > --libdir=/usr/lib64 --libexecdir=/usr/lib64
> > --enable-languages=c,c++,objc,fortran,obj-c++,java,ada
> > --enable-checking=release
> > --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp
> > --disable-libssp --disable-libitm --disable-plugin
> > --with-bugurl=http://bugs.opensuse.org/
> > --with-pkgversion='SUSE Linux' --disable-libgcj
> > --disable-libmudflap --with-slibdir=/lib64
> > --with-system-zlib --enable-__cxa_atexit
> > --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
> > --enable-version-specific-runtime-libs
> > --enable-linker-build-id --program-suffix=-4.7
> > --enable-linux-futex --without-system-libunwind
> > --with-arch-32=i586 --with-tune=generic
> > --build=x86_64-suse-linux
> > Thread model: posix
> > gcc version 4.7.2 20120920 [gcc-4_7-branch revision
> > 191568] (SUSE Linux)
> >
> >
> > and ENV including
> >
> > echo -e $CFLAGS "\n" $CXXFLAGS "\n" $LDFLAGS "\n" $CPPFLAGS
> > -O3 -march=amdfam10 -mtune=amdfam10 -fPIC -DPIC
> > -D_GNU_SOURCE -fno-strict-aliasing
> > -O3 -march=amdfam10 -mtune=amdfam10 -fPIC -DPIC
> > -D_GNU_SOURCE -fno-strict-aliasing
> > -L/usr/local/ssl/lib64 -Wl,-rpath,/usr/local/ssl/lib64
> > -lssl -lcrypto
> > -I/usr/local/include -I/usr/local/ssl/include
> > -I/usr/include
> >
> > 'autogen.sh' complains
> >
> > sh autogen.sh
> >
> > libtoolize: putting auxiliary files in
> > AC_CONFIG_AUX_DIR, `build'.
> > libtoolize: copying file `build/ltmain.sh'
> > libtoolize: putting macros in AC_CONFIG_MACRO_DIR,
> > `build'.
> > libtoolize: copying file `build/libtool.m4'
> > libtoolize: copying file `build/ltoptions.m4'
> > libtoolize: copying file `build/ltsugar.m4'
> > libtoolize: copying file `build/ltversion.m4'
> > libtoolize: copying file `build/lt~obsolete.m4'
> > configure.ac:20: installing 'build/config.guess'
> > configure.ac:20: installing 'build/config.sub'
> > configure.ac:17: installing 'build/install-sh'
> > configure.ac:17: installing 'build/missing'
> > automake: warnings are treated as errors
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'libalp2.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > alp2/Makefile.am:1: while processing Libtool library
> > 'libalp2.la'
> > alp2/Makefile.am: installing 'build/depcomp'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_security2.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > apache2/Makefile.am:2: while processing Libtool
> > library 'mod_security2.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_op_strstr.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_op_strstr.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_reqbody_example.la': linking libtool libraries
> > using a non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_reqbody_example.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_tfn_reverse.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_tfn_reverse.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_var_remote_addr_port.la': linking libtool libraries
> > using a non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_var_remote_addr_port.la'
> > mlogc/Makefile.am:3: warning: compiling 'mlogc.c' with
> > per-target flags requires 'AM_PROG_CC_C_O' in
> > 'configure.ac'
> > autoreconf: automake failed with exit status: 1
> > automake: warnings are treated as errors
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'libalp2.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > alp2/Makefile.am:1: while processing Libtool library
> > 'libalp2.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_security2.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > apache2/Makefile.am:2: while processing Libtool
> > library 'mod_security2.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_op_strstr.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_op_strstr.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_reqbody_example.la': linking libtool libraries
> > using a non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_reqbody_example.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_tfn_reverse.la': linking libtool libraries using a
> > non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_tfn_reverse.la'
> > /usr/share/automake-1.12/am/ltlibrary.am: warning:
> > 'mod_var_remote_addr_port.la': linking libtool libraries
> > using a non-POSIX
> > /usr/share/automake-1.12/am/ltlibrary.am: archiver
> > requires 'AM_PROG_AR' in 'configure.ac'
> > ext/Makefile.am:11: while processing Libtool library
> > 'mod_var_remote_addr_port.la'
> > mlogc/Makefile.am:3: warning: compiling 'mlogc.c' with
> > per-target flags requires 'AM_PROG_CC_C_O' in
> > 'configure.ac'
> >
> > causing a subsequent 'configure'
> >
> > ./configure \
> > --enable-shared --disable-static \
> > --enable-apache2-module \
> > --with-apxs=/usr/local/apache24x/bin/apxs \
> > --with-apr=/usr/local/apache24x/bin/apr-2-config \
> > --with-apu=/usr/local/apache24x/bin/apr-2-config \
> > --with-pcre=/usr/local/bin/pcre-config
> > --enable-strict-compile=no
> >
> > to FAIL,
> >
> > ...
> > checking if libcurl is linked with gnutls... no
> > configure: using curl v7.25.0
> > checking that generated files are newer than configure... done
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: error: cannot find input file:
> > `tools/Makefile.in'
> >
> > removing "-Wall -Werror" from automake init,
> >
> > perl -pi -e 's|^(AM_INIT_AUTOMAKE\(\[).*(\]\))|$1foreign$2|g'
> > configure.ac
> >
> > quiets down autgen.sh
> >
> > make clean
> > sh autogen.sh
> > libtoolize: putting auxiliary files in
> > AC_CONFIG_AUX_DIR, `build'.
> > libtoolize: copying file `build/ltmain.sh'
> > libtoolize: putting macros in AC_CONFIG_MACRO_DIR,
> > `build'.
> > libtoolize: copying file `build/libtool.m4'
> > libtoolize: copying file `build/ltoptions.m4'
> > libtoolize: copying file `build/ltsugar.m4'
> > libtoolize: copying file `build/ltversion.m4'
> > libtoolize: copying file `build/lt~obsolete.m4'
> >
> > and enables configure,
> >
> > ./configure \
> > --enable-shared --disable-static \
> > --enable-apache2-module \
> > --with-apxs=/usr/local/apache24x/bin/apxs \
> > --with-apr=/usr/local/apache24x/bin/apr-2-config \
> > --with-apu=/usr/local/apache24x/bin/apr-2-config \
> > --with-pcre=/usr/local/bin/pcre-config \
> > --enable-strict-compile=no
> >
> > to complete. but now subsequent 'make' FAILS,
> > ...
> > msc_lua.c: In function 'lua_restore':
> > msc_lua.c:82:5: error: too few arguments to function 'lua_load'
> > In file included from msc_lua.h:23:0,
> > from msc_lua.c:17:
> > /usr/include/lua.h:256:16: note: declared here
> > msc_lua.c: In function 'lua_compile':
> > msc_lua.c:93:7: warning: assignment makes pointer from integer
> > without a cast [enabled by default]
> > msc_lua.c: In function 'lua_execute':
> > msc_lua.c:408:7: warning: assignment makes pointer from integer
> > without a cast [enabled by default]
> > make[2]: *** [mod_security2_la-msc_lua.lo] Error 1
> > make[2]: Leaving directory `/usr/local/src/modsecurity/apache2'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/usr/local/src/modsecurity/apache2'
> > make: *** [all-recursive] Error 1
> >
> > disabling 'lua'
> >
> > ./configure \
> > --enable-shared --disable-static \
> > --enable-apache2-module \
> > --with-apxs=/usr/local/apache24x/bin/apxs \
> > --with-apr=/usr/local/apache24x/bin/apr-2-config \
> > --with-apu=/usr/local/apache24x/bin/apr-2-config \
> > --with-pcre=/usr/local/bin/pcre-config \
> > --enable-strict-compile=no \
> > + --without-lua
> >
> > fixes that. 'make' completes, but,
> >
> > ldd ./apache2/.libs/mod_security2.so
> > linux-vdso.so.1 (0x00007fff7c5b7000)
> > libapr-2.so.0 => /usr/local/apache24x/lib/libapr-2.so.0
> > (0x00007f7577602000)
> > libssl.so.1.0.0 => /usr/local/ssl/lib64/libssl.so.1.0.0
> > (0x00007f7577397000)
> > libcrypto.so.1.0.0 => /usr/local/ssl/lib64/libcrypto.so.1.0.0
> > (0x00007f7576fac000)
> > libuuid.so.1 => /usr/lib64/libuuid.so.1 (0x00007f7576da7000)
> > librt.so.1 => /lib64/librt.so.1 (0x00007f7576b65000)
> > libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f757692a000)
> > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f757670e000)
> > libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f75764e3000)
> > !! libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f7576289000)
> > libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f7575f2b000)
> > libdl.so.2 => /lib64/libdl.so.2 (0x00007f7575d26000)
> > liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007f7575b00000)
> > libz.so.1 => /lib64/libz.so.1 (0x00007f75758ea000)
> > libm.so.6 => /lib64/libm.so.6 (0x00007f75755f2000)
> > libc.so.6 => /lib64/libc.so.6 (0x00007f757524d000)
> > /lib64/ld-linux-x86-64.so.2 (0x00007f7577ac3000)
> >
> >
> > the lib is linked against an incorrect 'libpcre'
> >
> > libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f7576289000)
> >
> > since
> >
> > ...
> > --with-pcre=/usr/local/bin/pcre-config \
> > ...
> >
> > should link against
> >
> > /usr/local/bin/pcre-config --libs --cflags
> > -L/usr/local/lib64 -lpcre
> > -I/usr/local/include
> > ls -al /usr/local/lib64/libpcre.so*
> > lrwxrwxrwx 1 root root 16 Oct 13 21:35
> > /usr/local/lib64/libpcre.so -> libpcre.so.1.0.1*
> > lrwxrwxrwx 1 root root 16 Oct 13 21:35
> > /usr/local/lib64/libpcre.so.1 -> libpcre.so.1.0.1*
> > -rwxr-xr-x 1 root root 573K Oct 13 21:35
> > /usr/local/lib64/libpcre.so.1.0.1*
> >
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> 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
|