Can't compile since 0.8.33 on CentOS

Manlio Perillo manlio_perillo at libero.it
Fri Apr 16 01:18:51 MSD 2010


Michael Shadle ha scritto:
> Now that I examine this, it's treating warnings as errors. Ideally
> this wouldn't be a warning either, but what could be going on to make
> this force fail?
> 
> 0.8.33 = no problem
> 0.8.34 = problem
> 0.8.35 = problem
> 
> OS info:
> 
> Linux foo 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:32:21 EST 2010
> x86_64 x86_64 x86_64 GNU/Linux
> CentOS 5.4 x86_64 all up to date
> 
> Where it breaks during "make"
> 
> gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Wunused-function -Wunused-variable -Wunused-value -Werror -g  -I
> src/core -I src/event -I src/event/modules -I src/os/unix -I
> /usr/include/libxml2 -I objs -I src/http -I src/http/modules \
>                 -o objs/src/http/modules/ngx_http_fastcgi_module.o \
>                 src/http/modules/ngx_http_fastcgi_module.c
> cc1: warnings being treated as errors
> src/http/modules/ngx_http_fastcgi_module.c: In function
> ‘ngx_http_fastcgi_process_header’:
> src/http/modules/ngx_http_fastcgi_module.c:1104: warning: unused variable ‘fh’
> make[1]: *** [objs/src/http/modules/ngx_http_fastcgi_module.o] Error 1
> make[1]: Leaving directory `/usr/src/build/nginx-0.8.35'
> 

It's an easy to fix buf.
You get the warning only when caching is disabled.



Regards  Manlio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastcgi-no-cache.patch
Type: text/x-diff
Size: 548 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20100415/8eddd456/attachment.patch>


More information about the nginx mailing list