Export to GitHub

memcached - issue #420

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


Posted on Jul 20, 2015 by Swift Dog

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.

Comment #1

Posted on Aug 4, 2015 by Helpful Monkey

Comment deleted

Comment #2

Posted on Aug 4, 2015 by Helpful Monkey

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

Comment #3

Posted on Aug 11, 2015 by Swift Dog

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

Status: New

Labels:
Type-Defect Priority-Medium