syslog patch and 0.7.x

Marlon de Boer marlon at
Fri Sep 4 01:32:35 MSD 2009

Joe Williams wrote:
> Marlon,
> I am trying this patch again 0.7.61 and getting a build error:
> make -f objs/Makefile
> make[1]: Entering directory `/root/nginx-0.7.61'
> gcc -c -O -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 objs \ -o
> objs/src/core/nginx.o \ src/core/nginx.c gcc -c -O -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 objs \ -o
> objs/src/core/ngx_log.o \ src/core/ngx_log.c cc1: warnings being
> treated as errors src/core/ngx_log.c: In function 'ngx_error_log':
> src/core/ngx_log.c:456: error: pointer targets in assignment differ in
> signedness make[1]: *** [objs/src/core/ngx_log.o] Error 1 make[1]:
> Leaving directory `/root/nginx-0.7.61' make: *** [build] Error 2

I created this patch on a gentoo system and haven't tested building it
without ebuild and emerge. It seems that building it from scratch uses
gcc -Wall being much more strict.

If you want to test the test quickly open up objs/Makefile and remove
the -Wall and -Werro in the CFLAGS.

I'll try to take a look tomorrow to make the patch working with more
strict gcc rules.


More information about the nginx mailing list