Opened 4 years ago

Closed 4 years ago

#982 closed defect (invalid)

nginx with perl_module is not going

Reported by: SASHA-INVALID@… Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.10.x
Keywords: Cc:
uname -a: Linux s1.ofru.ru 2.6.18-410.el5.centos.plus #1 SMP Wed May 11 21:46:32 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
nginx -V:
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-55)
configure arguments: --without-http_fastcgi_module --without-http_geo_module --without-http_map_module --without-http_scgi_module --without-http_split_clients_module --without-http_ssi_module --without-http_userid_module --without-http_uwsgi_module --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_realip_module --with-http_addition_module --with-http_gzip_static_module --with-http_degradation_module --with-http_stub_status_module --without-http_autoindex_module --with-http_gunzip_module --with-file-aio --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E

Description

cc1: warnings being treated as errors
src/http/modules/perl/ngx_http_perl_module.c: In function ‘ngx_http_perl_preconfiguration’:
src/http/modules/perl/ngx_http_perl_module.c:847: предупреждение: unused parameter ‘cf’
src/http/modules/perl/ngx_http_perl_module.c: In function ‘ngx_http_perl_merge_loc_conf’:
src/http/modules/perl/ngx_http_perl_module.c:894: предупреждение: unused parameter ‘cf’
src/http/modules/perl/ngx_http_perl_module.c: In function ‘ngx_http_perl’:
src/http/modules/perl/ngx_http_perl_module.c:909: предупреждение: unused parameter ‘cmd’
src/http/modules/perl/ngx_http_perl_module.c: In function ‘ngx_http_perl_set’:
src/http/modules/perl/ngx_http_perl_module.c:962: предупреждение: unused parameter ‘cmd’
src/http/modules/perl/ngx_http_perl_module.c:962: предупреждение: unused parameter ‘conf’
src/http/modules/perl/ngx_http_perl_module.c: In function ‘ngx_http_perl_exit’:
src/http/modules/perl/ngx_http_perl_module.c:1053: предупреждение: unused parameter ‘cycle’

Change History (1)

comment:1 by Maxim Dounin, 4 years ago

Resolution: invalid
Status: newclosed

Using custom compilation options should be done with care, it can easily break build. In this particular case it looks like -Wall is added to the options, and this activates -Wunused-parameter warning nginx normally disables. As nginx also uses -Werror, this breaks the build.

Note: See TracTickets for help on using tickets.