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
Best regards,
Kevin
Kevin W.
[email protected]
On Tue, Nov 30, 2010 at 07:22:02PM -0500, Kevin W. wrote:
src/os/unix/ngx_errno.c
make[1]: Leaving directory `/home/kworthington/nginx-0.9.1’
make: *** [build] Error 2
Try the attached patch.
On Wed, Dec 01, 2010 at 07:37:52AM -0500, Kevin W. wrote:
-o objs/src/os/unix/ngx_errno.o \
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
Any other ideas?
What does ./configure show near
checking for _sys_nerr …
checking for sys_nerr …
?
-o objs/src/os/unix/ngx_time.o \
src/os/unix/ngx_errno.c:36: error: (Each undeclared identifier is reported
only
nginx mailing list
[email protected]
nginx Info Page
–
Igor S.
http://sysoev.ru/en/
Hi Igor,
It says “not found” for both…
How can this be fixed to compile? Thanks for your help!
Best regards,
Kevin
2010/12/1 Igor S. [email protected]:
On Wed, Dec 01, 2010 at 09:21:05AM -0500, Kevin W. wrote:
Hi Igor,
It says “not found” for both…
How can this be fixed to compile? Thanks for your help!
Try the new attached patch.
Hi Igor,
I applied the patch and got a similar error:
-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
Any other ideas?
Thanks,
Kevin
2010/12/1 Igor S. [email protected]:
Hi Igor,
That worked perfectly! Thanks very much!
Kevin
Kevin W.
2010/12/1 Igor S. [email protected]: