custombuild return make: *** [build] Error 2

itcms

Verified User
Joined
Jul 4, 2019
Messages
117
Location
Athens
lude \
-o objs/src/http/modules/ngx_http_upstream_random_module.o \
src/http/modules/ngx_http_upstream_random_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
src/http/modules/ngx_http_upstream_keepalive_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/src/http/modules/ngx_http_upstream_zone_module.o \
src/http/modules/ngx_http_upstream_zone_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/src/http/modules/ngx_http_stub_status_module.o \
src/http/modules/ngx_http_stub_status_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/addon/src/ngx_http_modsecurity_module.o \
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/addon/src/ngx_http_modsecurity_pre_access.o \
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_pre_access.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g '-D FD_SETSIZE=32768' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/modsecurity/include \
-o objs/addon/src/ngx_http_modsecurity_header_filter.o \
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_header_filter.c
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c: In function 'ngx_http_modsecurity_pcre_malloc_init':
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c:78:9: error: 'pcre_malloc' undeclared (first use in this function)
if (pcre_malloc != ngx_http_modsec_pcre_malloc) {
^
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c:78:9: note: each undeclared identifier is reported only once for each function it appears in
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c:82:25: error: 'pcre_free' undeclared (first use in this function)
old_pcre_free = pcre_free;
^
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c: In function 'ngx_http_modsecurity_pcre_malloc_done':
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c:102:9: error: 'pcre_malloc' undeclared (first use in this function)
pcre_malloc = old_pcre_malloc;
^
../modsecurity-nginx-v1.0.2/src/ngx_http_modsecurity_module.c:103:9: error: 'pcre_free' undeclared (first use in this function)
pcre_free = old_pcre_free;
^
make[1]: *** [objs/addon/src/ngx_http_modsecurity_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/directadmin/custombuild/nginx-1.21.5'
make: *** [build] Error 2


Any idea ?
came from ./build nginx_apache

Centos 7
[root@ns4 custombuild]# ./build version
2.0.0 (rev: 2829)
 
Last edited:
nginx has been reverted back to 1.21.4 due to incompatibility with latest version of modsecurity connector for nginx. It should work just fine now.
 
No the problem remains

cd /usr/local/directadmin/custombuild
./build update
./build set modsecurity yes
./build set modsecurity_ruleset "comodo"
./build modsecurity <---- receive the error here
./build modsecurity_rules
./build nginx_apache <---- receive the error here
./build rewrite_confs <---- receive the error here
 
I had old mirror unofficial

[root@ns4 custombuild]# grep download /usr/local/directadmin/custombuild/options.conf
downloadserver=files7.directadmin.com

SUPPORT : [iles7 is an unofficial mirror, try:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build update
./build nginx

AND WORKING FINE
Thanks a lot for your quick support and reply
 
Last edited:
Today custombuild suggested me again to upgrade nginx but I'm getting the same error again. Ohh hold on, it's a different error on Debian 11.

Code:
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_global_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_easy_perform@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_slist_free_all@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_easy_strerror@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_easy_setopt@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_easy_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_slist_append@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_easy_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/local/modsecurity/lib/libmodsecurity.so: undefined reference to `curl_global_cleanup@CURL_OPENSSL_4'
collect2: error: ld returned 1 exit status
make[1]: *** [objs/Makefile:261: objs/nginx] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/nginx-1.21.6'
make: *** [Makefile:10: build] Error 2
 
Last edited:
Back
Top