- cd src && make all
- make[1]: Entering directory `/www/server/redis/src'
- CC Makefile.dep
- make[1]: Leaving directory `/www/server/redis/src'
- make[1]: Entering directory `/www/server/redis/src'
- rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep dict-benchmark
- (cd ../deps && make distclean)
- make[2]: Entering directory `/www/server/redis/deps'
- (cd hiredis && make clean) > /dev/null || true
- (cd linenoise && make clean) > /dev/null || true
- (cd lua && make clean) > /dev/null || true
- (cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
- (rm -f .make-*)
- make[2]: Leaving directory `/www/server/redis/deps'
- (rm -f .make-*)
- echo STD=-std=c99 -pedantic -DREDIS_STATIC='' >> .make-settings
- echo WARN=-Wall -W -Wno-missing-field-initializers >> .make-settings
- echo OPT=-O2 >> .make-settings
- echo MALLOC=jemalloc >> .make-settings
- echo CFLAGS= >> .make-settings
- echo LDFLAGS= >> .make-settings
- echo REDIS_CFLAGS= >> .make-settings
- echo REDIS_LDFLAGS= >> .make-settings
- echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -g -ggdb -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include >> .make-settings
- echo PREV_FINAL_LDFLAGS= -g -ggdb -rdynamic >> .make-settings
- (cd ../deps && make hiredis linenoise lua jemalloc)
- make[2]: Entering directory `/www/server/redis/deps'
- (cd hiredis && make clean) > /dev/null || true
- (cd linenoise && make clean) > /dev/null || true
- (cd lua && make clean) > /dev/null || true
- (cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
- (rm -f .make-*)
- (echo "" > .make-cflags)
- (echo "" > .make-ldflags)
- MAKE hiredis
- MAKE linenoise
- cd hiredis && make static
- MAKE lua
- cd linenoise && make
- cd lua/src && make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' " MYLDFLAGS="" AR="ar rcu"
- make[3]: Entering directory `/www/server/redis/deps/linenoise'
- cc -Wall -Os -g -c linenoise.c
- make[3]: Entering directory `/www/server/redis/deps/lua/src'
- cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lapi.o lapi.c
- make[3]: Entering directory `/www/server/redis/deps/hiredis'
- cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
- In file included from /usr/include/sys/socket.h:39:0,
- from net.c:37:
- /usr/include/bits/socket.h:346:24: fatal error: asm/socket.h: No such file or directory
- #include <asm/socket.h>
- ^
- compilation terminated.
- In file included from /usr/include/errno.h:35:0,
- from linenoise.c:110:
- /usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory
- # include <linux/errno.h>
- ^
- compilation terminated.
- In file included from /usr/include/bits/posix1_lim.h:160:0,
- from /usr/include/limits.h:144,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
- from luaconf.h:11,
- from lua.h:16,
- from lapi.c:16:
- /usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
- #include <linux/limits.h>
- ^
- compilation terminated.
- make[3]: *** [net.o] Error 1
- make[3]: Leaving directory `/www/server/redis/deps/hiredis'
- make[2]: *** [hiredis] Error 2
- make[2]: *** Waiting for unfinished jobs....
- cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lcode.o lcode.c
- make[3]: *** [linenoise.o] Error 1
- make[3]: Leaving directory `/www/server/redis/deps/linenoise'
- In file included from /usr/include/bits/posix1_lim.h:160:0,
- from /usr/include/limits.h:144,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
- from luaconf.h:11,
- from lua.h:16,
- from lcode.c:13:
- /usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
- #include <linux/limits.h>
- ^
- make[2]: compilation terminated.
- *** [linenoise] Error 2
- cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldebug.o ldebug.c
- In file included from /usr/include/bits/posix1_lim.h:160:0,
- from /usr/include/limits.h:144,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
- from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
- from luaconf.h:11,
- from lua.h:16,
- from ldebug.c:16:
- /usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
- #include <linux/limits.h>
- ^
- compilation terminated.
- make[3]: *** [lcode.o] Error 1
- make[3]: *** Waiting for unfinished jobs....
- make[3]: *** [lapi.o] Error 1
- make[3]: *** [ldebug.o] Error 1
- make[3]: Leaving directory `/www/server/redis/deps/lua/src'
- make[2]: *** [lua] Error 2
- make[2]: Leaving directory `/www/server/redis/deps'
- make[1]: [persist-settings] Error 2 (ignored)
- CC adlist.o
- CC quicklist.o
- CC ae.o
- In file included from /usr/include/errno.h:35:0,
- from ae.c:41:
- /usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory
- # include <linux/errno.h>
- ^
- compilation terminated.
- make[1]: *** [ae.o] Error 1
- make[1]: *** Waiting for unfinished jobs....
- make[1]: Leaving directory `/www/server/redis/src'
- make: *** [all] Error 2
复制代码 |