Forum: NGINX Cygwin/GCC nginx-0.7.47 error: array subscript is above array bounds

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
郭振立 (Guest)
on 2009-04-06 09:32
(Received via mailing list)
gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter
-Wno-unused-function -Wunused-variable -Wunused-value -Werror -D
FD_SETSIZE=9999999 -O5 -I src/core -I src/event -I src/event/modules -I
src/os/unix -I objs -I src/http -I src/http/modules \
                -o objs/src/http/ngx_http_file_cache.o \
                src/http/ngx_http_file_cache.c
cc1: warnings being treated as errors
src/http/ngx_http_file_cache.c: In function
'ngx_http_file_cache_set_slot':
src/http/ngx_http_file_cache.c:1368: error: array subscript is above
array bounds
src/http/ngx_http_file_cache.c:1369: error: array subscript is above
array bounds
make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1



Under Cygwin 1.7.0 & GCC 4.4, nginx version is 0.7.47.

nginx 0.7.46 has the same errors.
Igor S. (Guest)
on 2009-04-06 12:19
(Received via mailing list)
On Mon, Apr 06, 2009 at 01:25:20PM +0800, ?????? wrote:

>
>
> Under Cygwin 1.7.0 & GCC 4.4, nginx version is 0.7.47.
>
> nginx 0.7.46 has the same errors.

Thank you, GCC 4.4 is really cleaver thing.

What GCC version do you use ?

I have tried old enough built:
gcc version 4.4.0 20080627 (experimental) (GCC)
and it did not show this error.
郭振立 (Guest)
on 2009-04-06 14:05
(Received via mailing list)
> Igor S.
> http://sysoev.ru/en/
>


$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc44/configure --prefix=/usr/local/gfortran
--enable-langua
ges=c,fortran --disable-bootstrap --enable-threads=posix
--enable-sjlj-exception
s --enable-version-specific-runtime-libs --enable-nls
--disable-libmudflap --dis
able-shared --disable-win32-registry --with-system-zlib
--enable-checking=releas
e --enable-werror --without-included-gettext --without-x
--enable-libgomp
Thread model: posix
gcc version 4.4.0 20090203 (experimental) (GCC)



checking for OS
 + CYGWIN_NT-7.0 1.7.0s(0.210/5/3) i686
This topic is locked and can not be replied to.