centos7 Stable Redis6.0.0GA make[1]: *** [server.o] Error 1
make log:
[make.log](https://github.com/antirez/redis/files/4565394/make.log)
server.c: In function 'main': server.c:4960:11: error: 'struct redisServer' has no member named 'sentinel_mode' server.sentinel_mode = checkForSentinelMode(argc,argv); ^ server.c:4977:15: error: 'struct redisServer' has no member named 'sentinel_mode' if (server.sentinel_mode) { ^ server.c:5044:19: error: 'struct redisServer' has no member named 'sentinel_mode' if (server.sentinel_mode && configfile && configfile == '-') { ^ server.c:5066:168: error: 'struct redisServer' has no member named 'sentinel_mode' serverLog(LL_WARNING, "Warning: no config file specified, using the default config. In order to specify a config file use %s /path/to/%s.conf", argv[0], server.sentinel_mode ? "sentinel" : "redis"); ^ server.c:5071:11: error: 'struct redisServer' has no member named 'supervised' server.supervised = redisIsSupervised(server.supervised_mode); ^ server.c:5071:49: error: 'struct redisServer' has no member named 'supervised_mode' server.supervised = redisIsSupervised(server.supervised_mode); ^ server.c:5072:28: error: 'struct redisServer' has no member named 'daemonize' int background = server.daemonize && !server.supervised; ^ server.c:5072:49: error: 'struct redisServer' has no member named 'supervised' int background = server.daemonize && !server.supervised; ^ server.c:5076:29: error: 'struct redisServer' has no member named 'pidfile' if (background || server.pidfile) createPidFile(); ^ server.c:5081:16: error: 'struct redisServer' has no member named 'sentinel_mode' if (!server.sentinel_mode) { ^ server.c:5091:19: error: 'struct redisServer' has no member named 'cluster_enabled' if (server.cluster_enabled) { ^ server.c:5099:19: error: 'struct redisServer' has no member named 'ipfd_count' if (server.ipfd_count > 0 || server.tlsfd_count > 0) ^ server.c:5099:44: error: 'struct redisServer' has no member named 'tlsfd_count' if (server.ipfd_count > 0 || server.tlsfd_count > 0) ^ server.c:5101:19: error: 'struct redisServer' has no member named 'sofd' if (server.sofd > 0) ^ server.c:5102:94: error: 'struct redisServer' has no member named 'unixsocket' serverLog(LL_NOTICE,"The server is now ready to accept connections at %s", server.unixsocket); ^ server.c:5103:19: error: 'struct redisServer' has no member named 'supervised_mode' if (server.supervised_mode == SUPERVISED_SYSTEMD) { ^ server.c:5104:24: error: 'struct redisServer' has no member named 'masterhost' if (!server.masterhost) { ^ server.c:5117:15: error: 'struct redisServer' has no member named 'maxmemory' if (server.maxmemory > 0 && server.maxmemory < 10241024) { ^ server.c:5117:39: error: 'struct redisServer' has no member named 'maxmemory' if (server.maxmemory > 0 && server.maxmemory < 1024*1024) { ^ server.c:5118:176: error: 'struct redisServer' has no member named 'maxmemory' serverLog(LL_WARNING,"WARNING: You specified a maxmemory value that is less than 1MB (current value is %llu bytes). Are you sure this is what you really want?", server.maxmemory); ^ server.c: In function 'hasActiveChildProcess': server.c:1476:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ server.c: In function 'allPersistenceDisabled': server.c:1482:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ server.c: In function 'writeCommandsDeniedByDiskError': server.c:3747:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ server.c: In function 'iAmMaster': server.c:4914:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/data/soft/redis-6.0.0/src' make: *** [all] Error 2
hlep me~~!
Comment From: antirez
Hello, you need a compiler with support for C11. This compiler you are using is likely very old and indeed Centos 7 is from 2014. Cheers.
On Fri, May 1, 2020 at 7:01 PM eleven notifications@github.com wrote:
centos7 Stable Redis6.0.0GA make[1]: *** [server.o] Error 1 make log: cd src && make all make[1]: Entering directory /data/soft/redis-6.0.0/src' �[34mCC�[0m �[33mMakefile.dep�[0m make[1]: Leaving directory /data/soft/redis-6.0.0/src' make[1]: Entering directory /data/soft/redis-6.0.0/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 rm -f adlist.d quicklist.d ae.d anet.d dict.d server.d sds.d zmalloc.d lzf_c.d lzf_d.d pqsort.d zipmap.d sha1.d ziplist.d release.d networking.d util.d object.d db.d replication.d rdb.d t_string.d t_list.d t_set.d t_zset.d t_hash.d config.d aof.d pubsub.d multi.d debug.d sort.d intset.d syncio.d cluster.d crc16.d endianconv.d slowlog.d scripting.d bio.d rio.d rand.d memtest.d crcspeed.d crc64.d bitops.d sentinel.d notify.d setproctitle.d blocked.d hyperloglog.d latency.d sparkline.d redis-check-rdb.d redis-check-aof.d geo.d lazyfree.d module.d evict.d expire.d geohash.d geohash_helper.d childinfo.d defrag.d siphash.d rax.d t_stream.d listpack.d localtime.d lolwut.d lolwut5.d lolwut6.d acl.d gopher.d tracking.d connection.d tls.d sha256.d timeout.d anet.d adlist.d dict.d redis-cli.d zmalloc.d release.d ae.d crcspeed.d crc64.d siphash.d crc16.d ae.d anet.d redis-benchmark.d adlist.d dict.d zmalloc.d siphash.d (cd ../deps && make distclean) make[2]: Entering directory /data/soft/redis-6.0.0/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 /data/soft/redis-6.0.0/deps' (rm -f .make-) echo STD=-std=c11 -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=c11 -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 /data/soft/redis-6.0.0/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) �[32;1mMAKE�[0m �[37;1mhiredis�[0m cd hiredis && make static make[3]: Entering directory /data/soft/redis-6.0.0/deps/hiredis' cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb net.c cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb hiredis.c cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sds.c cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb async.c cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb read.c cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sockcompat.c ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o sockcompat.o make[3]: Leaving directory /data/soft/redis-6.0.0/deps/hiredis' �[32;1mMAKE�[0m �[37;1mlinenoise�[0m cd linenoise && make make[3]: Entering directory /data/soft/redis-6.0.0/deps/linenoise' cc -Wall -Os -g -c linenoise.c make[3]: Leaving directory /data/soft/redis-6.0.0/deps/linenoise' �[32;1mMAKE�[0m �[37;1mlua�[0m cd lua/src && make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' " MYLDFLAGS="" AR="ar rcu" make[3]: Entering directory /data/soft/redis-6.0.0/deps/lua/src' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lapi.o lapi.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lcode.o lcode.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldebug.o ldebug.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldo.o ldo.c ldo.c: In function 'f_parser': ldo.c:496:7: warning: unused variable 'c' [-Wunused-variable] int c = luaZ_lookahead(p->z); ^ cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldump.o ldump.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lfunc.o lfunc.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lgc.o lgc.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o llex.o llex.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lmem.o lmem.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lobject.o lobject.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lopcodes.o lopcodes.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lparser.o lparser.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstate.o lstate.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstring.o lstring.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltable.o ltable.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltm.o ltm.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lundump.o lundump.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lvm.o lvm.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lzio.o lzio.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o strbuf.o strbuf.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o fpconv.o fpconv.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lauxlib.o lauxlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lbaselib.o lbaselib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldblib.o ldblib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o liolib.o liolib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lmathlib.o lmathlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o loslib.o loslib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltablib.o ltablib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstrlib.o lstrlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o loadlib.o loadlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o linit.o linit.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_cjson.o lua_cjson.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_struct.o lua_struct.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_cmsgpack.o lua_cmsgpack.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_bit.o lua_bit.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 fpconv.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 lua_bit.o # DLL needs all object files ranlib liblua.a cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua.o lua.c cc -o lua lua.o liblua.a -lm cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o luac.o luac.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o print.o print.c cc -o luac luac.o print.o liblua.a -lm make[3]: Leaving directory /data/soft/redis-6.0.0/deps/lua/src' �[32;1mMAKE�[0m �[37;1mjemalloc�[0m cd jemalloc && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" configure: WARNING: unrecognized options: --enable-cc-silence checking for xsltproc... /usr/bin/xsltproc checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether compiler is cray... no checking whether compiler supports -std=gnu11... yes checking whether compiler supports -Wall... yes checking whether compiler supports -Wshorten-64-to-32... no checking whether compiler supports -Wsign-compare... yes checking whether compiler supports -Wundef... yes checking whether compiler supports -Wno-format-zero-length... yes checking whether compiler supports -pipe... yes checking whether compiler supports -g3... yes checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ supports C++14 features by default... no checking whether g++ supports C++14 features with -std=c++14... no checking whether g++ supports C++14 features with -std=c++0x... no checking whether g++ supports C++14 features with +std=c++14... no checking whether g++ supports C++14 features with -h std=c++14... no configure: No compiler with C++14 support was found checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking size of void
... 8 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of intmax_t... 8 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking whether pause instruction is compilable... yes checking number of significant virtual address bits... 48 checking for ar... ar checking for nm... nm checking for gawk... gawk checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking whether malloc_usable_size definition can use const argument... no checking for library containing log... -lm checking whether attribute syntax is compilable... yes checking whether compiler supports -fvisibility=hidden... yes checking whether compiler supports -fvisibility=hidden... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether tls_model attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether alloc_size attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(gnu_printf, ...) attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(printf, ...) attribute is compilable... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for ld... /usr/bin/ld checking for autoconf... /usr/bin/autoconf checking for memalign... yes checking for valloc... yes checking whether compiler supports -O3... yes checking whether compiler supports -O3... yes checking whether compiler supports -funroll-loops... yes checking configured backtracing method... N/A checking for sbrk... yes checking whether utrace(2) is compilable... no checking whether a program using __builtin_unreachable is compilable... yes checking whether a program using __builtin_ffsl is compilable... yes checking LG_PAGE... 12 checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlsym... no checking for dlsym in -ldl... yes checking whether pthread_atfork(3) is compilable... yes checking whether pthread_setname_np(3) is compilable... yes checking for library containing clock_gettime... none required checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... yes checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... yes checking whether mach_absolute_time() is compilable... no checking whether compiler supports -Werror... yes checking whether syscall(2) is compilable... yes checking for secure_getenv... yes checking for sched_getcpu... yes checking for sched_setaffinity... yes checking for issetugid... no checking for _malloc_thread_cleanup... no checking for _pthread_mutex_init_calloc_cb... no checking for TLS... yes checking whether C11 atomics is compilable... no checking whether GCC __atomic atomics is compilable... yes checking whether GCC __sync atomics is compilable... yes checking whether Darwin OSAtomic() is compilable... no checking whether madvise(2) is compilable... yes checking whether madvise(..., MADV_FREE) is compilable... no checking whether madvise(..., MADV_DONTNEED) is compilable... yes checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... yes checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... yes checking whether to force 32-bit sync_and_fetch()... no checking whether to force 64-bit sync_and_fetch()... no checking for _ builtin_clz... yes checking whether Darwin os_unfair_lock () is compilable... no checking whether Darwin OSSpin() is compilable... no checking whether glibc malloc hook is compilable... yes checking whether glibc memalign hook is compilable... yes checking whether pthreads adaptive mutexes is compilable... yes checking whether compiler supports -D_GNU_SOURCE... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether strerror_r returns char with gnu source is compilable... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes configure: creating ./config.status config.status: creating Makefile config.status: creating jemalloc.pc config.status: creating doc/html.xsl config.status: creating doc/manpages.xsl config.status: creating doc/jemalloc.xml config.status: creating include/jemalloc/jemalloc_macros.h config.status: creating include/jemalloc/jemalloc_protos.h config.status: creating include/jemalloc/jemalloc_typedefs.h config.status: creating include/jemalloc/internal/jemalloc_preamble.h config.status: creating test/test.sh config.status: creating test/include/test/jemalloc_test.h config.status: creating config.stamp config.status: creating bin/jemalloc-config config.status: creating bin/jemalloc.sh config.status: creating bin/jeprof config.status: creating include/jemalloc/jemalloc_defs.h config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h config.status: creating test/include/test/jemalloc_test_defs.h config.status: executing include/jemalloc/internal/public_symbols.txt commands config.status: executing include/jemalloc/internal/private_symbols.awk commands config.status: executing include/jemalloc/internal/private_symbols_jet.awk commands config.status: executing include/jemalloc/internal/public_namespace.h commands config.status: executing include/jemalloc/internal/public_unnamespace.h commands config.status: executing include/jemalloc/internal/size_classes.h commands config.status: executing include/jemalloc/jemalloc_protos_jet.h commands config.status: executing include/jemalloc/jemalloc_rename.h commands config.status: executing include/jemalloc/jemalloc_mangle.h commands config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands config.status: executing include/jemalloc/jemalloc.h commands configure: WARNING: unrecognized options: --enable-cc-silence
jemalloc version : 5.1.0-0-g0 library revision : 2
CONFIG : --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence 'CFLAGS=-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops ' LDFLAGS= CC : gcc CONFIGURE_CFLAGS : -std=gnu11 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops SPECIFIED_CFLAGS : -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops EXTRA_CFLAGS : CPPFLAGS : -D_GNU_SOURCE -D_REENTRANT CXX : g++ CONFIGURE_CXXFLAGS : -fvisibility=hidden -O3 SPECIFIED_CXXFLAGS : EXTRA_CXXFLAGS : LDFLAGS : EXTRA_LDFLAGS : DSO_LDFLAGS : -shared -Wl,-soname,$(@f https://github.com/f) LIBS : -lm -lpthread -ldl RPATH_EXTRA :
XSLTPROC : /usr/bin/xsltproc XSLROOT :
PREFIX : /usr/local BINDIR : /usr/local/bin DATADIR : /usr/local/share INCLUDEDIR : /usr/local/include LIBDIR : /usr/local/lib MANDIR : /usr/local/share/man
- srcroot :
- abs_srcroot : /data/soft/redis-6.0.0/deps/jemalloc/
- objroot :
- abs_objroot : /data/soft/redis-6.0.0/deps/jemalloc/
- JEMALLOC_PREFIX : je_
- JEMALLOC_PRIVATE_NAMESPACE
- je_ install_suffix : malloc_conf : autogen : 0 debug : 0 stats : 1 prof : 0 prof-libunwind : 0 prof-libgcc : 0 prof-gcc : 0 fill : 1 utrace : 0 xmalloc : 0 log : 0 lazy_lock : 0 cache-oblivious : 1 cxx : 0
cd jemalloc && make CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" lib/libjemalloc.a make[3]: Entering directory /data/soft/redis-6.0.0/deps/jemalloc' gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/jemalloc.sym.o src/jemalloc.c nm -a src/jemalloc.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/jemalloc.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/arena.sym.o src/arena.c nm -a src/arena.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/arena.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/background_thread.sym.o src/background_thread.c nm -a src/background_thread.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/background_thread.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/base.sym.o src/base.c nm -a src/base.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/base.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/bin.sym.o src/bin.c nm -a src/bin.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/bin.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/bitmap.sym.o src/bitmap.c nm -a src/bitmap.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/bitmap.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/ckh.sym.o src/ckh.c nm -a src/ckh.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/ckh.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/ctl.sym.o src/ctl.c nm -a src/ctl.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/ctl.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/div.sym.o src/div.c nm -a src/div.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/div.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/extent.sym.o src/extent.c nm -a src/extent.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/extent.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/extent_dss.sym.o src/extent_dss.c nm -a src/extent_dss.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/extent_dss.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/extent_mmap.sym.o src/extent_mmap.c nm -a src/extent_mmap.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/extent_mmap.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/hash.sym.o src/hash.c nm -a src/hash.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/hash.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/hooks.sym.o src/hooks.c nm -a src/hooks.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk
src/hooks.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/large.sym.o src/large.c nm -a src/large.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/large.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/log.sym.o src/log.c nm -a src/log.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/log.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/malloc_io.sym.o src/malloc_io.c nm -a src/malloc_io.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/malloc_io.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/mutex.sym.o src/mutex.c nm -a src/mutex.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/mutex.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/mutex_pool.sym.o src/mutex_pool.c nm -a src/mutex_pool.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/mutex_pool.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/nstime.sym.o src/nstime.c nm -a src/nstime.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/nstime.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/pages.sym.o src/pages.c nm -a src/pages.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/pages.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/prng.sym.o src/prng.c nm -a src/prng.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/prng.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/prof.sym.o src/prof.c nm -a src/prof.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/prof.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/rtree.sym.o src/rtree.c nm -a src/rtree.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/rtree.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/stats.sym.o src/stats.c nm -a src/stats.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/stats.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/sz.sym.o src/sz.c nm -a src/sz.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/sz.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/tcache.sym.o src/tcache.c nm -a src/tcache.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/tcache.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/ticker.sym.o src/ticker.c nm -a src/ticker.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/ticker.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/tsd.sym.o src/tsd.c nm -a src/tsd.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/tsd.sym gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/witness.sym.o src/witness.c nm -a src/witness.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/witness.sym /bin/sh include/jemalloc/internal/private_namespace.sh src/jemalloc.sym src/arena.sym src/background_thread.sym src/base.sym src/bin.sym src/bitmap.sym src/ckh.sym src/ctl.sym src/div.sym src/extent.sym src/extent_dss.sym src/extent_mmap.sym src/hash.sym src/hooks.sym src/large.sym src/log.sym src/malloc_io.sym src/mutex.sym src/mutex_pool.sym src/nstime.sym src/pages.sym src/prng.sym src/prof.sym src/rtree.sym src/stats.sym src/sz.sym src/tcache.sym src/ticker.sym src/tsd.sym src/witness.sym > include/jemalloc/internal/private_namespace.gen.h cp include/jemalloc/internal/private_namespace.gen.h include/jemalloc/internal/private_namespace.gen.h gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/jemalloc.o src/jemalloc.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/arena.o src/arena.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/background_thread.o src/background_thread.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/base.o src/base.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bin.o src/bin.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.o src/bitmap.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ckh.o src/ckh.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ctl.o src/ctl.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/div.o src/div.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent.o src/extent.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent_dss.o src/extent_dss.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent_mmap.o src/extent_mmap.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hash.o src/hash.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hooks.o src/hooks.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/large.o src/large.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/log.o src/log.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/malloc_io.o src/malloc_io.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex.o src/mutex.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex_pool.o src/mutex_pool.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/nstime.o src/nstime.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/pages.o src/pages.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prng.o src/prng.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prof.o src/prof.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/rtree.o src/rtree.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/stats.o src/stats.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/sz.o src/sz.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tcache.o src/tcache.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ticker.o src/ticker.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tsd.o src/tsd.c gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/witness.o src/witness.c ar crus lib/libjemalloc.a src/jemalloc.o src/arena.o src/background_thread.o src/base.o src/bin.o src/bitmap.o src/ckh.o src/ctl.o src/div.o src/extent.o src/extent_dss.o src/extent_mmap.o src/hash.o src/hooks.o src/large.o src/log.o src/malloc_io.o src/mutex.o src/mutex_pool.o src/nstime.o src/pages.o src/prng.o src/prof.o src/rtree.o src/stats.o src/sz.o src/tcache.o src/ticker.o src/tsd.o src/witness.o make[3]: Leaving directory /data/soft/redis-6.0.0/deps/jemalloc' make[2]: Leaving directory /data/soft/redis-6.0.0/deps' �[34mCC�[0m �[33madlist.o�[0m �[34mCC�[0m �[33mquicklist.o�[0m �[34mCC�[0m �[33mae.o�[0m �[34mCC�[0m �[33manet.o�[0m �[34mCC�[0m �[33mdict.o�[0m �[34mCC�[0m �[33mserver.o�[0m In file included from server.c:30:0: server.h:1044:5: error: expected specifier-qualifier-list before '_Atomic' _Atomic unsigned int lruclock; / Clock for LRU eviction / ^ server.c: In function 'serverLogRaw': server.c:1028:31: error: 'struct redisServer' has no member named 'logfile' int log_to_stdout = server.logfile[0] == '\0'; ^ server.c:1031:23: error: 'struct redisServer' has no member named 'verbosity' if (level < server.verbosity) return; ^ server.c:1033:47: error: 'struct redisServer' has no member named 'logfile' fp = log_to_stdout ? stdout : fopen(server.logfile,"a"); ^ server.c:1046:47: error: 'struct redisServer' has no member named 'timezone' nolocks_localtime(&tm,tv.tv_sec,server.timezone,server.daylight_active); ^ server.c:1046:63: error: 'struct redisServer' has no member named 'daylight_active' nolocks_localtime(&tm,tv.tv_sec,server.timezone,server.daylight_active); ^ server.c:1049:19: error: 'struct redisServer' has no member named 'sentinel_mode' if (server.sentinel_mode) { ^ server.c:1054:32: error: 'struct redisServer' has no member named 'masterhost' role_char = (server.masterhost ? 'S':'M'); / Slave or Master. / ^ server.c:1062:15: error: 'struct redisServer' has no member named 'syslog_enabled' if (server.syslog_enabled) syslog(syslogLevelMap[level], "%s", msg); ^ server.c: In function 'serverLog': server.c:1072:30: error: 'struct redisServer' has no member named 'verbosity' if ((level&0xff) < server.verbosity) return; ^ server.c: In function 'serverLogFromHandler': server.c:1089:31: error: 'struct redisServer' has no member named 'logfile' int log_to_stdout = server.logfile[0] == '\0'; ^ server.c:1092:30: error: 'struct redisServer' has no member named 'verbosity' if ((level&0xff) < server.verbosity || (log_to_stdout && server.daemonize)) ^ server.c:1092:68: error: 'struct redisServer' has no member named 'daemonize' if ((level&0xff) < server.verbosity || (log_to_stdout && server.daemonize)) ^ server.c:1095:37: error: 'struct redisServer' has no member named 'logfile' open(server.logfile, O_APPEND|O_CREAT|O_WRONLY, 0644); ^ server.c: In function 'hasActiveChildProcess': server.c:1473:18: error: 'struct redisServer' has no member named 'rdb_child_pid' return server.rdb_child_pid != -1 || ^ server.c:1474:18: error: 'struct redisServer' has no member named 'aof_child_pid' server.aof_child_pid != -1 || ^ server.c:1475:18: error: 'struct redisServer' has no member named 'module_child_pid' server.module_child_pid != -1; ^ server.c: In function 'allPersistenceDisabled': server.c:1481:18: error: 'struct redisServer' has no member named 'saveparamslen' return server.saveparamslen == 0 && server.aof_state == AOF_OFF; ^ server.c:1481:47: error: 'struct redisServer' has no member named 'aof_state' return server.saveparamslen == 0 && server.aof_state == AOF_OFF; ^ server.c: In function 'trackInstantaneousMetric': server.c:1488:36: error: 'struct redisServer' has no member named 'inst_metric' long long t = mstime() - server.inst_metric[metric].last_sample_time; ^ server.c:1490:27: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].last_sample_count; ^ server.c:1495:11: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].samples[server.inst_metric[metric].idx] = ^ server.c:1495:46: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].samples[server.inst_metric[metric].idx] = ^ server.c:1497:11: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].idx++; ^ server.c:1498:11: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].idx %= STATS_METRIC_SAMPLES; ^ server.c:1499:11: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].last_sample_time = mstime(); ^ server.c:1500:11: error: 'struct redisServer' has no member named 'inst_metric' server.inst_metric[metric].last_sample_count = current_reading; ^ server.c:1487:35: warning: parameter 'metric' set but not used [-Wunused-but-set-parameter] void trackInstantaneousMetric(int metric, long long current_reading) { ^ server.c: In function 'getInstantaneousMetric': server.c:1509:22: error: 'struct redisServer' has no member named 'inst_metric' sum += server.inst_metric[metric].samples[j]; ^ server.c:1504:38: warning: parameter 'metric' set but not used [-Wunused-but-set-parameter] long long getInstantaneousMetric(int metric) { ^ server.c: In function 'clientsCronResizeQueryBuffer': server.c:1519:29: error: 'struct redisServer' has no member named 'unixtime' time_t idletime = server.unixtime - c->lastinteraction; ^ server.c: In function 'clientsCronTrackExpansiveClients': server.c:1576:19: error: 'struct redisServer' has no member named 'unixtime' int i = server.unixtime % CLIENTS_PEAK_MEM_USAGE_SLOTS; ^ server.c: In function 'clientsCronTrackClientsMemUsage': server.c:1613:11: error: 'struct redisServer' has no member named 'stat_clients_type_memory' server.stat_clients_type_memory[c->client_cron_last_memory_type] -= ^ server.c:1615:11: error: 'struct redisServer' has no member named 'stat_clients_type_memory' server.stat_clients_type_memory[type] += mem; ^ In file included from server.h:63:0, from server.c:30: server.c: In function 'clientsCron': server.c:1655:39: error: 'struct redisServer' has no member named 'clients' int numclients = listLength(server.clients); ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:1666:28: error: 'struct redisServer' has no member named 'clients' while(listLength(server.clients) && iterations--) { ^ adlist.h:57:25: note: in definition of macro 'listLength'
define listLength(l) ((l)->len) ^ server.c:1673:36: error: 'struct
redisServer' has no member named 'clients' listRotateTailToHead(server.clients); ^ In file included from server.h:63:0, from server.c:30: server.c:1674:32: error: 'struct redisServer' has no member named 'clients' head = listFirst(server.clients); ^ adlist.h:58:24: note: in definition of macro 'listFirst' #define listFirst(l) ((l)->head) ^ server.c: In function 'databasesCron': server.c:1692:15: error: 'struct redisServer' has no member named 'active_expire_enabled' if (server.active_expire_enabled) { ^ server.c:1716:34: error: 'struct redisServer' has no member named 'dbnum' if (dbs_per_call > server.dbnum) dbs_per_call = server.dbnum; ^ server.c:1716:63: error: 'struct redisServer' has no member named 'dbnum' if (dbs_per_call > server.dbnum) dbs_per_call = server.dbnum; ^ server.c:1720:51: error: 'struct redisServer' has no member named 'dbnum' tryResizeHashTables(resize_db % server.dbnum); ^ server.c:1725:19: error: 'struct redisServer' has no member named 'activerehashing' if (server.activerehashing) { ^ server.c:1735:40: error: 'struct redisServer' has no member named 'dbnum' rehash_db %= server.dbnum; ^ server.c: In function 'updateCachedTime': server.c:1753:11: error: 'struct redisServer' has no member named 'ustime' server.ustime = ustime(); ^ server.c:1754:11: error: 'struct redisServer' has no member named 'mstime' server.mstime = server.ustime / 1000; ^ server.c:1754:27: error: 'struct redisServer' has no member named 'ustime' server.mstime = server.ustime / 1000; ^ server.c:1755:11: error: 'struct redisServer' has no member named 'unixtime' server.unixtime = server.mstime / 1000; ^ server.c:1755:29: error: 'struct redisServer' has no member named 'mstime' server.unixtime = server.mstime / 1000; ^ server.c:1764:27: error: 'struct redisServer' has no member named 'unixtime' time_t ut = server.unixtime; ^ server.c:1766:15: error: 'struct redisServer' has no member named 'daylight_active' server.daylight_active = tm.tm_isdst; ^ server.c: In function 'checkChildrenDone': server.c:1779:15: error: 'struct redisServer' has no member named 'rdb_child_pid' if (server.rdb_child_pid != -1 && server.rdb_pipe_conns) ^ server.c:1779:45: error: 'struct redisServer' has no member named 'rdb_pipe_conns' if (server.rdb_child_pid != -1 && server.rdb_pipe_conns) ^ server.c:1802:29: error: 'struct redisServer' has no member named 'rdb_child_pid' (int) server.rdb_child_pid, ^ server.c:1803:29: error: 'struct redisServer' has no member named 'aof_child_pid' (int) server.aof_child_pid, ^ server.c:1804:29: error: 'struct redisServer' has no member named 'module_child_pid' (int) server.module_child_pid); ^ server.c:1805:33: error: 'struct redisServer' has no member named 'rdb_child_pid' } else if (pid == server.rdb_child_pid) { ^ server.c:1808:33: error: 'struct redisServer' has no member named 'aof_child_pid' } else if (pid == server.aof_child_pid) { ^ server.c:1811:33: error: 'struct redisServer' has no member named 'module_child_pid' } else if (pid == server.module_child_pid) { ^ server.c: In function 'serverCron': server.c:1853:15: error: 'struct redisServer' has no member named 'watchdog_period' if (server.watchdog_period) watchdogScheduleSignal(server.watchdog_period); ^ server.c:1853:62: error: 'struct redisServer' has no member named 'watchdog_period' if (server.watchdog_period) watchdogScheduleSignal(server.watchdog_period); ^ In file included from server.h:63:0, from server.c:30: server.c:1862:33: error: 'struct redisServer' has no member named 'clients' while (listLength(server.clients) / server.hz > ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:1873:5: note: in expansion of macro 'run_with_period' run_with_period(100) { ^ server.c:1874:61: error: 'struct redisServer' has no member named 'stat_numcommands' trackInstantaneousMetric(STATS_METRIC_COMMAND,server.stat_numcommands); ^ server.c:1876:23: error: 'struct redisServer' has no member named 'stat_net_input_bytes' server.stat_net_input_bytes); ^ server.c:1878:23: error: 'struct redisServer' has no member named 'stat_net_output_bytes' server.stat_net_output_bytes); ^ server.c:1892:11: error: 'struct redisServer' has no member named 'lruclock' server.lruclock = getLRUClock(); ^ server.c:1895:39: error: 'struct redisServer' has no member named 'stat_peak_memory' if (zmalloc_used_memory() > server.stat_peak_memory) ^ server.c:1896:15: error: 'struct redisServer' has no member named 'stat_peak_memory' server.stat_peak_memory = zmalloc_used_memory(); ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:1898:5: note: in expansion of macro 'run_with_period' run_with_period(100) { ^ server.c:1902:15: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.process_rss = zmalloc_get_rss(); ^ server.c:1903:15: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.zmalloc_used = zmalloc_used_memory(); ^ server.c:1908:43: error: 'struct redisServer' has no member named 'cron_malloc_stats' zmalloc_get_allocator_info(&server.cron_malloc_stats.allocator_allocated, ^ server.c:1909:43: error: 'struct redisServer' has no member named 'cron_malloc_stats' &server.cron_malloc_stats.allocator_active, ^ server.c:1910:43: error: 'struct redisServer' has no member named 'cron_malloc_stats' &server.cron_malloc_stats.allocator_resident); ^ server.c:1913:20: error: 'struct redisServer' has no member named 'cron_malloc_stats' if (!server.cron_malloc_stats.allocator_resident) { ^ server.c:1917:46: error: 'struct redisServer' has no member named 'lua' size_t lua_memory = lua_gc(server.lua,LUA_GCCOUNT,0)1024LL; ^ server.c:1918:19: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_resident = server.cron_malloc_stats.process_rss - lua_memory; ^ server.c:1918:65: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_resident = server.cron_malloc_stats.process_rss - lua_memory; ^ server.c:1920:20: error: 'struct redisServer' has no member named 'cron_malloc_stats' if (!server.cron_malloc_stats.allocator_active) ^ server.c:1921:19: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_active = server.cron_malloc_stats.allocator_resident; ^ server.c:1921:63: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_active = server.cron_malloc_stats.allocator_resident; ^ server.c:1922:20: error: 'struct redisServer' has no member named 'cron_malloc_stats' if (!server.cron_malloc_stats.allocator_allocated) ^ server.c:1923:19: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_allocated = server.cron_malloc_stats.zmalloc_used; ^ server.c:1923:66: error: 'struct redisServer' has no member named 'cron_malloc_stats' server.cron_malloc_stats.allocator_allocated = server.cron_malloc_stats.zmalloc_used; ^ server.c:1928:15: error: 'struct redisServer' has no member named 'shutdown_asap' if (server.shutdown_asap) { ^ server.c:1931:15: error: 'struct redisServer' has no member named 'shutdown_asap' server.shutdown_asap = 0; ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:1935:5: note: in expansion of macro 'run_with_period' run_with_period(5000) { ^ server.c:1936:31: error: 'struct redisServer' has no member named 'dbnum' for (j = 0; j < server.dbnum; j++) { ^ server.c:1950:16: error: 'struct redisServer' has no member named 'sentinel_mode' if (!server.sentinel_mode) { ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:1951:9: note: in expansion of macro 'run_with_period' run_with_period(5000) { ^ In file included from server.h:63:0, from server.c:30: server.c:1954:34: error: 'struct redisServer' has no member named 'clients' listLength(server.clients)-listLength(server.slaves), ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:1954:61: error: 'struct redisServer' has no member named 'slaves' listLength(server.clients)-listLength(server.slaves), ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:1955:34: error: 'struct redisServer' has no member named 'slaves' listLength(server.slaves), ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:1969:15: error: 'struct redisServer' has no member named 'aof_rewrite_scheduled' server.aof_rewrite_scheduled) ^ server.c:1981:31: error: 'struct redisServer' has no member named 'saveparamslen' for (j = 0; j < server.saveparamslen; j++) { ^ server.c:1982:42: error: 'struct redisServer' has no member named 'saveparams' struct saveparam sp = server.saveparams+j; ^ server.c:1988:23: error: 'struct redisServer' has no member named 'dirty' if (server.dirty >= sp->changes && ^ server.c:1989:23: error: 'struct redisServer' has no member named 'unixtime' server.unixtime-server.lastsave > sp->seconds && ^ server.c:1989:39: error: 'struct redisServer' has no member named 'lastsave' server.unixtime-server.lastsave > sp->seconds && ^ server.c:1990:24: error: 'struct redisServer' has no member named 'unixtime' (server.unixtime-server.lastbgsave_try > ^ server.c:1990:40: error: 'struct redisServer' has no member named 'lastbgsave_try' (server.unixtime-server.lastbgsave_try > ^ server.c:1992:24: error: 'struct redisServer' has no member named 'lastbgsave_status' server.lastbgsave_status == C_OK)) ^ server.c:1998:41: error: 'struct redisServer' has no member named 'rdb_filename' rdbSaveBackground(server.rdb_filename,rsiptr); ^ server.c:2004:19: error: 'struct redisServer' has no member named 'aof_state' if (server.aof_state == AOF_ON && ^ server.c:2006:19: error: 'struct redisServer' has no member named 'aof_rewrite_perc' server.aof_rewrite_perc && ^ server.c:2007:19: error: 'struct redisServer' has no member named 'aof_current_size' server.aof_current_size > server.aof_rewrite_min_size) ^ server.c:2007:45: error: 'struct redisServer' has no member named 'aof_rewrite_min_size' server.aof_current_size > server.aof_rewrite_min_size) ^ server.c:2009:36: error: 'struct redisServer' has no member named 'aof_rewrite_base_size' long long base = server.aof_rewrite_base_size ? ^ server.c:2010:23: error: 'struct redisServer' has no member named 'aof_rewrite_base_size' server.aof_rewrite_base_size : 1; ^ server.c:2011:39: error: 'struct redisServer' has no member named 'aof_current_size' long long growth = (server.aof_current_size100/base) - 100; ^ server.c:2012:33: error: 'struct redisServer' has no member named 'aof_rewrite_perc' if (growth >= server.aof_rewrite_perc) { ^ server.c:2022:15: error: 'struct redisServer' has no member named 'aof_flush_postponed_start' if (server.aof_flush_postponed_start) flushAppendOnlyFile(0); ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:2028:5: note: in expansion of macro 'run_with_period' run_with_period(1000) { ^ server.c:2029:19: error: 'struct redisServer' has no member named 'aof_last_write_status' if (server.aof_last_write_status == C_ERR) ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:2038:5: note: in expansion of macro 'run_with_period' run_with_period(1000) replicationCron(); ^ server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:2041:5: note: in expansion of macro 'run_with_period' run_with_period(100) { ^ server.c:2042:19: error: 'struct redisServer' has no member named 'cluster_enabled' if (server.cluster_enabled) clusterCron(); ^ server.c:2046:15: error: 'struct redisServer' has no member named 'sentinel_mode' if (server.sentinel_mode) sentinelTimer(); ^ In file included from server.c:30:0: server.h:436:71: error: 'struct redisServer' has no member named 'cronloops' #define run_with_period(ms) if ((ms <= 1000/server.hz) || !(server.cronloops%((ms)/(1000/server.hz)))) ^ server.c:2049:5: note: in expansion of macro 'run_with_period' run_with_period(1000) { ^ server.c:2064:15: error: 'struct redisServer' has no member named 'rdb_bgsave_scheduled' server.rdb_bgsave_scheduled && ^ server.c:2065:16: error: 'struct redisServer' has no member named 'unixtime' (server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY || ^ server.c:2065:32: error: 'struct redisServer' has no member named 'lastbgsave_try' (server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY || ^ server.c:2066:16: error: 'struct redisServer' has no member named 'lastbgsave_status' server.lastbgsave_status == C_OK)) ^ server.c:2070:37: error: 'struct redisServer' has no member named 'rdb_filename' if (rdbSaveBackground(server.rdb_filename,rsiptr) == C_OK) ^ server.c:2071:19: error: 'struct redisServer' has no member named 'rdb_bgsave_scheduled' server.rdb_bgsave_scheduled = 0; ^ server.c:2080:11: error: 'struct redisServer' has no member named 'cronloops' server.cronloops++; ^ server.c: In function 'beforeSleep': server.c:2106:15: error: 'struct redisServer' has no member named 'cluster_enabled' if (server.cluster_enabled) clusterBeforeSleep(); ^ server.c:2110:15: error: 'struct redisServer' has no member named 'active_expire_enabled' if (server.active_expire_enabled && server.masterhost == NULL) ^ server.c:2110:47: error: 'struct redisServer' has no member named 'masterhost' if (server.active_expire_enabled && server.masterhost == NULL) ^ In file included from server.h:63:0, from server.c:30: server.c:2115:26: error: 'struct redisServer' has no member named 'clients_waiting_acks' if (listLength(server.clients_waiting_acks)) ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:2123:26: error: 'struct redisServer' has no member named 'unblocked_clients' if (listLength(server.unblocked_clients)) ^ adlist.h:57:25: note: in definition of macro 'listLength' #define listLength(l) ((l)->len) ^ server.c:2131:15: error: 'struct redisServer' has no member named 'get_ack_from_slaves' if (server.get_ack_from_slaves) { ^ server.c:2137:37: error: 'struct redisServer' has no member named 'slaves' replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3); ^ server.c:2137:52: error: 'struct redisServer' has no member named 'slaveseldb' replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3); ^ server.c:2141:15: error: 'struct redisServer' has no member named 'get_ack_from_slaves' server.get_ack_from_slaves = 0; ^ server.c: In function 'initServerConfig': server.c:2292:29: error: 'struct redisServer' has no member named 'runid' getRandomHexChars(server.runid,CONFIG_RUN_ID_SIZE); ^ server.c:2293:11: error: 'struct redisServer' has no member named 'runid' server.runid[CONFIG_RUN_ID_SIZE] = '\0'; ^ server.c:2300:11: error: 'struct redisServer' has no member named 'timezone' server.timezone = getTimeZone(); / Initialized by tzset(). / ^ server.c:2303:11: error: 'struct redisServer' has no member named 'arch_bits' server.arch_bits = (sizeof(long) == 8) ? 64 : 32; ^ server.c:2304:11: error: 'struct redisServer' has no member named 'bindaddr_count' server.bindaddr_count = 0; ^ server.c:2305:11: error: 'struct redisServer' has no member named 'unixsocketperm' server.unixsocketperm = CONFIG_DEFAULT_UNIX_SOCKET_PERM; ^ server.c:2306:11: error: 'struct redisServer' has no member named 'ipfd_count' server.ipfd_count = 0; ^ server.c:2307:11: error: 'struct redisServer' has no member named 'tlsfd_count' server.tlsfd_count = 0; ^ server.c:2308:11: error: 'struct redisServer' has no member named 'sofd' server.sofd = -1; ^ server.c:2309:11: error: 'struct redisServer' has no member named 'active_expire_enabled' server.active_expire_enabled = 1; ^ server.c:2310:11: error: 'struct redisServer' has no member named 'client_max_querybuf_len' server.client_max_querybuf_len = PROTO_MAX_QUERYBUF_LEN; ^ server.c:2311:11: error: 'struct redisServer' has no member named 'saveparams' server.saveparams = NULL; ^ server.c:2312:11: error: 'struct redisServer' has no member named 'loading' server.loading = 0; ^ server.c:2313:11: error: 'struct redisServer' has no member named 'logfile' server.logfile = zstrdup(CONFIG_DEFAULT_LOGFILE); ^ server.c:2314:11: error: 'struct redisServer' has no member named 'aof_state' server.aof_state = AOF_OFF; ^ server.c:2315:11: error: 'struct redisServer' has no member named 'aof_rewrite_base_size' server.aof_rewrite_base_size = 0; ^ server.c:2316:11: error: 'struct redisServer' has no member named 'aof_rewrite_scheduled' server.aof_rewrite_scheduled = 0; ^ server.c:2317:11: error: 'struct redisServer' has no member named 'aof_flush_sleep' server.aof_flush_sleep = 0; ^ server.c:2318:11: error: 'struct redisServer' has no member named 'aof_last_fsync' server.aof_last_fsync = time(NULL); ^ server.c:2319:11: error: 'struct redisServer' has no member named 'aof_rewrite_time_last' server.aof_rewrite_time_last = -1; ^ server.c:2320:11: error: 'struct redisServer' has no member named 'aof_rewrite_time_start' server.aof_rewrite_time_start = -1; ^ server.c:2321:11: error: 'struct redisServer' has no member named 'aof_lastbgrewrite_status' server.aof_lastbgrewrite_status = C_OK; ^ server.c:2322:11: error: 'struct redisServer' has no member named 'aof_delayed_fsync' server.aof_delayed_fsync = 0; ^ server.c:2323:11: error: 'struct redisServer' has no member named 'aof_fd' server.aof_fd = -1; ^ server.c:2324:11: error: 'struct redisServer' has no member named 'aof_selected_db' server.aof_selected_db = -1; / Make sure the first time will not match / ^ server.c:2325:11: error: 'struct redisServer' has no member named 'aof_flush_postponed_start' server.aof_flush_postponed_start = 0; ^ server.c:2326:11: error: 'struct redisServer' has no member named 'pidfile' server.pidfile = NULL; ^ server.c:2327:11: error: 'struct redisServer' has no member named 'active_defrag_running' server.active_defrag_running = 0; ^ server.c:2328:11: error: 'struct redisServer' has no member named 'notify_keyspace_events' server.notify_keyspace_events = 0; ^ server.c:2329:11: error: 'struct redisServer' has no member named 'blocked_clients' server.blocked_clients = 0; ^ server.c:2330:18: error: 'struct redisServer' has no member named 'blocked_clients_by_type' memset(server.blocked_clients_by_type,0, ^ server.c:2331:25: error: 'struct redisServer' has no member named 'blocked_clients_by_type' sizeof(server.blocked_clients_by_type)); ^ server.c:2332:11: error: 'struct redisServer' has no member named 'shutdown_asap' server.shutdown_asap = 0; ^ server.c:2333:11: error: 'struct redisServer' has no member named 'cluster_configfile' server.cluster_configfile = zstrdup(CONFIG_DEFAULT_CLUSTER_CONFIG_FILE); ^ server.c:2334:11: error: 'struct redisServer' has no member named 'cluster_module_flags' server.cluster_module_flags = CLUSTER_MODULE_FLAG_NONE; ^ server.c:2335:11: error: 'struct redisServer' has no member named 'migrate_cached_sockets' server.migrate_cached_sockets = dictCreate(&migrateCacheDictType,NULL); ^ server.c:2336:11: error: 'struct redisServer' has no member named 'next_client_id' server.next_client_id = 1; / Client IDs, start from 1 ./ ^ server.c:2337:11: error: 'struct redisServer' has no member named 'loading_process_events_interval_bytes' server.loading_process_events_interval_bytes = (102410242); ^ server.c:2339:11: error: 'struct redisServer' has no member named 'lruclock' server.lruclock = getLRUClock(); ^ server.c:2347:11: error: 'struct redisServer' has no member named 'masterauth' server.masterauth = NULL; ^ server.c:2348:11: error: 'struct redisServer' has no member named 'masterhost' server.masterhost = NULL; ^ server.c:2349:11: error: 'struct redisServer' has no member named 'masterport' server.masterport = 6379; ^ server.c:2350:11: error: 'struct redisServer' has no member named 'master' server.master = NULL; ^ server.c:2351:11: error: 'struct redisServer' has no member named 'cached_master' server.cached_master = NULL; ^ server.c:2352:11: error: 'struct redisServer' has no member named 'master_initial_offset' server.master_initial_offset = -1; ^ server.c:2353:11: error: 'struct redisServer' has no member named 'repl_state' server.repl_state = REPL_STATE_NONE; ^ server.c:2354:11: error: 'struct redisServer' has no member named 'repl_transfer_tmpfile' server.repl_transfer_tmpfile = NULL; ^ server.c:2355:11: error: 'struct redisServer' has no member named 'repl_transfer_fd' server.repl_transfer_fd = -1; ^ server.c:2356:11: error: 'struct redisServer' has no member named 'repl_transfer_s' server.repl_transfer_s = NULL; ^ server.c:2357:11: error: 'struct redisServer' has no member named 'repl_syncio_timeout' server.repl_syncio_timeout = CONFIG_REPL_SYNCIO_TIMEOUT; ^ server.c:2358:11: error: 'struct redisServer' has no member named 'repl_down_since' server.repl_down_since = 0; / Never connected, repl is down since EVER. */ ^ server.c:2359:11: error: 'struct redisServer' has no member named 'master_repl_offset' server.master_repl_offset = 0; ^ server.c:2360:11: error: 'struct redisServer' has no member named 'master_repl_meaningful_offset' server.master_repl_meaningful_offset = 0; ^ server.c:2363:11: error: 'struct redisServer' has no member named 'repl_backlog' server.repl_backlog = NULL; ^ server.c:2364:11: error: 'struct redisServer' has no member named 'repl_backlog_histlen' server.repl_backlog_histlen = 0; ^ server.c:2365:11: error: 'struct redisServer' has no member named 'repl_backlog_idx' server.repl_backlog_idx = 0; ^ server.c:2366:11: error: 'struct redisServer' has no member named 'repl_backlog_off' server.repl_backlog_off = 0; ^ server.c:2367:11: error: 'struct redisServer' has no member named 'repl_no_slaves_since' server.repl_no_slaves_since = time(NULL); ^ server.c:2371:15: error: 'struct redisServer' has no member named 'client_obuf_limits' server.client_obuf_limits[j] = clientBufferLimitsDefaults[j]; ^ server.c:2385:11: error: 'struct redisServer' has no member named 'delCommand' server.delCommand = lookupCommandByCString("del"); ^ server.c:2386:11: error: 'struct redisServer' has no member named 'multiCommand' server.multiCommand = lookupCommandByCString("multi"); ^ server.c:2387:11: error: 'struct redisServer' has no member named 'lpushCommand' server.lpushCommand = lookupCommandByCString("lpush"); ^ server.c:2388:11: error: 'struct redisServer' has no member named 'lpopCommand' server.lpopCommand = lookupCommandByCString("lpop"); ^ server.c:2389:11: error: 'struct redisServer' has no member named 'rpopCommand' server.rpopCommand = lookupCommandByCString("rpop"); ^ server.c:2390:11: error: 'struct redisServer' has no member named 'zpopminCommand' server.zpopminCommand = lookupCommandByCString("zpopmin"); ^ server.c:2391:11: error: 'struct redisServer' has no member named 'zpopmaxCommand' server.zpopmaxCommand = lookupCommandByCString("zpopmax"); ^ server.c:2392:11: error: 'struct redisServer' has no member named 'sremCommand' server.sremCommand = lookupCommandByCString("srem"); ^ server.c:2393:11: error: 'struct redisServer' has no member named 'execCommand' server.execCommand = lookupCommandByCString("exec"); ^ server.c:2394:11: error: 'struct redisServer' has no member named 'expireCommand' server.expireCommand = lookupCommandByCString("expire"); ^ server.c:2395:11: error: 'struct redisServer' has no member named 'pexpireCommand' server.pexpireCommand = lookupCommandByCString("pexpire"); ^ server.c:2396:11: error: 'struct redisServer' has no member named 'xclaimCommand' server.xclaimCommand = lookupCommandByCString("xclaim"); ^ server.c:2397:11: error: 'struct redisServer' has no member named 'xgroupCommand' server.xgroupCommand = lookupCommandByCString("xgroup"); ^ server.c:2398:11: error: 'struct redisServer' has no member named 'rpoplpushCommand' server.rpoplpushCommand = lookupCommandByCString("rpoplpush"); ^ server.c:2401:11: error: 'struct redisServer' has no member named 'assert_failed' server.assert_failed = "
"; ^ server.c:2402:11: error: 'struct redisServer' has no member named 'assert_file' server.assert_file = " "; ^ server.c:2403:11: error: 'struct redisServer' has no member named 'assert_line' server.assert_line = 0; ^ server.c:2404:11: error: 'struct redisServer' has no member named 'bug_report_start' server.bug_report_start = 0; ^ server.c:2405:11: error: 'struct redisServer' has no member named 'watchdog_period' server.watchdog_period = 0; ^ server.c:2411:11: error: 'struct redisServer' has no member named 'lua_always_replicate_commands' server.lua_always_replicate_commands = 1; ^ server.c: In function 'restartServer': server.c:2464:32: error: 'struct redisServer' has no member named 'maxclients' for (j = 3; j < (int)server.maxclients + 1024; j++) { ^ server.c: In function 'adjustOpenFilesLimit': server.c:2491:29: error: 'struct redisServer
Comment From: elevenkongqian
ok thank you :)
Comment From: Amitgb14
@antirez How to pass C11 to make command? I try to build on CentOS 7.7.1908 and gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
Comment From: elevenkongqian
@Amitgb14 you can try use scl like this: sudo yum install centos-release-scl sudo yum install devtoolset-7-gcc* scl enable devtoolset-7 bash which gcc gcc --version
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
and set .bashrc
vi .bashrc add this: source /opt/rh/devtoolset-7/enable
Comment From: Amitgb14
Thanks @elevenkongqian, I'm try to build RPM for production use, is that safe to use devtoolset?, Another way is use clang compiler
Comment From: oranagra
for the record, this is a dup of #6286
Comment From: oranagra
Update: The core team have decided to step back from the C11 requirement. We see it causes pain to many, and we feel that the value (in code clarity) is not worth the pain, and that it was too early for Redis to depend on it. We'll reconsider it again in the future. The task will be tracked in #7509.
Comment From: Amitgb14
yeah, this issue resolved after using clang compiler