nginx-0.6.28

Igor Sysoev is at rambler-co.ru
Thu Mar 13 18:20:40 MSK 2008


On Thu, Mar 13, 2008 at 06:11:29PM +0300, Alexander Azarov wrote:

> Игорь, у меня не собирается:
> 
> gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Wno-unused-function -Wunused-variable -Wno-unused-value -Werror -g
> -I/usr/include/pcre -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE  -I src/core -I src/event -I
> src/event/modules -I src/os/unix -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_http_perl_call_handler':
> src/http/modules/perl/ngx_http_perl_module.c:671: warning: cast from pointer
> to integer of different size
> src/http/modules/perl/ngx_http_perl_module.c:671: warning: cast from pointer
> to integer of different size
> make[1]: *** [objs/src/http/modules/perl/ngx_http_perl_module.o] Error 1
> make[1]: Leaving directory `/usr/src/nginx-0.6.28'
> make: *** [build] Error 2

Патч.


-- 
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: src/http/modules/perl/ngx_http_perl_module.c
===================================================================
--- src/http/modules/perl/ngx_http_perl_module.c	(revision 1258)
+++ src/http/modules/perl/ngx_http_perl_module.c	(working copy)
@@ -668,7 +668,7 @@
     XPUSHs(sv);
 
     if (args) {
-        EXTEND(sp, (int) args[0]);
+        EXTEND(sp, (intptr_t) args[0]);
 
         for (i = 1; i <= (ngx_uint_t) args[0]; i++) {
             PUSHs(sv_2mortal(args[i]));


More information about the nginx-ru mailing list