AllenTyf / memcached

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

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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