/include -I /usr/local/src/nginx-1.20.1/libsodium/include \
-o objs/addon/src/ngx_http_waf_module_config.o \
/usr/local/src/ngx_waf/src/ngx_http_waf_module_config.c
In file included from /usr/local/src/ngx_waf/inc/ngx_http_waf_module_type.h:23:0,
from /usr/local/src/ngx_waf/inc/ngx_http_waf_module_config.h:22,
from /usr/local/src/ngx_waf/src/ngx_http_waf_module_config.c:1:
/usr/local/src/ngx_waf/src/ngx_http_waf_module_config.c: In function ‘ngx_http_waf_captcha_conf’:
/usr/local/src/ngx_waf/inc/ngx_http_waf_module_macro.h:359:33: error: the comparison will always evaluate as ‘false’ for the address of ‘sitekey’ will never be NULL [-Werror=address]
#define ngx_is_null_str(s) ((s) == NULL || (s)->data == NULL || (s)->len == 0 || ((s)->data[0] == '\0' && (s)->len == 1))
^
/usr/local/src/ngx_waf/src/ngx_http_waf_module_config.c:833:13: note: in expansion of macro ‘ngx_is_null_str’
if (ngx_is_null_str(&sitekey)) {
^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_waf_module_config.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx-1.20.1'
make: *** [build] Error 2
如何触发错误。 nginx编译报错
ngx_waf 的版本/分支。 current 10.1.2
nginx -V
命令的输出内容。 configure arguments: --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/src/ngx_waf --with-cc-opt=-std=gnu99出错时
shell
的输出内容。可以提供的信息