syslog patch and 0.7.x
Joe Williams
joe at joetify.com
Fri Sep 4 03:24:45 MSD 2009
I got it to compile with the patch by removing "-Wall" and "-Werr"
references from "auto/cc/gcc" but it doesn't seem to log anything. I
still see output to the normal nginx logs but nothing to my rsyslog
server. Is there any additional configuration or switches I need to get
this rolling? I did the configure with '--with-syslog'.
Thanks.
-Joe
On Thu, 03 Sep 2009 23:32:35 +0200
Marlon de Boer <marlon at hyves.nl> wrote:
> 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.
>
> Regards
> Marlon
>
--
Name: Joseph A. Williams
Email: joe at joetify.com
Blog: http://www.joeandmotorboat.com/
More information about the nginx
mailing list