akwei / memcached

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

A compile warning #412

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I package a memcached.rpm on rhel5;
2. The default option of gcc is warnings being treated as errors;
3. Then an error happened.

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

What version of the product are you using? On what operating system?
memcached-1.4.24
rhel5

Please provide any additional information below.
cc1: warnings being treated as errors
items.c: In function ‘crawler_crawl_q’:
items.c:1141: Warning: due to the limit data types, comparison results is true 
forever
make[2]: *** [memcached_debug-items.o] error  1
make[2]: Leaving directory `/tmp/memcached-1.4.24'
make[1]: *** [all-recursive] error  1
make[1]: Leaving directory `/tmp/memcached-1.4.24'
make: *** [all]error 2

Original issue reported on code.google.com by Sheung....@gmail.com on 27 May 2015 at 3:50

GoogleCodeExporter commented 9 years ago
Having the same issue in CentOS 5.11.

What steps will reproduce the problem?
1. Start with a blank CentOS 5.11 machine
2. Install the following packages in order to compile Memcached: autoconf, 
automake, gcc-c++, libevent, libevent-devel
3. wget http://www.memcached.org/files/memcached-1.4.24.tar.gz
4. tar xf memcached-1.4.24.tar.gz
5. ./configure --enable-64-bit (I need the 64-bit part, but that's not the 
issue here as I tried running just ./configure and got the same error)
6. make && make install

What is the expected output? What do you see instead?
I would expect it to compile successfully. Instead, I get the same output as 
noted in the initial report above:
cc1: warnings being treated as errors
items.c: In function ‘crawler_crawl_q’:
items.c:1141: Warning: due to the limit data types, comparison results is true 
forever
make[2]: *** [memcached_debug-items.o] error  1
make[2]: Leaving directory `/tmp/memcached-1.4.24'
make[1]: *** [all-recursive] error  1
make[1]: Leaving directory `/tmp/memcached-1.4.24'
make: *** [all]error 2

What version of the product are you using? On what operating system?
memcached 1.4.24
CentOS 5.11

Please provide any additional information below.
For what it's worth, 1.4.22 and 1.4.23 compile fine in CentOS 5.11, and 1.4.24 
compiles fine in CentOS 6.5.

Original comment by fabien.d...@gmail.com on 10 Jun 2015 at 5:14