安装 NGiNX eval 模块时出现构建错误

安装 NGiNX eval 模块时出现构建错误

这是我无法安装的模块:

http://www.grid.net.ru/nginx/eval.en.html

以下是我收到的错误:

/root/src/nginx_eval_module-1.0.1/ngx_http_eval_module.c: In function ‘ngx_http_eval_block’:
/root/src/nginx_eval_module-1.0.1/ngx_http_eval_module.c:531:39: error: variable ‘pclcf’ set but not used [-Werror=unused-but-set-variable]
/root/src/nginx_eval_module-1.0.1/ngx_http_eval_module.c:522:32: error: variable ‘ecf’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/nginx_eval_module-1.0.1/ngx_http_eval_module.o] Error 1
make[1]: Leaving directory `/root/src/nginx-1.2.7'
make: *** [build] Error 2

。/配置

./configure --user=nginx --group=nginx --prefix=/usr/local/nginx-1.2.7 --with-http_ssl_module --with-http_addition_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-pcre-jit --add-module=/root/src/nginx-upload-module-2.2m --add-module=/root/src/nginx-upload-progress-module --with-http_stub_status_module --add-module=/root/src/ngx_http_php_session --add-module=/root/src/ngx_http_redis-0.3.6 --add-module=/root/src/echo-nginx-module --add-module=/root/src/nginx_eval_module-1.0.1

我的NGiNX版本是1.2.7。

答案1

这些警告看起来并不严重,因此可以安全地从编译器选项中删除“-Werror”并重试。

相关内容