upcoming 0.7.53 large patch

Igor Sysoev is at rambler-co.ru
Fri Apr 24 12:59:03 MSD 2009


On Fri, Apr 24, 2009 at 09:48:52AM +0200, J?r?me Loyet wrote:

> 2009/4/24 Igor Sysoev <is at rambler-co.ru>:
> > On Fri, Apr 24, 2009 at 08:35:58AM +0200, J?r?me Loyet wrote:
> >
> >> >> # (cd /tmp && strace -e open /usr/local/nginx/sbin/nginx -p /root/test/nginx/)
> >> >> [emerg]: could not open error log file: open() "logs/error.log" failed (2: )
> >> >>
> >> >> It seems there is a bug with the default error_log and/or the prefix.
> >> >
> >> > A new version, that fixes startup error log prefix:
> >> >
> >> > http://sysoev.ru/tmp/patch.0.7.52.1.prefix
> >> >
> >> > BTW, what OS do you use ? Recently I saw messages without text
> >> > description of error: "open() "logs/error.log" failed (2: )".
> >> > while it should be "(2: No such file or directory)".
> >>
> >> I'm using linux ubuntu 8.04.
> >
> > What does "./configure | grep strerror" show ?
> 
> root at wild:~/nginx-0.7.52# ./configure | grep strerror
> checking for strerror_r() ... found
> checking for gnu style strerror_r() ... found but is not working

Could you test the attached patch ? It seems it was broken in 0.7.45.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: auto/os/linux
===================================================================
--- auto/os/linux	(revision 2063)
+++ auto/os/linux	(working copy)
@@ -140,4 +140,4 @@
 ngx_include="sys/vfs.h";     . auto/include
 
 
-CC_AUX_FLAGS=$cc_aux_flags
+CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"


More information about the nginx mailing list