Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8coIXJ + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd /home/zsun/rpmbuild/BUILD + rm -rf nginx-1.11.8 + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/nginx-1.11.8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nginx-1.11.8 + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/lua-nginx-module-0.10.7.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/ngx_devel_kit-0.3.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/modsecurity-2.9.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/modsecurity-2.8.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/owasp-modsecurity-crs-60c8bc9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/ngx-fancyindex-0.4.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/echo-nginx-module-0.60.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/libxml2-2.6.29.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/httpd-2.2.15.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + pushd modsecurity-2.9.0 ~/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0 ~/rpmbuild/BUILD/nginx-1.11.8 + echo 'Patch #1 (modsec_lua_dump.patch):' Patch #1 (modsec_lua_dump.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file apache2/msc_lua.c + popd ~/rpmbuild/BUILD/nginx-1.11.8 + echo 'Patch #0 (nginx-auto-cc-gcc.patch):' Patch #0 (nginx-auto-cc-gcc.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file auto/cc/gcc Hunk #1 succeeded at 166 (offset -6 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3Ok0bI + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd nginx-1.11.8 + pushd modsecurity-2.9.0 ~/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0 ~/rpmbuild/BUILD/nginx-1.11.8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build/config.sub ++ basename ./build/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build/config.guess ++ basename ./build/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./build/ltmain.sh + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-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 --with-yajl --enable-pcre-match-limit=no --enable-pcre-match-limit-recursion=no --enable-pcre-jit --enable-pcre-study --enable-standalone-module --disable-mlogc --with-ssdeep --enable-lua-cache --enable-shared checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o 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 whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for x86_64-redhat-linux-gnu-ar... no checking for x86_64-redhat-linux-gnu-lib... no checking for x86_64-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for x86_64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gawk... (cached) gawk checking for x86_64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for perl... /usr/bin/perl checking for env... /usr/bin/env checking for ANSI C header files... (cached) 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 sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for pid_t... yes 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 getcwd... yes checking for memmove... 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 checking for fchmod... yes checking for strcasestr... yes Checking platform... Identified as Linux checking for libcurl config script... /usr/bin/curl-config ./configure: line 13855: test: : integer expression expected ./configure: line 13858: test: : integer expression expected ./configure: line 13861: test: : integer expression expected checking if libcurl is at least v... yes, 7.53.1 checking if libcurl is linked with gnutls... no configure: using curl v7.53.1 configure: looking for Apache module support via DSO through APXS configure: found apxs at /usr/bin/apxs configure: checking httpd version configure: httpd is recent enough checking for libpcre config script... /usr/bin/pcre-config configure: using pcre v8.41 checking for libapr config script... /usr/bin/apr-1-config configure: using apr v1.6.2 checking for libapu config script... /usr/bin/apu-1-config configure: using apu v1.5.4 checking for libxml2 config script... /usr/bin/xml2-config checking if libxml2 is at least v2.6.29... yes, 2.9.4 configure: using libxml2 v2.9.4 checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for liblua config script... /usr/bin/x86_64-redhat-linux-gnu-pkg-config configure: using lua v5.1.4 checking for libyajl config script... /usr/bin/x86_64-redhat-linux-gnu-pkg-config configure: using yajl v2.1.0 checking for ssdeep path... -lfuzzy -DWITH_SSDEEP -I/usr/ checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating tools/Makefile config.status: creating apache2/Makefile config.status: creating standalone/Makefile config.status: creating nginx/modsecurity/config config.status: creating build/apxs-wrapper config.status: creating tests/run-unit-tests.pl config.status: creating tests/run-regression-tests.pl config.status: creating tests/gen_rx-pm.pl config.status: creating tests/csv_rx-pm.pl config.status: creating tests/regression/server_root/conf/httpd.conf config.status: creating tools/rules-updater.pl config.status: creating tests/Makefile config.status: creating apache2/modsecurity_config_auto.h config.status: executing depfiles commands config.status: executing libtool commands + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + make -j2 Making all in tools make[1]: Entering directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/tools' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/tools' Making all in apache2 make[1]: Entering directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/apache2' make all-am make[2]: Entering directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/apache2' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-acmp.lo `test -f 'acmp.c' || echo './'`acmp.c /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-apache2_config.lo `test -f 'apache2_config.c' || echo './'`apache2_config.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c acmp.c -fPIC -DPIC -o .libs/mod_security2_la-acmp.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_config.c -fPIC -DPIC -o .libs/mod_security2_la-apache2_config.o acmp.c:258:13: warning: 'acmp_clone_node_no_state' defined but not used [-Wunused-function] static void acmp_clone_node_no_state(acmp_node_t *from, acmp_node_t *to) { ^~~~~~~~~~~~~~~~~~~~~~~~ apache2_config.c: In function 'add_rule': apache2_config.c:758:9: warning: unused variable 'offset' [-Wunused-variable] int offset = 0; ^~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c acmp.c -o mod_security2_la-acmp.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-apache2_io.lo `test -f 'apache2_io.c' || echo './'`apache2_io.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_io.c -fPIC -DPIC -o .libs/mod_security2_la-apache2_io.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_io.c -o mod_security2_la-apache2_io.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_config.c -o mod_security2_la-apache2_config.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-apache2_util.lo `test -f 'apache2_util.c' || echo './'`apache2_util.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_util.c -fPIC -DPIC -o .libs/mod_security2_la-apache2_util.o apache2_util.c: In function 'internal_log_ex': apache2_util.c:204:11: warning: unused variable 'str' [-Wunused-variable] char *str = NULL; ^~~ apache2_util.c:203:11: warning: unused variable 'saved' [-Wunused-variable] char *saved = NULL; ^~~~~ apache2_util.c:202:11: warning: unused variable 'parse_remote' [-Wunused-variable] char *parse_remote = NULL; ^~~~~~~~~~~~ apache2_util.c:201:11: warning: unused variable 'remote' [-Wunused-variable] char *remote = NULL; ^~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c apache2_util.c -o mod_security2_la-apache2_util.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-mod_security2.lo `test -f 'mod_security2.c' || echo './'`mod_security2.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c mod_security2.c -fPIC -DPIC -o .libs/mod_security2_la-mod_security2.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-modsecurity.lo `test -f 'modsecurity.c' || echo './'`modsecurity.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c modsecurity.c -fPIC -DPIC -o .libs/mod_security2_la-modsecurity.o mod_security2.c: In function 'hook_connection_early': mod_security2.c:1547:47: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare] if (!conn_limits_filter_state == MODSEC_ENABLED) ^~ mod_security2.c:1547:47: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] mod_security2.c:1547:21: note: add parentheses around left hand side expression to silence this warning if (!conn_limits_filter_state == MODSEC_ENABLED) ^~~~~~~~~~~~~~~~~~~~~~~~~ ( ) libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c modsecurity.c -o mod_security2_la-modsecurity.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c mod_security2.c -o mod_security2_la-mod_security2.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_status_engine.lo `test -f 'msc_status_engine.c' || echo './'`msc_status_engine.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_status_engine.c -fPIC -DPIC -o .libs/mod_security2_la-msc_status_engine.o msc_status_engine.c: In function 'msc_status_engine_mac_address': msc_status_engine.c:198:10: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] if ( ioctl( sock, SIOCGIFCONF, &conf )) { ^~~~~ msc_status_engine.c:215:26: warning: pointer targets in passing argument 1 of 'apr_snprintf' differ in signedness [-Wpointer-sign] apr_snprintf(mac, MAC_ADDRESS_SIZE, "%02x:%02x:%02x:%02x:%02x:%02x", ^~~ In file included from modsecurity.h:53:0, from msc_pcre.h:33, from msc_status_engine.h:22, from msc_status_engine.c:15: /usr/include/apr-1/apr_strings.h:279:25: note: expected 'char *' but argument is of type 'unsigned char *' APR_DECLARE_NONSTD(int) apr_snprintf(char *buf, apr_size_t len, ^~~~~~~~~~~~ msc_status_engine.c:209:17: warning: unused variable 'i' [-Wunused-variable] int i = 0; ^ msc_status_engine.c: In function 'msc_status_engine_unique_id': msc_status_engine.c:314:51: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] apr_sha1_update(&context, mac_address, strlen(mac_address)); ^~~~~~~~~~~ In file included from /usr/include/apr-1/apr_want.h:63:0, from /usr/include/apr-1/apr_pools.h:47, from msc_status_engine.h:19, from msc_status_engine.c:15: /usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ msc_status_engine.c:314:31: warning: pointer targets in passing argument 2 of 'apr_sha1_update' differ in signedness [-Wpointer-sign] apr_sha1_update(&context, mac_address, strlen(mac_address)); ^~~~~~~~~~~ In file included from msc_remote_rules.h:27:0, from modsecurity.h:49, from msc_pcre.h:33, from msc_status_engine.h:22, from msc_status_engine.c:15: /usr/include/apr-1/apr_sha1.h:96:19: note: expected 'const char *' but argument is of type 'unsigned char *' APU_DECLARE(void) apr_sha1_update(apr_sha1_ctx_t *context, const char *input, ^~~~~~~~~~~~~~~ msc_status_engine.c:319:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(digest, "%s%02x", digest, hex_digest[i]); ^~~~~~ In file included from /usr/include/features.h:410:0, from /usr/include/sys/types.h:25, from /usr/include/apr-1/apr-x86_64.h:164, from /usr/include/apr-1/apr.h:19, from msc_status_engine.h:18, from msc_status_engine.c:15: /usr/include/bits/stdio2.h:31:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ msc_status_engine.c: In function 'msc_beacon_string': msc_status_engine.c:363:55: warning: the address of 'pcre' will always evaluate as 'true' [-Waddress] (apr_loaded ? strlen(apr_loaded) : 6) + (pcre ? strlen(pcre) : 6) + ^ msc_status_engine.c:376:37: warning: pointer targets in passing argument 1 of 'msc_status_engine_unique_id' differ in signedness [-Wpointer-sign] if (msc_status_engine_unique_id(id)) { ^~ msc_status_engine.c:280:14: note: expected 'unsigned char *' but argument is of type 'char *' int DSOLOCAL msc_status_engine_unique_id (unsigned char *digest) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ msc_status_engine.c: In function 'msc_status_engine_call': msc_status_engine.c:478:9: warning: implicit declaration of function 'gethostbyname'; did you mean 'gethostname'? [-Wimplicit-function-declaration] if (gethostbyname(hostname)) { ^~~~~~~~~~~~~ gethostname /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_crypt.lo `test -f 'msc_crypt.c' || echo './'`msc_crypt.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_crypt.c -fPIC -DPIC -o .libs/mod_security2_la-msc_crypt.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_status_engine.c -o mod_security2_la-msc_status_engine.o >/dev/null 2>&1 msc_crypt.c: In function 'normalize_path': msc_crypt.c:69:17: warning: unused variable 'bytes' [-Wunused-variable] int bytes = 0; ^~~~~ msc_crypt.c: In function 'getkey': msc_crypt.c:154:31: warning: pointer targets in passing argument 1 of 'apr_generate_random_bytes' differ in signedness [-Wpointer-sign] apr_generate_random_bytes(salt, sizeof(salt)); ^~~~ In file included from /usr/include/apr-1/apr_pools.h:45:0, from msc_logging.h:41, from modsecurity.h:37, from msc_crypt.h:18, from msc_crypt.c:15: /usr/include/apr-1/apr_general.h:233:27: note: expected 'unsigned char *' but argument is of type 'char *' APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf, ^~~~~~~~~~~~~~~~~~~~~~~~~ msc_crypt.c:161:31: warning: pointer targets in passing argument 1 of 'apr_generate_random_bytes' differ in signedness [-Wpointer-sign] apr_generate_random_bytes(salt, sizeof(salt)); ^~~~ In file included from /usr/include/apr-1/apr_pools.h:45:0, from msc_logging.h:41, from modsecurity.h:37, from msc_crypt.h:18, from msc_crypt.c:15: /usr/include/apr-1/apr_general.h:233:27: note: expected 'unsigned char *' but argument is of type 'char *' APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf, ^~~~~~~~~~~~~~~~~~~~~~~~~ msc_crypt.c: In function 'inject_hashed_response_body': msc_crypt.c:1029:33: warning: variable 'enc' set but not used [-Wunused-but-set-variable] xmlCharEncoding enc; ^~~ msc_crypt.c:1036:29: warning: variable 'enc' set but not used [-Wunused-but-set-variable] xmlCharEncoding enc; ^~~ /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_geo.lo `test -f 'msc_geo.c' || echo './'`msc_geo.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_geo.c -fPIC -DPIC -o .libs/mod_security2_la-msc_geo.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_crypt.c -o mod_security2_la-msc_crypt.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_geo.c -o mod_security2_la-msc_geo.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_gsb.lo `test -f 'msc_gsb.c' || echo './'`msc_gsb.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_gsb.c -fPIC -DPIC -o .libs/mod_security2_la-msc_gsb.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_json.lo `test -f 'msc_json.c' || echo './'`msc_json.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_json.c -fPIC -DPIC -o .libs/mod_security2_la-msc_json.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_gsb.c -o mod_security2_la-msc_gsb.o >/dev/null 2>&1 msc_json.c: In function 'yajl_map_key': msc_json.c:85:38: warning: pointer targets in passing argument 2 of 'apr_pstrndup' differ in signedness [-Wpointer-sign] safe_key = apr_pstrndup(msr->mp, key, length); ^~~ In file included from modsecurity.h:53:0, from msc_json.h:22, from msc_json.c:15: /usr/include/apr-1/apr_strings.h:125:21: note: expected 'const char *' but argument is of type 'const unsigned char *' APR_DECLARE(char *) apr_pstrndup(apr_pool_t *p, const char *s, apr_size_t n); ^~~~~~~~~~~~ msc_json.c:85:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] safe_key = apr_pstrndup(msr->mp, key, length); ^ msc_json.c: In function 'yajl_string': msc_json.c:134:35: warning: pointer targets in passing argument 2 of 'json_add_argument' differ in signedness [-Wpointer-sign] return json_add_argument(msr, value, length); ^~~~~ msc_json.c:19:5: note: expected 'const char *' but argument is of type 'const unsigned char *' int json_add_argument(modsec_rec *msr, const char *value, unsigned length) ^~~~~~~~~~~~~~~~~ msc_json.c: In function 'yajl_start_map': msc_json.c:168:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] msr->json->prefix = apr_psprintf(msr->mp, "%s.%s", msr->json->prefix, ^ msc_json.c:172:50: warning: pointer targets in passing argument 2 of 'apr_pstrdup' differ in signedness [-Wpointer-sign] msr->json->prefix = apr_pstrdup(msr->mp, msr->json->current_key); ^~~ In file included from modsecurity.h:53:0, from msc_json.h:22, from msc_json.c:15: /usr/include/apr-1/apr_strings.h:95:21: note: expected 'const char *' but argument is of type 'unsigned char *' APR_DECLARE(char *) apr_pstrdup(apr_pool_t *p, const char *s); ^~~~~~~~~~~ msc_json.c:172:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] msr->json->prefix = apr_pstrdup(msr->mp, msr->json->current_key); ^ msc_json.c: In function 'yajl_end_map': msc_json.c:201:25: warning: pointer targets in passing argument 1 of 'strrchr' differ in signedness [-Wpointer-sign] separator = strrchr(msr->json->prefix, '.'); ^~~ In file included from msc_release.h:19:0, from modsecurity.h:36, from msc_json.h:22, from msc_json.c:15: /usr/include/string.h:258:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *strrchr (const char *__s, int __c) ^~~~~~~ msc_json.c:201:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] separator = strrchr(msr->json->prefix, '.'); ^ msc_json.c:204:53: warning: pointer targets in passing argument 2 of 'apr_pstrmemdup' differ in signedness [-Wpointer-sign] msr->json->prefix = apr_pstrmemdup(msr->mp, msr->json->prefix, ^~~ In file included from modsecurity.h:53:0, from msc_json.h:22, from msc_json.c:15: /usr/include/apr-1/apr_strings.h:109:21: note: expected 'const char *' but argument is of type 'unsigned char *' APR_DECLARE(char *) apr_pstrmemdup(apr_pool_t *p, const char *s, apr_size_t n) ^~~~~~~~~~~~~~ msc_json.c:204:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] msr->json->prefix = apr_pstrmemdup(msr->mp, msr->json->prefix, ^ msc_json.c:206:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] msr->json->current_key = apr_psprintf(msr->mp, "%s", separator + 1); ^ msc_json.c: In function 'json_process_chunk': msc_json.c:278:55: warning: pointer targets in passing argument 2 of 'yajl_parse' differ in signedness [-Wpointer-sign] msr->json->status = yajl_parse(msr->json->handle, buf, size); ^~~ In file included from msc_json.h:24:0, from msc_json.c:15: /usr/include/yajl/yajl_parse.h:176:26: note: expected 'const unsigned char *' but argument is of type 'const char *' YAJL_API yajl_status yajl_parse(yajl_handle hand, ^~~~~~~~~~ msc_json.c:281:59: warning: pointer targets in passing argument 3 of 'yajl_get_error' differ in signedness [-Wpointer-sign] *error_msg = yajl_get_error(msr->json->handle, 0, buf, size); ^~~ In file included from msc_json.h:24:0, from msc_json.c:15: /usr/include/yajl/yajl_parse.h:201:30: note: expected 'const unsigned char *' but argument is of type 'const char *' YAJL_API unsigned char * yajl_get_error(yajl_handle hand, int verbose, ^~~~~~~~~~~~~~ msc_json.c:281:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] *error_msg = yajl_get_error(msr->json->handle, 0, buf, size); ^ msc_json.c: In function 'json_complete': msc_json.c:301:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] *error_msg = yajl_get_error(msr->json->handle, 0, NULL, 0); ^ msc_json.c:292:11: warning: unused variable 'json_data' [-Wunused-variable] char *json_data = (char *) NULL; ^~~~~~~~~ /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_logging.lo `test -f 'msc_logging.c' || echo './'`msc_logging.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_json.c -o mod_security2_la-msc_json.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_logging.c -fPIC -DPIC -o .libs/mod_security2_la-msc_logging.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c -o mod_security2_la-msc_lua.lo `test -f 'msc_lua.c' || echo './'`msc_lua.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_lua.c -fPIC -DPIC -o .libs/mod_security2_la-msc_lua.o msc_lua.c: In function 'lua_compile': msc_lua.c:114:5: error: too many arguments to function 'lua_dump' lua_dump(L, dump_writer, &dump, 1); ^~~~~~~~ In file included from msc_lua.h:23:0, from msc_lua.c:17: /usr/include/lua-5.1/lua.h:207:14: note: declared here LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); ^~~~~~~~ make[2]: *** [Makefile:858: mod_security2_la-msc_lua.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/httpd -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/usr/include/libxml2 -DWITH_LUA -I/usr/include/lua-5.1 -DWITH_PCRE_STUDY -DWITH_PCRE_JIT -DREQUEST_EARLY -DCACHE_LUA -DWITH_APU_CRYPTO -DWITH_REMOTE_RULES -DWITH_YAJL -DWITH_SSDEEP -I/usr/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include/apr-1 -c msc_logging.c -o mod_security2_la-msc_logging.o >/dev/null 2>&1 make[2]: Leaving directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/apache2' make[1]: *** [Makefile:580: all] Error 2 make[1]: Leaving directory '/home/zsun/rpmbuild/BUILD/nginx-1.11.8/modsecurity-2.9.0/apache2' make: *** [Makefile:489: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.3Ok0bI (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.3Ok0bI (%build)