nginx 0.5.12 fails to build from source in MIPS[EL], HPPA and ARM -- was Re: nginx-0.5.12

Igor Sysoev is at rambler-co.ru
Wed Feb 14 16:30:40 MSK 2007


On Wed, Feb 14, 2007 at 01:07:25AM -0400, Jos?? Parrella wrote:
> ??ime Ramov escribi??:
> > And also thanks to the person who maintains Debian package at
> > http://deb.wapper.ru/nginx/ and everyone involved...
> 
> 0.5.12 has recently entered Debian Sid today, but it fails to build from
> source in MIPS, MIPSEL, HPPA and ARM since this warning is treated as an
> error:
> 
> src/event/ngx_event_accept.c: In function 'ngx_shmtx_trylock':
> src/core/ngx_shmtx.h:61: warning: control reaches end of non-void function
> make[2]: *** [objs/src/event/ngx_event_accept.o] Error 1
> 
> Build logs are available in [1] (browse all the way through the end of
> the page) -- I'm unable to point out what the problem might be, does
> anyone have any ideas regarding this?

The patch.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/core/ngx_shmtx.h
===================================================================
--- src/core/ngx_shmtx.h	(revision 425)
+++ src/core/ngx_shmtx.h	(working copy)
@@ -58,6 +58,8 @@
     }
 
     ngx_log_abort(err, ngx_trylock_fd_n " failed");
+
+    return 0;
 }
 
 


More information about the nginx mailing list