ClaireTan0216 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

build memcached fail in windows 7 cygwin #408

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download 1.4.24 to /tmp/memcached-1.4.24
2. run ./configure
3. run make

What is the expected output? What do you see instead?

expected make success without any error

I see:

gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I/usr/local/include   -g -O2 
-pthread -pthread -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 
'memcached.c' || echo './'`memcached.c
memcached.c: In function 'sanitycheck':
memcached.c:5048:13: error: array subscript has type 'char' 
[-Werror=char-subscripts]
             if ((ever[2] == '1' || ever[2] == '2') && !isdigit(ever[3])) {
             ^
cc1: all warnings being treated as errors
Makefile:620: recipe for target 'memcached-memcached.o' failed
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory '/tmp/memcached-1.4.24'
Makefile:1039: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/memcached-1.4.24'
Makefile:446: recipe for target 'all' failed
make: *** [all] Error 2

What version of the product are you using? On what operating system?
memcached 1.4.24
cygwin 
windows 7 sp1 x64

Please provide any additional information below.

Original issue reported on code.google.com by wendal1985@gmail.com on 28 Apr 2015 at 9:22