Tom Shaw - 2015-08-02

I get an error during compilation. Here is the log:

root@ninja:/ninja/src/modsecurity-2.9.0# ./configure --prefix=/ninja/modsecurity --enable-alp2 --enable-docs --enable-lua-cache --enable-htaccess-config --enable-request-early --enable-verbose-output --enable-performance-measurement --with-curl=/ninja/curl --with-apxs=/ninja/apache2/bin/apxs --with-pcre=/ninja/pcre --with-apr=/ninja/apr --with-apu=/ninja/apr-util/bin/apu-1-config --with-libxml=/ninja/libxml2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /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-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt 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... yes
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... no
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) mawk
checking for gcc... (cached) 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) gcc3
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) /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... /ninja/curl/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.43.0
checking if libcurl is linked with gnutls... no
configure: using curl v7.43.0
configure: looking for Apache module support via DSO through APXS
configure: found apxs at /ninja/apache2/bin/apxs
configure: checking httpd version
configure: httpd is recent enough
configure: apxs INCLUDEDIR: /ninja/apache2/include
configure: apxs INCLUDES: -I/ninja/apache2/include -I/ninja/apache2/include -I. -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/pcre/include
configure: apxs CFLAGS: -I/ninja/apache2/include
configure: apxs LDFLAGS:
configure: apxs LIBDIR: /ninja/apache2/lib
configure: apxs LIBS: -L/ninja/apache2/lib
configure: apxs LIBTOOL: /ninja/apr/build-1/libtool --silent
configure: apxs CC: gcc -std=gnu99
configure: apxs BINDIR: /ninja/apache2/bin
configure: apxs SBINDIR: /ninja/apache2/bin
configure: apxs PROGNAME: httpd
configure: apxs LIBEXECDIR: /ninja/apache2/modules
configure: apxs MODULES: /ninja/apache2/modules
configure: apxs HTTPD: /ninja/apache2/bin/httpd
checking for libpcre config script... /ninja/pcre/bin/pcre-config
configure: pcre VERSION: 8.37
configure: pcre CFLAGS: -I/ninja/pcre/include
configure: pcre LDADD: -L/ninja/pcre/lib -lpcre
configure: pcre PCRE_LD_PATH: /ninja/pcre/lib
configure: using pcre v8.37
checking for libapr config script... /ninja/apr/bin/apr-1-config
configure: apr VERSION: 1.5.2
configure: apr CFLAGS: -I/ninja/apr/include/apr-1
configure: apr CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE
configure: apr LDFLAGS: -lrt -lcrypt -lpthread -ldl
configure: apr LDADD: /ninja/apr/lib/libapr-1.la
configure: apr INCLUDEDIR: /ninja/apr/include/apr-1
configure: apr LINKLD: -L/ninja/apr/lib -lapr-1
configure: using apr v1.5.2
checking for libapu config script... /ninja/apr-util/bin/apu-1-config
configure: apu VERSION: 1.5.4
configure: apu CFLAGS: -I/ninja/apr-util/include/apr-1
configure: apu LDFLAGS: -lexpat
configure: apu LDADD: /ninja/apr-util/lib/libaprutil-1.la
configure: apu INCLUDEDIR: /ninja/apr-util/include/apr-1
configure: apu LINKLD: -L/ninja/apr-util/lib -laprutil-1
configure: using apu v1.5.4
checking for libxml2 config script... /ninja/libxml2/bin/xml2-config
configure: xml VERSION: 2.9.2
configure: xml CFLAGS: -I/ninja/libxml2/include/libxml2
configure: xml LDADD: -L/ninja/libxml2/lib -lxml2 -lm -ldl
checking if libxml2 is at least v2.6.29... yes, 2.9.2
configure: using libxml2 v2.9.2
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for liblua config script... no
checking for lua install... no
configure: optional lua library not found
checking for libyajl config script... no
checking for yajl install... no
configure: optional yajl library not found
checking for ssdeep path... no
configure: optional ssdeep library not found
configure: WARNING: APR util was not compiled with crypto support. SecRemoteRule will not support the parameter 'crypto'
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 alp2/Makefile
config.status: creating apache2/Makefile
config.status: creating build/apxs-wrapper
config.status: creating mlogc/mlogc-batch-load.pl
config.status: creating tests/regression/misc/40-secRemoteRules.t
config.status: creating tests/regression/misc/50-ipmatchfromfile-external.t
config.status: creating tests/regression/misc/60-pmfromfile-external.t
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 mlogc/Makefile
config.status: creating tests/Makefile
config.status: creating apache2/modsecurity_config_auto.h
config.status: apache2/modsecurity_config_auto.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
root@ninja:/ninja/src/modsecurity-2.9.0# maker
No command 'maker' found, did you mean:
Command 'makeg' from package 'xutils-dev' (main)
Command 'wmaker' from package 'wmaker-common' (universe)
Command 'make' from package 'make' (main)
maker: command not found
root@ninja:/ninja/src/modsecurity-2.9.0# make
Making all in tools
make[1]: Entering directory /ninja/src/modsecurity-2.9.0/tools' make[1]: Nothing to be done forall'.
make[1]: Leaving directory /ninja/src/modsecurity-2.9.0/tools' Making all in apache2 make[1]: Entering directory/ninja/src/modsecurity-2.9.0/apache2'
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /ninja/src/modsecurity-2.9.0/build/missing autoheader)
rm -f stamp-h1
touch modsecurity_config_auto.h.in
cd .. && /bin/bash ./config.status apache2/modsecurity_config_auto.h
config.status: creating apache2/modsecurity_config_auto.h
config.status: apache2/modsecurity_config_auto.h is unchanged
make all-am
make[2]: Entering directory /ninja/src/modsecurity-2.9.0/apache2' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-modsecurity.lo -MD -MP -MF .deps/mod_security2_la-modsecurity.Tpo -c -o mod_security2_la-modsecurity.lotest -f 'modsecurity.c' || echo './'modsecurity.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-modsecurity.lo -MD -MP -MF .deps/mod_security2_la-modsecurity.Tpo -c modsecurity.c -fPIC -DPIC -o .libs/mod_security2_la-modsecurity.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-modsecurity.lo -MD -MP -MF .deps/mod_security2_la-modsecurity.Tpo -c modsecurity.c -o mod_security2_la-modsecurity.o >/dev/null 2>&1 mv -f .deps/mod_security2_la-modsecurity.Tpo .deps/mod_security2_la-modsecurity.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_remote_rules.lo -MD -MP -MF .deps/mod_security2_la-msc_remote_rules.Tpo -c -o mod_security2_la-msc_remote_rules.lotest -f 'msc_remote_rules.c' || echo './'msc_remote_rules.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_remote_rules.lo -MD -MP -MF .deps/mod_security2_la-msc_remote_rules.Tpo -c msc_remote_rules.c -fPIC -DPIC -o .libs/mod_security2_la-msc_remote_rules.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_remote_rules.lo -MD -MP -MF .deps/mod_security2_la-msc_remote_rules.Tpo -c msc_remote_rules.c -o mod_security2_la-msc_remote_rules.o >/dev/null 2>&1 mv -f .deps/mod_security2_la-msc_remote_rules.Tpo .deps/mod_security2_la-msc_remote_rules.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_util.lo -MD -MP -MF .deps/mod_security2_la-msc_util.Tpo -c -o mod_security2_la-msc_util.lotest -f 'msc_util.c' || echo './'msc_util.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_util.lo -MD -MP -MF .deps/mod_security2_la-msc_util.Tpo -c msc_util.c -fPIC -DPIC -o .libs/mod_security2_la-msc_util.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/ninja/libxml2/include/libxml2 -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -MT mod_security2_la-msc_util.lo -MD -MP -MF .deps/mod_security2_la-msc_util.Tpo -c msc_util.c -o mod_security2_la-msc_util.o >/dev/null 2>&1 mv -f .deps/mod_security2_la-msc_util.Tpo .deps/mod_security2_la-msc_util.Plo /bin/bash ../libtool --tag=CC --mode=link gcc -I/ninja/apr/include/apr-1 -I/ninja/apr-util/include/apr-1 -I/ninja/apache2/include -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/libxml2/include/libxml2 -DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY -DHTACCESS_CONFIG -DCACHE_LUA -DPERFORMANCE_MEASUREMENT -DWITH_REMOTE_RULES -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -no-undefined -module -avoid-version -R /ninja/pcre/lib -lrt -lcrypt -lpthread -ldl -lexpat -I/ninja/libxml2/include/libxml2 -o mod_security2.la -rpath /ninja/modsecurity/lib mod_security2_la-acmp.lo mod_security2_la-apache2_config.lo mod_security2_la-apache2_io.lo mod_security2_la-apache2_util.lo libinjection/mod_security2_la-libinjection_html5.lo libinjection/mod_security2_la-libinjection_sqli.lo libinjection/mod_security2_la-libinjection_xss.lo mod_security2_la-mod_security2.lo mod_security2_la-modsecurity.lo mod_security2_la-msc_status_engine.lo mod_security2_la-msc_crypt.lo mod_security2_la-msc_geo.lo mod_security2_la-msc_gsb.lo mod_security2_la-msc_json.lo mod_security2_la-msc_logging.lo mod_security2_la-msc_lua.lo mod_security2_la-msc_multipart.lo mod_security2_la-msc_parsers.lo mod_security2_la-msc_pcre.lo mod_security2_la-msc_release.lo mod_security2_la-msc_remote_rules.lo mod_security2_la-msc_reqbody.lo mod_security2_la-msc_tree.lo mod_security2_la-msc_unicode.lo mod_security2_la-msc_util.lo mod_security2_la-msc_xml.lo mod_security2_la-persist_dbm.lo mod_security2_la-re_actions.lo mod_security2_la-re.lo mod_security2_la-re_operators.lo mod_security2_la-re_tfns.lo mod_security2_la-re_variables.lo /ninja/apr/lib/libapr-1.la /ninja/apr-util/lib/libaprutil-1.la -L/ninja/curl/lib -lcurl -I/ninja/libxml2/include/libxml2 -L/ninja/libxml2/lib -lxml2 -lm -ldl -L/ninja/pcre/lib -lpcre libtool: link: rm -fr .libs/mod_security2.a .libs/mod_security2.la .libs/mod_security2.lai .libs/mod_security2.so libtool: link: gcc -shared -fPIC -DPIC .libs/mod_security2_la-acmp.o .libs/mod_security2_la-apache2_config.o .libs/mod_security2_la-apache2_io.o .libs/mod_security2_la-apache2_util.o libinjection/.libs/mod_security2_la-libinjection_html5.o libinjection/.libs/mod_security2_la-libinjection_sqli.o libinjection/.libs/mod_security2_la-libinjection_xss.o .libs/mod_security2_la-mod_security2.o .libs/mod_security2_la-modsecurity.o .libs/mod_security2_la-msc_status_engine.o .libs/mod_security2_la-msc_crypt.o .libs/mod_security2_la-msc_geo.o .libs/mod_security2_la-msc_gsb.o .libs/mod_security2_la-msc_json.o .libs/mod_security2_la-msc_logging.o .libs/mod_security2_la-msc_lua.o .libs/mod_security2_la-msc_multipart.o .libs/mod_security2_la-msc_parsers.o .libs/mod_security2_la-msc_pcre.o .libs/mod_security2_la-msc_release.o .libs/mod_security2_la-msc_remote_rules.o .libs/mod_security2_la-msc_reqbody.o .libs/mod_security2_la-msc_tree.o .libs/mod_security2_la-msc_unicode.o .libs/mod_security2_la-msc_util.o .libs/mod_security2_la-msc_xml.o .libs/mod_security2_la-persist_dbm.o .libs/mod_security2_la-re_actions.o .libs/mod_security2_la-re.o .libs/mod_security2_la-re_operators.o .libs/mod_security2_la-re_tfns.o .libs/mod_security2_la-re_variables.o -Wl,-rpath -Wl,/ninja/apr/lib -Wl,-rpath -Wl,/ninja/apr-util/lib -Wl,-rpath -Wl,/ninja/curl/lib -Wl,-rpath -Wl,/ninja/libxml2/lib -Wl,-rpath -Wl,/ninja/pcre/lib -Wl,-rpath -Wl,/ninja/apr/lib -Wl,-rpath -Wl,/ninja/apr-util/lib -Wl,-rpath -Wl,/ninja/curl/lib -Wl,-rpath -Wl,/ninja/libxml2/lib -Wl,-rpath -Wl,/ninja/pcre/lib -lrt -lcrypt -lpthread /usr/lib/x86_64-linux-gnu/libexpat.so /ninja/apr/lib/libapr-1.so /ninja/apr-util/lib/libaprutil-1.so -L/ninja/curl/lib /ninja/curl/lib/libcurl.so -L/ninja/libxml2/lib /ninja/libxml2/lib/libxml2.so -lm -ldl -L/ninja/pcre/lib /ninja/pcre/lib/libpcre.so -O2 -pthread -Wl,-soname -Wl,mod_security2.so -o .libs/mod_security2.so libtool: link: ar cru .libs/mod_security2.a mod_security2_la-acmp.o mod_security2_la-apache2_config.o mod_security2_la-apache2_io.o mod_security2_la-apache2_util.o libinjection/mod_security2_la-libinjection_html5.o libinjection/mod_security2_la-libinjection_sqli.o libinjection/mod_security2_la-libinjection_xss.o mod_security2_la-mod_security2.o mod_security2_la-modsecurity.o mod_security2_la-msc_status_engine.o mod_security2_la-msc_crypt.o mod_security2_la-msc_geo.o mod_security2_la-msc_gsb.o mod_security2_la-msc_json.o mod_security2_la-msc_logging.o mod_security2_la-msc_lua.o mod_security2_la-msc_multipart.o mod_security2_la-msc_parsers.o mod_security2_la-msc_pcre.o mod_security2_la-msc_release.o mod_security2_la-msc_remote_rules.o mod_security2_la-msc_reqbody.o mod_security2_la-msc_tree.o mod_security2_la-msc_unicode.o mod_security2_la-msc_util.o mod_security2_la-msc_xml.o mod_security2_la-persist_dbm.o mod_security2_la-re_actions.o mod_security2_la-re.o mod_security2_la-re_operators.o mod_security2_la-re_tfns.o mod_security2_la-re_variables.o libtool: link: ranlib .libs/mod_security2.a libtool: link: ( cd ".libs" && rm -f "mod_security2.la" && ln -s "../mod_security2.la" "mod_security2.la" ) make[2]: Leaving directory/ninja/src/modsecurity-2.9.0/apache2'
make[1]: Leaving directory /ninja/src/modsecurity-2.9.0/apache2' Making all in mlogc make[1]: Entering directory/ninja/src/modsecurity-2.9.0/mlogc'
gcc -DHAVE_CONFIG_H -I. -I../apache2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I../apache2 -I/ninja/apr/include/apr-1 -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -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/bash ../libtool --tag=CC --mode=link gcc -I/ninja/apr/include/apr-1 -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -lrt -lcrypt -lpthread -ldl -o mlogc mlogc-mlogc.o /ninja/apr/lib/libapr-1.la -L/ninja/curl/lib -lcurl -L/ninja/pcre/lib -lpcre
libtool: link: gcc -I/ninja/apr/include/apr-1 -I/ninja/curl/include -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -I/ninja/pcre/include -g -O2 -I/ninja/apr-util/include/apr-1 -o mlogc mlogc-mlogc.o -lrt -lcrypt -lpthread -ldl /ninja/apr/lib/libapr-1.so -L/ninja/curl/lib /ninja/curl/lib/libcurl.so -L/ninja/pcre/lib /ninja/pcre/lib/libpcre.so -pthread -Wl,-rpath -Wl,/ninja/apr/lib -Wl,-rpath -Wl,/ninja/curl/lib -Wl,-rpath -Wl,/ninja/pcre/lib -Wl,-rpath -Wl,/ninja/apr/lib -Wl,-rpath -Wl,/ninja/curl/lib -Wl,-rpath -Wl,/ninja/pcre/lib
/ninja/curl/lib/libcurl.so: undefined reference to SSLv2_client_method' /ninja/curl/lib/libcurl.so: undefined reference toSSL_CTX_set_alpn_protos'
/ninja/curl/lib/libcurl.so: undefined reference to SSL_get0_alpn_selected' collect2: error: ld returned 1 exit status make[1]: *** [mlogc] Error 1 make[1]: Leaving directory/ninja/src/modsecurity-2.9.0/mlogc'
make: *** [all-recursive] Error 1

My libcurl config line was:
./configure --prefix=/ninja/curl --enable-http --with-zlib=/ninja/zib --with-ssl=/ninja/openssl --with-libssh2=/ninja/libssh2

Any ideas?

Cheers,
Tom