On Fri, Apr 24, 2009 at 09:48:52AM +0200, J?r?me Loyet wrote:
> 2009/4/24 Igor Sysoev :
> > 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@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/