=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Building for redis-2.6.13
cd src && /usr/pkg/bin/gmake all
git: not found
git: not found
gmake[1]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/src'
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-dump redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html
(cd ../deps && /usr/pkg/bin/gmake distclean)
gmake[2]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/deps'
(cd hiredis && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd linenoise && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd lua && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /usr/pkg/bin/gmake distclean) > /dev/null || true
(rm -f .make-*)
gmake[2]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/deps'
(rm -f .make-*)
echo STD=-std=c99 -pedantic >> .make-settings
echo WARN=-Wall >> .make-settings
echo OPT=-O2 >> .make-settings
echo MALLOC=libc >> .make-settings
echo CFLAGS=-O2 >> .make-settings
echo LDFLAGS=-Wl,-R/usr/pkg/lib >> .make-settings
echo REDIS_CFLAGS= >> .make-settings
echo REDIS_LDFLAGS= >> .make-settings
echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -Wall -O2 -g -rdynamic -ggdb -O2  -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src >> .make-settings
echo PREV_FINAL_LDFLAGS=-Wl,-R/usr/pkg/lib  -g -rdynamic -ggdb >> .make-settings
(cd ../deps && /usr/pkg/bin/gmake hiredis linenoise lua)
gmake[2]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/deps'
(cd hiredis && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd linenoise && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd lua && /usr/pkg/bin/gmake clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /usr/pkg/bin/gmake distclean) > /dev/null || true
(rm -f .make-*)
(echo "-O2" > .make-cflags)
(echo "-Wl,-R/usr/pkg/lib" > .make-ldflags)
MAKE hiredis
cd hiredis && /usr/pkg/bin/gmake static
MAKE linenoise
cd linenoise && /usr/pkg/bin/gmake
gmake[3]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/deps/linenoise'
cc  -Wall -Os -g -O2 -c linenoise.c
gmake[3]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/deps/hiredis'
cc -std=c99 -pedantic -c -O3 -fPIC -O2 -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  net.c
gmake[3]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/deps/linenoise'
MAKE lua
cd lua/src && /usr/pkg/bin/gmake all CFLAGS="-O2 -Wall -DLUA_ANSI -O2" MYLDFLAGS="-Wl,-R/usr/pkg/lib"
gmake[3]: Entering directory `/scratch/databases/redis/work/redis-2.6.13/deps/lua/src'
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ldo.o ldo.c
cc -std=c99 -pedantic -c -O3 -fPIC -O2 -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  hiredis.c
hiredis.c: In function 'chrtos':
hiredis.c:226: warning: array subscript has type 'char'
hiredis.c: In function 'redisvFormatCommand':
hiredis.c:767: warning: array subscript has type 'char'
hiredis.c:772: warning: array subscript has type 'char'
cc -std=c99 -pedantic -c -O3 -fPIC -O2 -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  sds.c
sds.c: In function 'sdstolower':
sds.c:253: warning: array subscript has type 'char'
sds.c: In function 'sdstoupper':
sds.c:259: warning: array subscript has type 'char'
sds.c: In function 'sdscatrepr':
sds.c:395: warning: array subscript has type 'char'
sds.c: In function 'sdssplitargs':
sds.c:427: warning: array subscript has type 'char'
sds.c:455: warning: array subscript has type 'char'
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ldump.o ldump.c
cc -std=c99 -pedantic -c -O3 -fPIC -O2 -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  async.c
async.c: In function '__redisGetSubscribeCallback':
async.c:328: warning: array subscript has type 'char'
async.c: In function '__redisAsyncCommand':
async.c:551: warning: array subscript has type 'char'
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
gmake[3]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/deps/hiredis'
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o strbuf.o strbuf.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o linit.o linit.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lua_cjson.o lua_cjson.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lua_struct.o lua_struct.c
lua_struct.c: In function 'getnum':
lua_struct.c:93: warning: array subscript has type 'char'
lua_struct.c:99: warning: array subscript has type 'char'
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lua_cmsgpack.o lua_cmsgpack.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o lua.o lua.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o luac.o luac.c
gcc -O2 -Wall -DLUA_ANSI -O2   -c -o print.o print.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o	# DLL needs all object files
ranlib liblua.a
gcc -o lua -Wl,-R/usr/pkg/lib lua.o liblua.a -lm 
gcc -o luac -Wl,-R/usr/pkg/lib luac.o print.o liblua.a -lm 
liblua.a(loslib.o): In function `os_tmpname':
loslib.c:(.text+0x36): warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
gmake[3]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/deps/lua/src'
gmake[2]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/deps'
    CC adlist.o
    CC ae.o
In file included from ae.c:56:
ae_kqueue.c: In function 'aeApiAddEvent':
ae_kqueue.c:74: warning: assignment makes integer from pointer without a cast
ae_kqueue.c:78: warning: assignment makes integer from pointer without a cast
ae_kqueue.c: In function 'aeApiDelEvent':
ae_kqueue.c:89: warning: assignment makes integer from pointer without a cast
ae_kqueue.c:93: warning: assignment makes integer from pointer without a cast
    CC anet.o
    CC dict.o
anet.c: In function 'anetResolve':
anet.c:171: warning: implicit declaration of function 'inet_aton'
    CC redis.o
redis.c: In function 'dictSdsKeyCaseCompare':
redis.c:401: warning: implicit declaration of function 'strcasecmp'
redis.c: In function 'processCommand':
redis.c:1756: warning: array subscript has type 'char'
redis.c:1759: warning: array subscript has type 'char'
    CC sds.o
