Welcome! Log In Create A New Profile

Advanced

Re: error building 0.9.1 on Cygwin

December 01, 2010 01:36AM
On Tue, Nov 30, 2010 at 07:22:02PM -0500, Kevin Worthington wrote:

> Got the following error when building in Cygwin on Windows 7 Ultimate.
> Any help is appreciated...
>
> -o objs/src/os/unix/ngx_time.o \
> src/os/unix/ngx_time.c
> gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-functio
> n -Wunused-variable -Wunused-value -Werror -g -D FD_SETSIZE=2048 -I src/core -I
> src/event -I src/event/modules -I src/os/unix -I ~/openssl-0.9.8l/.openssl/inclu
> de -I objs \
> -o objs/src/os/unix/ngx_errno.o \
> src/os/unix/ngx_errno.c
> src/os/unix/ngx_errno.c: In function `ngx_strerror':
> src/os/unix/ngx_errno.c:36: error: `NGX_SYS_NERR' undeclared (first use in this
> function)
> src/os/unix/ngx_errno.c:36: error: (Each undeclared identifier is reported only
> once
> src/os/unix/ngx_errno.c:36: error: for each function it appears in.)
> src/os/unix/ngx_errno.c: In function `ngx_strerror_init':
> src/os/unix/ngx_errno.c:57: error: `NGX_SYS_NERR' undeclared (first use in this
> function)
> make[1]: *** [objs/src/os/unix/ngx_errno.o] Error 1
> make[1]: Leaving directory `/home/kworthington/nginx-0.9.1'
> make: *** [build] Error 2

Try the attached patch.


--
Igor Sysoev
http://sysoev.ru/en/
Index: auto/unix
===================================================================
--- auto/unix (revision 3130)
+++ auto/unix (working copy)
@@ -109,6 +109,16 @@
. auto/feature


+ngx_feature="_sys_nerr"
+ngx_feature_name="NGX_SYS_NERR"
+ngx_feature_run=value
+ngx_feature_incs='#include <stdio.h>'
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test='printf("%d", _sys_nerr);'
+. auto/feature
+
+
ngx_feature="sys_nerr"
ngx_feature_name="NGX_SYS_NERR"
ngx_feature_run=value
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

error building 0.9.1 on Cygwin

Kevin Worthington November 30, 2010 07:28PM

Re: error building 0.9.1 on Cygwin

Igor Sysoev December 01, 2010 01:36AM

Re: error building 0.9.1 on Cygwin

Kevin Worthington December 01, 2010 07:46AM

Re: error building 0.9.1 on Cygwin

Igor Sysoev December 01, 2010 07:46AM

Re: error building 0.9.1 on Cygwin

Kevin Worthington December 01, 2010 09:26AM

Re: error building 0.9.1 on Cygwin

Igor Sysoev December 01, 2010 09:36AM

Re: error building 0.9.1 on Cygwin

Kevin Worthington December 01, 2010 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready