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

Fails to build on FreeBSD (items.c: comparision is always true) #420

Open
GoogleCodeExporter opened this issue Nov 5, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. portsnap fetch install
2. cd /usr/ports/databases/memcached
3. make

What is the expected output? What do you see instead?
cc -DHAVE_CONFIG_H -I.   -I/usr/local/include  -m64 -O2 -pipe -march=core2 
-fstack-protector -fno-strict-aliasing -std=c99 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o 
memcached_debug-items.o `test -f 'items.c' || echo './'`items.c
cc1: warnings being treated as errors
items.c: In function 'crawler_crawl_q':
items.c:1141: warning: comparison is always true due to limited range of data 
type
*** [memcached_debug-items.o] Error code 1

What version of the product are you using? On what operating system?
===>  Building for memcached-1.4.24
FreeBSD 9.3-RELEASE-p13

Please provide any additional information below.
Because there is -Werror, the build fails on the warning.

Original issue reported on code.google.com by marian.c...@gmail.com on 20 Jul 2015 at 7:04

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

What is the gcc version you are using? For me it fails too if I use gcc-4.4 but 
succeeds if I use gcc-4.8

Original comment by arash...@gmail.com on 4 Aug 2015 at 1:32

@GoogleCodeExporter
Copy link
Author

I use the default gcc version that is part of FreeBSD 9.3:
cc (GCC) 4.2.1 20070831 patched [FreeBSD]

Original comment by marian.c...@gmail.com on 11 Aug 2015 at 4:48

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