Describe the bug I can't compile redis when system is centos7 gcc is 4.8.5

server.c:5186:44: 错误:‘struct redisServer’没有名为‘tlsfd_count’的成员 if (server.ipfd_count > 0 || server.tlsfd_count > 0) ^ server.c:5188:19: 错误:‘struct redisServer’没有名为‘sofd’的成员 if (server.sofd > 0) ^ server.c:5189:94: 错误:‘struct redisServer’没有名为‘unixsocket’的成员 serverLog(LL_NOTICE,"The server is now ready to accept connections at %s", server.unixsocket); ^ server.c:5190:19: 错误:‘struct redisServer’没有名为‘supervised_mode’的成员 if (server.supervised_mode == SUPERVISED_SYSTEMD) { ^ server.c:5191:24: 错误:‘struct redisServer’没有名为‘masterhost’的成员 if (!server.masterhost) { ^ server.c:5201:19: 错误:‘struct redisServer’没有名为‘supervised_mode’的成员 if (server.supervised_mode == SUPERVISED_SYSTEMD) { ^ server.c:5208:15: 错误:‘struct redisServer’没有名为‘maxmemory’的成员 if (server.maxmemory > 0 && server.maxmemory < 10241024) { ^ server.c:5208:39: 错误:‘struct redisServer’没有名为‘maxmemory’的成员 if (server.maxmemory > 0 && server.maxmemory < 10241024) { ^ server.c:5209:176: 错误:‘struct redisServer’没有名为‘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:5212:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist);

Comment From: yossigo

@RuvikVan This is a known issue resulting from the use of C11, which is not supported by the default compiler on CentOS 7.x. Please see issue #7509 for more information and a workaround for your system.

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.