Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A compile warning #412

Open
GoogleCodeExporter opened this issue Nov 5, 2015 · 1 comment
Open

A compile warning #412

GoogleCodeExporter opened this issue Nov 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant