Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 223 by [email protected]: Fails to build with GCC 4.5
http://code.google.com/p/memcached/issues/detail?id=223
What steps will reproduce the problem?
1. git clone ... && git checkout origin/engine-pu
2. config/autorun.sh && -/configure && make
What is the expected output?
[none]
What do you see instead?
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./include -I./daemon -I./include
-fvisibility=hidden -pthread -g -O2 -Wall -Werror -pedantic
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'daemon/memcached.c' ||
echo './'`daemon/memcached.c
cc1: warnings being treated as errors
daemon/memcached.c: In function ‘try_read_command’:
daemon/memcached.c:3652:13: error: array subscript is above array bounds
daemon/memcached.c:3652:13: error: array subscript is above array bounds
daemon/memcached.c:3656:18: error: array subscript is above array bounds
daemon/memcached.c:3656:18: error: array subscript is above array bounds
daemon/memcached.c:3656:18: error: array subscript is above array bounds
make[1]: *** [memcached-memcached.o] Error 1
make[1]: Leaving directory `/home/jon/git/memcached'
make: *** [all] Error 2
What version of the product are you using?
See 'Steps required...'
On what operating system?
OpenSUSE 11.3
jon@torsk:~/git/memcached> uname -a
Linux torsk 2.6.34.10-0.2-desktop #1 SMP PREEMPT 2011-07-20 18:48:56 +0200
x86_64 x86_64 x86_64 GNU/Linux
Please provide any additional information below.
jon@torsk:~/git/memcached> gcc --version
gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]
...
jon@torsk:~/git/memcached> aclocal --version
aclocal (GNU automake) 1.11.1
...
jon@torsk:~/git/memcached> make --version
GNU Make 3.81
We suspect that this is a GCC 4.5 issue, since source is known to build
with 4.0.1.