make[2]: Entering directory `/usr/local/directadmin/custombuild/modsecurity-v3.0.4/tools/rules-check'
g++ -DHAVE_CONFIG_H -I. -I../../src -std=c++11 -I../../headers -I/usr/local/include -DPCRE_HAVE_JIT -DWITH_MAXMIND -I/usr/local/include -I/usr/local/include/libxml2 -DWITH_LIBXML2 -g -O2 -MT modsec_rules_check-rules-check.o -MD -MP -MF .deps/modsec_rules_check-rules-check.Tpo -c -o modsec_rules_check-rules-check.o `test -f 'rules-check.cc' || echo './'`rules-check.cc
mv -f .deps/modsec_rules_check-rules-check.Tpo .deps/modsec_rules_check-rules-check.Po
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -L/usr/local/lib -L/usr/local/lib -lpcre -L/usr/local/lib/ -L/usr/lib64/ -L/usr/local/lib -lpcre -o modsec-rules-check modsec_rules_check-rules-check.o ../../src/.libs/libmodsecurity.la -L/usr/local/lib -lcurl -lGeoIP -lmaxminddb -lrt -L/usr/local/lib -lxml2 -L/usr/lib -lz -liconv -lm -ldl -llmdb -lluajit-5.1 -L/usr/local/lib -lpcre -lpcre -lfuzzy -lyajl
libtool: link: g++ -g -O2 -o .libs/modsec-rules-check modsec_rules_check-rules-check.o -L/usr/local/lib -L/usr/local/lib/ -L/usr/lib64/ ../../src/.libs/libmodsecurity.so -L/usr/lib /usr/local/lib/libcurl.so /usr/local/lib/libnghttp2.so -lssl -lcrypto -lGeoIP /usr/local/lib/libmaxminddb.so -lrt /usr/local/lib/libxml2.so -lz /usr/local/lib/libiconv.so -lm -ldl -llmdb -lluajit-5.1 /usr/local/lib/libpcre.so -lfuzzy -lyajl -pthread -Wl,-rpath -Wl,/usr/local/modsecurity/lib
../../src/.libs/libmodsecurity.so: undefined reference to `lua_pcallk'
../../src/.libs/libmodsecurity.so: undefined reference to `lua_getglobal'
../../src/.libs/libmodsecurity.so: undefined reference to `lua_setglobal'
../../src/.libs/libmodsecurity.so: undefined reference to `luaL_setfuncs'
../../src/.libs/libmodsecurity.so: undefined reference to `lua_rawlen'
collect2: error: ld returned 1 exit status
make[2]: *** [modsec-rules-check] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/modsecurity-v3.0.4/tools/rules-check'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/modsecurity-v3.0.4/tools'
make: *** [all-recursive] Error 1