Subject: | Compilation failure with perl 5.23.4 and later |
With perl 5.23.4 and 5.23.5 compilation fails. I see the problem on freebsd 9.2 and debian linux:
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -I/usr/perl5.23.5sp/lib/5.23.5/amd64-freebsd/CORE -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules -I src/http/modules/perl -o objs/src/http/modules/perl/ngx_http_perl_module.o src/http/modules/perl/ngx_http_perl_module.c
cc1: warnings being treated as errors
src/http/modules/perl/ngx_http_perl_module.c: In function 'ngx_perl_resolver_handler':
src/http/modules/perl/ngx_http_perl_module.c:1766: warning: comparison of unsigned expression < 0 is always false
src/http/modules/perl/ngx_http_perl_module.c:1766: warning: comparison between signed and unsigned
src/http/modules/perl/ngx_http_perl_module.c:1766: warning: signed and unsigned type in conditional expression
*** [objs/src/http/modules/perl/ngx_http_perl_module.o] Error code 1