Subject: | Can not compile on perl v5.23.9 |
Date: | Wed, 25 May 2016 12:58:04 +0530 |
To: | bug-nginx [...] rt.cpan.org |
From: | Ram <ram [...] netcore.co.in> |
I am not able to compile on my ubuntu 14.04 with perl 5.23.9
This is the error I am getting
-o objs/src/http/modules/perl/ngx_http_perl_module.o \
src/http/modules/perl/ngx_http_perl_module.c
In file included from src/http/modules/perl/ngx_http_perl_module.h:18:0,
from src/http/modules/perl/ngx_http_perl_module.c:22:
src/http/modules/perl/ngx_http_perl_module.c: In function
‘ngx_perl_resolver_handler’:
src/http/modules/perl/ngx_http_perl_module.c:1767:23: error: comparison
of unsigned expression < 0 is always false [-Werror=type-limits]
EXTEND(SP, ctx->naddrs);
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/perl.h:3668:62: note: in
definition of macro ‘EXPECT’
# define EXPECT(expr,val) __builtin_expect(expr,val)
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/perl.h:3673:52: note: in
expansion of macro ‘cBOOL’
#define UNLIKELY(cond) EXPECT(cBOOL(cond),FALSE)
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:371:30: note: in expansion
of macro ‘UNLIKELY’
if (UNLIKELY(_EXTEND_NEEDS_GROW(p,n))) { \
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:371:39: note: in expansion
of macro ‘_EXTEND_NEEDS_GROW’
if (UNLIKELY(_EXTEND_NEEDS_GROW(p,n))) { \
^
src/http/modules/perl/ngx_http_perl_module.c:1767:9: note: in expansion
of macro ‘EXTEND’
EXTEND(SP, ctx->naddrs);
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:368:65: error: comparison
between signed and unsigned integer expressions [-Werror=sign-compare]
# define _EXTEND_NEEDS_GROW(p,n) ( (n) < 0 || PL_stack_max - p < (n))
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/perl.h:3668:62: note: in
definition of macro ‘EXPECT’
# define EXPECT(expr,val) __builtin_expect(expr,val)
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/perl.h:3673:52: note: in
expansion of macro ‘cBOOL’
#define UNLIKELY(cond) EXPECT(cBOOL(cond),FALSE)
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:371:30: note: in expansion
of macro ‘UNLIKELY’
if (UNLIKELY(_EXTEND_NEEDS_GROW(p,n))) { \
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:371:39: note: in expansion
of macro ‘_EXTEND_NEEDS_GROW’
if (UNLIKELY(_EXTEND_NEEDS_GROW(p,n))) { \
^
src/http/modules/perl/ngx_http_perl_module.c:1767:9: note: in expansion
of macro ‘EXTEND’
EXTEND(SP, ctx->naddrs);
^
In file included from /usr/lib/perl5/5.23.9/x86_64-linux/CORE/perl.h:5609:0,
from src/http/modules/perl/ngx_http_perl_module.h:18,
from src/http/modules/perl/ngx_http_perl_module.c:22:
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:336:68: error: signed and
unsigned type in conditional expression [-Werror=sign-compare]
(sizeof(n) > sizeof(SSize_t) && ((SSize_t)(n) != (n)) ? -1 : (n))
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/embed.h:573:53: note: in
definition of macro ‘stack_grow’
#define stack_grow(a,b,c) Perl_stack_grow(aTHX_ a,b,c)
^
/usr/lib/perl5/5.23.9/x86_64-linux/CORE/pp.h:372:49: note: in expansion
of macro ‘_EXTEND_SAFE_N’
sp = stack_grow(sp,p,_EXTEND_SAFE_N(n)); \
^
src/http/modules/perl/ngx_http_perl_module.c:1767:9: note: in expansion
of macro ‘EXTEND’
EXTEND(SP, ctx->naddrs);
^
cc1: all warnings being treated as errors
make[1]: *** [objs/src/http/modules/perl/ngx_http_perl_module.o] Error 1
make[1]: Leaving directory `/home/ram/Downloads/Nginx-Perl-1.8.1.10'
make: *** [build] Error 2