sds.c: In function 'sdstolower':
sds.c:308: warning: array subscript has type 'char'
sds.c: In function 'sdstoupper':
sds.c:314: warning: array subscript has type 'char'
sds.c: In function 'sdscatrepr':
sds.c:430: warning: array subscript has type 'char'
sds.c: In function 'sdssplitargs':
sds.c:499: warning: array subscript has type 'char'
sds.c:535: warning: array subscript has type 'char'
sds.c:550: warning: array subscript has type 'char'
    CC zmalloc.o
    CC lzf_c.o
    CC lzf_d.o
    CC pqsort.o
    CC zipmap.o
    CC sha1.o
    CC ziplist.o
ziplist.c: In function 'zipRawEntryLength':
ziplist.c:310: warning: 'len' may be used uninitialized in this function
ziplist.c:310: warning: 'lensize' may be used uninitialized in this function
ziplist.c: In function 'ziplistFind':
ziplist.c:825: warning: 'len' may be used uninitialized in this function
ziplist.c:825: warning: 'lensize' may be used uninitialized in this function
    CC release.o
    CC networking.o
networking.c: In function 'clientCommand':
networking.c:1175: warning: implicit declaration of function 'strcasecmp'
    CC util.o
util.c: In function 'memtoll':
util.c:187: warning: array subscript has type 'char'
util.c:188: warning: implicit declaration of function 'strcasecmp'
    CC object.o
    CC db.o
db.c: In function 'shutdownCommand':
db.c:345: warning: implicit declaration of function 'strcasecmp'
object.c: In function 'getDoubleFromObject':
object.c:395: warning: array subscript has type 'char'
object.c: In function 'getLongDoubleFromObject':
object.c:433: warning: array subscript has type 'char'
object.c: In function 'getLongLongFromObject':
object.c:471: warning: array subscript has type 'char'
object.c: In function 'objectCommand':
object.c:559: warning: implicit declaration of function 'strcasecmp'
    CC replication.o
    CC rdb.o
replication.c: In function 'replconfCommand':
replication.c:209: warning: implicit declaration of function 'strcasecmp'
    CC t_string.o
    CC t_list.o
    CC t_set.o
t_list.c: In function 'linsertCommand':
t_list.c:396: warning: implicit declaration of function 'strcasecmp'
    CC t_zset.o
    CC t_hash.o
t_zset.c: In function 'zunionInterGenericCommand':
t_zset.c:1532: warning: implicit declaration of function 'strcasecmp'
    CC config.o
config.c: In function 'yesnotoi':
config.c:39: warning: implicit declaration of function 'strcasecmp'
    CC aof.o
    CC pubsub.o
    CC multi.o
    CC debug.o
    CC sort.o
debug.c: In function 'debugCommand':
debug.c:248: warning: implicit declaration of function 'strcasecmp'
sort.c: In function 'sortCommand':
sort.c:217: warning: implicit declaration of function 'strcasecmp'
    CC intset.o
    CC syncio.o
    CC migrate.o
    CC endianconv.o
    CC slowlog.o
    CC scripting.o
slowlog.c: In function 'slowlogCommand':
slowlog.c:131: warning: implicit declaration of function 'strcasecmp'
scripting.c: In function 'evalGenericCommand':
scripting.c:828: warning: array subscript has type 'char'
scripting.c: In function 'scriptCommand':
scripting.c:977: warning: implicit declaration of function 'strcasecmp'
    CC bio.o
    CC rio.o
    CC rand.o
    CC memtest.o
    CC crc64.o
    CC bitops.o
    CC sentinel.o
bitops.c: In function 'bitopCommand':
bitops.c:199: warning: implicit declaration of function 'strcasecmp'
sentinel.c: In function 'sentinelHandleConfiguration':
sentinel.c:1167: warning: implicit declaration of function 'strcasecmp'
sentinel.c: In function 'sentinelRefreshInstanceInfo':
sentinel.c:1403: warning: array subscript has type 'char'
    CC redis-cli.o
redis-cli.c: In function 'cliOutputHelp':
redis-cli.c:225: warning: implicit declaration of function 'strcasecmp'
redis-cli.c: In function 'completionCallback':
redis-cli.c:264: warning: implicit declaration of function 'strncasecmp'
redis-cli.c:266: warning: array subscript has type 'char'
redis-cli.c: In function 'pipeMode':
redis-cli.c:1156: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CC redis-benchmark.o
    CC redis-check-dump.o
    CC redis-check-aof.o
    LINK redis-server
redis-check-aof.c: In function 'process':
redis-check-aof.c:118: warning: implicit declaration of function 'strcasecmp'
redis-check-aof.c: In function 'main':
redis-check-aof.c:198: warning: implicit declaration of function 'strncasecmp'
    LINK redis-cli
zmalloc.o: In function `zmalloc_used_memory':
/scratch/databases/redis/work/redis-2.6.13/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4'
gmake[1]: *** [redis-cli] Error 1
gmake[1]: *** Waiting for unfinished jobs....
zmalloc.o: In function `zmalloc_used_memory':
/scratch/databases/redis/work/redis-2.6.13/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4'
gmake[1]: *** [redis-server] Error 1
gmake[1]: Leaving directory `/scratch/databases/redis/work/redis-2.6.13/src'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/databases/redis
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/redis