CORE_LIBS="$CORE_LIBS \
-lapr-1 \
-L/usr/lib64 -laprutil-1 \
-I/usr/local/apache/include \
\
-L/opt/xml2/lib -lxml2 -lz -lm -ldl \
-llua \ <<<<<<<<<<<<<<<<<<<<------------------------- I've deleted this
-lpcre \
-L/usr/local/apache/lib -lm \
\
"
================================
After:
==================================
CORE_LIBS="$CORE_LIBS \
-lapr-1 \
-L/usr/lib64 -laprutil-1 \
-I/usr/local/apache/include \
\
-L/opt/xml2/lib -lxml2 -lz -lm -ldl \
-lpcre \
-L/usr/local/apache/lib -lm \
\
"
===================================
And i tried to re-compile openresty with mod_security, but I got a new error message like this:
=================
/usr/local/src/modsecurity-2.8.0/nginx/modsecurity/../../standalone/.libs/standalone.a(standalone_la-msc_crypt.o): In function `inject_hashed_response_body':
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1079: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1110: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1122: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1132: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1081: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1093: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1103: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1106: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/modsecurity-2.8.0/standalone/../apache2/msc_crypt.c:1135: undefined reference to `xmlOutputBufferGetSize'