CentOS 7.9 编译安装Redis 6.0.5报错
In file included from server.c:30:0:
server.h:1045: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);
......
......
问题原因
CentOS 7的gcc版本为4.8.5,Redis 6.0.5最低需要gcc4.9,因此需要升级gcc版本
from redis 6.0.5, building redis from source code needs C11 support.The version of gcc in CentOS 7 is 4.8.5, but C11 was introduced in 4.9.
解决办法
1、手动编译gcc大于4.9的版本
2、安装 devtoolset-9(使用高版本gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC))编译安装Redis 6.0.5
vi /etc/yum.repos.d/CentOS-SCLo-scl.repo
[centos-sclo-sclo]
name=CentOS-7 - SCLo sclo
baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/
#mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
yum install centos-release-scl
yum install devtoolset-9 -y
scl enable devtoolset-9 bash #激活gcc版本,使其生效
临时使用高版本gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) (推荐使用这个方法)
export CC=/opt/rh/devtoolset-9/root/usr/bin/gcc
export CPP=/opt/rh/devtoolset-9/root/usr/bin/cpp
export CXX=/opt/rh/devtoolset-9/root/usr/bin/c++
wget http://download.redis.io/releases/redis-stable.tar.gz
tar zxf redis-stable.tar.gz && cd redis-stable
make -j2 && make install
if [ -f "/root/redis-stable/src/redis-server" ]; then
mkdir -p /usr/local/redis/{bin,etc,var}
/bin/cp /root/redis-stable/src/{redis-benchmark,redis-check-aof,redis-check-rdb,redis-cli,redis-sentinel,redis-server} /usr/local/redis/bin/
/bin/cp /root/redis-stable/redis.conf /usr/local/redis/etc/
cd /root/redis-stable/src
id -u redis >/dev/null 2>&1
[ $? -ne 0 ] && useradd -M -s /sbin/nologin redis
chown -R redis:redis /usr/local/redis/{var,etc}
#
if [ -e /bin/systemctl ]; then
cat > /lib/systemd/system/redis-server.service << "EOF"
[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
Type=forking
PIDFile=/var/run/redis/redis.pid
User=redis
Group=redis
Environment=statedir=/var/run/redis
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p ${statedir}
ExecStartPre=/bin/chown -R redis:redis ${statedir}
ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
ExecStop=/bin/kill -s TERM $MAINPID
Restart=always
LimitNOFILE=1000000
LimitNPROC=1000000
LimitCORE=1000000
[Install]
WantedBy=multi-user.target
EOF
systemctl enable redis-server
#确认Redis 6.0.5版本
[www@zhangfangzhou_cn ~]# redis-server -v
Redis server v=6.0.5 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=1987ac006866aa00
CentOS7.7安装 devtoolset-8(使用高版本gcc (GCC) 8.3.1 20190311)编译安装aria2-1.35.0
CentOS6安装devtoolset(使用高版本gcc)GCC 4.8 GCC 4.9 GCC 5.2
具体详细报错
In file included from server.c:30:0:
server.h:1045: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:437: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:437: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:437: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:437: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 &&
^
In file included from networking.c:30:0:
server.h:1045:5: error: expected specifier-qualifier-list before ‘_Atomic’
_Atomic unsigned int lruclock; /* Clock for LRU eviction */
^
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_size*100/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:437: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:437: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:437: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:437: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:2060:15: error: ‘struct redisServer’ has no member named ‘tracking_clients’
if (server.tracking_clients) trackingLimitUsedSlots();
^
server.c:2070:15: error: ‘struct redisServer’ has no member named ‘rdb_bgsave_scheduled’
server.rdb_bgsave_scheduled &&
^
server.c:2071:16: error: ‘struct redisServer’ has no member named ‘unixtime’
(server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY ||
^
server.c:2071:32: error: ‘struct redisServer’ has no member named ‘lastbgsave_try’
(server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY ||
^
server.c:2072:16: error: ‘struct redisServer’ has no member named ‘lastbgsave_status’
server.lastbgsave_status == C_OK))
^
server.c:2076:37: error: ‘struct redisServer’ has no member named ‘rdb_filename’
if (rdbSaveBackground(server.rdb_filename,rsiptr) == C_OK)
^
server.c:2077:19: error: ‘struct redisServer’ has no member named ‘rdb_bgsave_scheduled’
server.rdb_bgsave_scheduled = 0;
^
server.c:2086:11: error: ‘struct redisServer’ has no member named ‘cronloops’
server.cronloops++;
^
server.c: In function ‘beforeSleep’:
server.c:2120:15: error: ‘struct redisServer’ has no member named ‘events_processed_while_blocked’
server.events_processed_while_blocked += processed;
^
server.c:2140:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) clusterBeforeSleep();
^
server.c:2144:15: error: ‘struct redisServer’ has no member named ‘active_expire_enabled’
if (server.active_expire_enabled && server.masterhost == NULL)
^
server.c:2144: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:2149: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:2157: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:2165:15: error: ‘struct redisServer’ has no member named ‘get_ack_from_slaves’
if (server.get_ack_from_slaves) {
^
server.c:2171:37: error: ‘struct redisServer’ has no member named ‘slaves’
replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3);
^
server.c:2171:52: error: ‘struct redisServer’ has no member named ‘slaveseldb’
replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3);
^
server.c:2175: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:2329:29: error: ‘struct redisServer’ has no member named ‘runid’
getRandomHexChars(server.runid,CONFIG_RUN_ID_SIZE);
^
server.c:2330:11: error: ‘struct redisServer’ has no member named ‘runid’
server.runid[CONFIG_RUN_ID_SIZE] = '\0';
^
server.c:2337:11: error: ‘struct redisServer’ has no member named ‘timezone’
server.timezone = getTimeZone(); /* Initialized by tzset(). */
^
server.c:2340:11: error: ‘struct redisServer’ has no member named ‘arch_bits’
server.arch_bits = (sizeof(long) == 8) ? 64 : 32;
^
server.c:2341:11: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
server.bindaddr_count = 0;
^
server.c:2342:11: error: ‘struct redisServer’ has no member named ‘unixsocketperm’
server.unixsocketperm = CONFIG_DEFAULT_UNIX_SOCKET_PERM;
^
server.c:2343:11: error: ‘struct redisServer’ has no member named ‘ipfd_count’
server.ipfd_count = 0;
^
server.c:2344:11: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
server.tlsfd_count = 0;
^
server.c:2345:11: error: ‘struct redisServer’ has no member named ‘sofd’
server.sofd = -1;
^
server.c:2346:11: error: ‘struct redisServer’ has no member named ‘active_expire_enabled’
server.active_expire_enabled = 1;
^
server.c:2347:11: error: ‘struct redisServer’ has no member named ‘client_max_querybuf_len’
server.client_max_querybuf_len = PROTO_MAX_QUERYBUF_LEN;
^
server.c:2348:11: error: ‘struct redisServer’ has no member named ‘saveparams’
server.saveparams = NULL;
^
server.c:2349:11: error: ‘struct redisServer’ has no member named ‘loading’
server.loading = 0;
^
server.c:2350:11: error: ‘struct redisServer’ has no member named ‘logfile’
server.logfile = zstrdup(CONFIG_DEFAULT_LOGFILE);
^
server.c:2351:11: error: ‘struct redisServer’ has no member named ‘aof_state’
server.aof_state = AOF_OFF;
^
server.c:2352:11: error: ‘struct redisServer’ has no member named ‘aof_rewrite_base_size’
server.aof_rewrite_base_size = 0;
^
server.c:2353:11: error: ‘struct redisServer’ has no member named ‘aof_rewrite_scheduled’
server.aof_rewrite_scheduled = 0;
^
server.c:2354:11: error: ‘struct redisServer’ has no member named ‘aof_flush_sleep’
server.aof_flush_sleep = 0;
^
server.c:2355:11: error: ‘struct redisServer’ has no member named ‘aof_last_fsync’
server.aof_last_fsync = time(NULL);
^
server.c:2356:11: error: ‘struct redisServer’ has no member named ‘aof_rewrite_time_last’
server.aof_rewrite_time_last = -1;
^
server.c:2357:11: error: ‘struct redisServer’ has no member named ‘aof_rewrite_time_start’
server.aof_rewrite_time_start = -1;
^
server.c:2358:11: error: ‘struct redisServer’ has no member named ‘aof_lastbgrewrite_status’
server.aof_lastbgrewrite_status = C_OK;
^
server.c:2359:11: error: ‘struct redisServer’ has no member named ‘aof_delayed_fsync’
server.aof_delayed_fsync = 0;
^
server.c:2360:11: error: ‘struct redisServer’ has no member named ‘aof_fd’
server.aof_fd = -1;
^
server.c:2361: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:2362:11: error: ‘struct redisServer’ has no member named ‘aof_flush_postponed_start’
server.aof_flush_postponed_start = 0;
^
server.c:2363:11: error: ‘struct redisServer’ has no member named ‘pidfile’
server.pidfile = NULL;
^
server.c:2364:11: error: ‘struct redisServer’ has no member named ‘active_defrag_running’
server.active_defrag_running = 0;
^
server.c:2365:11: error: ‘struct redisServer’ has no member named ‘notify_keyspace_events’
server.notify_keyspace_events = 0;
^
server.c:2366:11: error: ‘struct redisServer’ has no member named ‘blocked_clients’
server.blocked_clients = 0;
^
server.c:2367:18: error: ‘struct redisServer’ has no member named ‘blocked_clients_by_type’
memset(server.blocked_clients_by_type,0,
^
server.c:2368:25: error: ‘struct redisServer’ has no member named ‘blocked_clients_by_type’
sizeof(server.blocked_clients_by_type));
^
server.c:2369:11: error: ‘struct redisServer’ has no member named ‘shutdown_asap’
server.shutdown_asap = 0;
^
server.c:2370:11: error: ‘struct redisServer’ has no member named ‘cluster_configfile’
server.cluster_configfile = zstrdup(CONFIG_DEFAULT_CLUSTER_CONFIG_FILE);
^
server.c:2371:11: error: ‘struct redisServer’ has no member named ‘cluster_module_flags’
server.cluster_module_flags = CLUSTER_MODULE_FLAG_NONE;
^
server.c:2372:11: error: ‘struct redisServer’ has no member named ‘migrate_cached_sockets’
server.migrate_cached_sockets = dictCreate(&migrateCacheDictType,NULL);
^
server.c:2373:11: error: ‘struct redisServer’ has no member named ‘next_client_id’
server.next_client_id = 1; /* Client IDs, start from 1 .*/
^
server.c:2374:11: error: ‘struct redisServer’ has no member named ‘loading_process_events_interval_bytes’
server.loading_process_events_interval_bytes = (1024*1024*2);
^
networking.c: In function ‘linkClient’:
networking.c:79:27: error: ‘struct redisServer’ has no member named ‘clients’
listAddNodeTail(server.clients,c);
^
In file included from server.h:63:0,
from networking.c:30:
networking.c:83:42: error: ‘struct redisServer’ has no member named ‘clients’
c->client_list_node = listLast(server.clients);
^
adlist.h:59:23: note: in definition of macro ‘listLast’
#define listLast(l) ((l)->tail)
^
networking.c:85:21: error: ‘struct redisServer’ has no member named ‘clients_index’
raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL);
^
networking.c: In function ‘createClient’:
networking.c:98:19: error: ‘struct redisServer’ has no member named ‘tcpkeepalive’
if (server.tcpkeepalive)
^
networking.c:99:38: error: ‘struct redisServer’ has no member named ‘tcpkeepalive’
connKeepAlive(conn,server.tcpkeepalive);
^
networking.c:105:34: error: ‘struct redisServer’ has no member named ‘next_client_id’
uint64_t client_id = ++server.next_client_id;
^
networking.c:124:43: error: ‘struct redisServer’ has no member named ‘unixtime’
c->ctime = c->lastinteraction = server.unixtime;
^
server.c:2376:11: error: ‘struct redisServer’ has no member named ‘lruclock’
server.lruclock = getLRUClock();
^
server.c:2384:11: error: ‘struct redisServer’ has no member named ‘masterauth’
server.masterauth = NULL;
^
server.c:2385:11: error: ‘struct redisServer’ has no member named ‘masterhost’
server.masterhost = NULL;
^
networking.c: In function ‘clientInstallWriteHandler’:
networking.c:194:31: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listAddNodeHead(server.clients_pending_write,c);
^
server.c:2386:11: error: ‘struct redisServer’ has no member named ‘masterport’
server.masterport = 6379;
^
server.c:2387:11: error: ‘struct redisServer’ has no member named ‘master’
server.master = NULL;
^
server.c:2388:11: error: ‘struct redisServer’ has no member named ‘cached_master’
server.cached_master = NULL;
^
server.c:2389:11: error: ‘struct redisServer’ has no member named ‘master_initial_offset’
server.master_initial_offset = -1;
^
server.c:2390:11: error: ‘struct redisServer’ has no member named ‘repl_state’
server.repl_state = REPL_STATE_NONE;
^
networking.c: In function ‘addReplyErrorLength’:
networking.c:396:50: error: ‘struct redisServer’ has no member named ‘repl_backlog’
if (ctype == CLIENT_TYPE_MASTER && server.repl_backlog &&
^
networking.c:397:19: error: ‘struct redisServer’ has no member named ‘repl_backlog_histlen’
server.repl_backlog_histlen > 0)
^
networking.c:401:15: error: ‘struct redisServer’ has no member named ‘stat_unexpected_error_replies’
server.stat_unexpected_error_replies++;
^
server.c:2391:11: error: ‘struct redisServer’ has no member named ‘repl_transfer_tmpfile’
server.repl_transfer_tmpfile = NULL;
^
server.c:2392:11: error: ‘struct redisServer’ has no member named ‘repl_transfer_fd’
server.repl_transfer_fd = -1;
^
server.c:2393:11: error: ‘struct redisServer’ has no member named ‘repl_transfer_s’
server.repl_transfer_s = NULL;
^
server.c:2394:11: error: ‘struct redisServer’ has no member named ‘repl_syncio_timeout’
server.repl_syncio_timeout = CONFIG_REPL_SYNCIO_TIMEOUT;
^
server.c:2395: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:2396:11: error: ‘struct redisServer’ has no member named ‘master_repl_offset’
server.master_repl_offset = 0;
^
server.c:2399:11: error: ‘struct redisServer’ has no member named ‘repl_backlog’
server.repl_backlog = NULL;
^
server.c:2400:11: error: ‘struct redisServer’ has no member named ‘repl_backlog_histlen’
server.repl_backlog_histlen = 0;
^
server.c:2401:11: error: ‘struct redisServer’ has no member named ‘repl_backlog_idx’
server.repl_backlog_idx = 0;
^
server.c:2402:11: error: ‘struct redisServer’ has no member named ‘repl_backlog_off’
server.repl_backlog_off = 0;
^
server.c:2403:11: error: ‘struct redisServer’ has no member named ‘repl_no_slaves_since’
server.repl_no_slaves_since = time(NULL);
^
server.c:2407:15: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
server.client_obuf_limits[j] = clientBufferLimitsDefaults[j];
^
server.c:2421:11: error: ‘struct redisServer’ has no member named ‘delCommand’
server.delCommand = lookupCommandByCString("del");
^
server.c:2422:11: error: ‘struct redisServer’ has no member named ‘multiCommand’
server.multiCommand = lookupCommandByCString("multi");
^
networking.c: In function ‘clientAcceptHandler’:
networking.c:845:15: error: ‘struct redisServer’ has no member named ‘protected_mode’
if (server.protected_mode &&
^
networking.c:846:15: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
server.bindaddr_count == 0 &&
^
networking.c:878:19: error: ‘struct redisServer’ has no member named ‘stat_rejected_conn’
server.stat_rejected_conn++;
^
networking.c:884:11: error: ‘struct redisServer’ has no member named ‘stat_numconnections’
server.stat_numconnections++;
^
server.c:2423:11: error: ‘struct redisServer’ has no member named ‘lpushCommand’
server.lpushCommand = lookupCommandByCString("lpush");
^
server.c:2424:11: error: ‘struct redisServer’ has no member named ‘lpopCommand’
server.lpopCommand = lookupCommandByCString("lpop");
^
server.c:2425:11: error: ‘struct redisServer’ has no member named ‘rpopCommand’
server.rpopCommand = lookupCommandByCString("rpop");
^
server.c:2426:11: error: ‘struct redisServer’ has no member named ‘zpopminCommand’
server.zpopminCommand = lookupCommandByCString("zpopmin");
^
server.c:2427:11: error: ‘struct redisServer’ has no member named ‘zpopmaxCommand’
server.zpopmaxCommand = lookupCommandByCString("zpopmax");
^
server.c:2428:11: error: ‘struct redisServer’ has no member named ‘sremCommand’
server.sremCommand = lookupCommandByCString("srem");
^
server.c:2429:11: error: ‘struct redisServer’ has no member named ‘execCommand’
server.execCommand = lookupCommandByCString("exec");
^
server.c:2430:11: error: ‘struct redisServer’ has no member named ‘expireCommand’
server.expireCommand = lookupCommandByCString("expire");
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘acceptCommonHandler’:
networking.c:899:26: error: ‘struct redisServer’ has no member named ‘clients’
if (listLength(server.clients) >= server.maxclients) {
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:899:45: error: ‘struct redisServer’ has no member named ‘maxclients’
if (listLength(server.clients) >= server.maxclients) {
^
networking.c:909:15: error: ‘struct redisServer’ has no member named ‘stat_rejected_conn’
server.stat_rejected_conn++;
^
networking.c: In function ‘acceptTcpHandler’:
networking.c:955:35: error: ‘struct redisServer’ has no member named ‘neterr’
cfd = anetTcpAccept(server.neterr, fd, cip, sizeof(cip), &cport);
^
networking.c:959:62: error: ‘struct redisServer’ has no member named ‘neterr’
"Accepting client connection: %s", server.neterr);
^
networking.c: In function ‘acceptTLSHandler’:
networking.c:975:35: error: ‘struct redisServer’ has no member named ‘neterr’
cfd = anetTcpAccept(server.neterr, fd, cip, sizeof(cip), &cport);
^
networking.c:979:62: error: ‘struct redisServer’ has no member named ‘neterr’
"Accepting client connection: %s", server.neterr);
^
networking.c:983:62: error: ‘struct redisServer’ has no member named ‘tls_auth_clients’
acceptCommonHandler(connCreateAcceptedTLS(cfd, server.tls_auth_clients),0,cip);
^
networking.c: In function ‘acceptUnixHandler’:
networking.c:994:36: error: ‘struct redisServer’ has no member named ‘neterr’
cfd = anetUnixAccept(server.neterr, fd);
^
server.c:2431:11: error: ‘struct redisServer’ has no member named ‘pexpireCommand’
server.pexpireCommand = lookupCommandByCString("pexpire");
^
server.c:2432:11: error: ‘struct redisServer’ has no member named ‘xclaimCommand’
server.xclaimCommand = lookupCommandByCString("xclaim");
^
server.c:2433:11: error: ‘struct redisServer’ has no member named ‘xgroupCommand’
server.xgroupCommand = lookupCommandByCString("xgroup");
^
server.c:2434:11: error: ‘struct redisServer’ has no member named ‘rpoplpushCommand’
server.rpoplpushCommand = lookupCommandByCString("rpoplpush");
^
server.c:2437:11: error: ‘struct redisServer’ has no member named ‘assert_failed’
server.assert_failed = "<no assertion failed>";
^
server.c:2438:11: error: ‘struct redisServer’ has no member named ‘assert_file’
server.assert_file = "<no file>";
^
networking.c:998:62: error: ‘struct redisServer’ has no member named ‘neterr’
"Accepting client connection: %s", server.neterr);
^
networking.c:1001:65: error: ‘struct redisServer’ has no member named ‘unixsocket’
serverLog(LL_VERBOSE,"Accepted connection to %s", server.unixsocket);
^
networking.c: In function ‘disconnectSlaves’:
networking.c:1020:22: error: ‘struct redisServer’ has no member named ‘slaves’
listRewind(server.slaves,&li);
^
networking.c: In function ‘unlinkClient’:
networking.c:1033:15: error: ‘struct redisServer’ has no member named ‘current_client’
if (server.current_client == c) server.current_client = NULL;
^
networking.c:1033:43: error: ‘struct redisServer’ has no member named ‘current_client’
if (server.current_client == c) server.current_client = NULL;
^
networking.c:1042:29: error: ‘struct redisServer’ has no member named ‘clients_index’
raxRemove(server.clients_index,(unsigned char*)&id,sizeof(id),NULL);
^
networking.c:1043:31: error: ‘struct redisServer’ has no member named ‘clients’
listDelNode(server.clients,c->client_list_node);
^
networking.c:1051:19: error: ‘struct redisServer’ has no member named ‘rdb_pipe_conns’
server.rdb_pipe_conns)
^
networking.c:1054:33: error: ‘struct redisServer’ has no member named ‘rdb_pipe_numconns’
for (i=0; i < server.rdb_pipe_numconns; i++) {
^
networking.c:1055:27: error: ‘struct redisServer’ has no member named ‘rdb_pipe_conns’
if (server.rdb_pipe_conns[i] == c->conn) {
^
networking.c:1057:27: error: ‘struct redisServer’ has no member named ‘rdb_pipe_conns’
server.rdb_pipe_conns[i] = NULL;
^
networking.c:1068:34: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
ln = listSearchKey(server.clients_pending_write,c);
^
networking.c:1070:27: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listDelNode(server.clients_pending_write,ln);
^
networking.c:1076:34: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
ln = listSearchKey(server.clients_pending_read,c);
^
networking.c:1078:27: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
listDelNode(server.clients_pending_read,ln);
^
networking.c:1085:34: error: ‘struct redisServer’ has no member named ‘unblocked_clients’
ln = listSearchKey(server.unblocked_clients,c);
^
networking.c:1087:27: error: ‘struct redisServer’ has no member named ‘unblocked_clients’
listDelNode(server.unblocked_clients,ln);
^
networking.c: In function ‘freeClient’:
networking.c:1120:34: error: ‘struct redisServer’ has no member named ‘clients_to_close’
ln = listSearchKey(server.clients_to_close,c);
^
server.c:2439:11: error: ‘struct redisServer’ has no member named ‘assert_line’
server.assert_line = 0;
^
server.c:2440:11: error: ‘struct redisServer’ has no member named ‘bug_report_start’
server.bug_report_start = 0;
^
server.c:2441:11: error: ‘struct redisServer’ has no member named ‘watchdog_period’
server.watchdog_period = 0;
^
server.c:2447: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:2500:32: error: ‘struct redisServer’ has no member named ‘maxclients’
for (j = 3; j < (int)server.maxclients + 1024; j++) {
^
server.c: In function ‘adjustOpenFilesLimit’:
networking.c:1122:27: error: ‘struct redisServer’ has no member named ‘clients_to_close’
listDelNode(server.clients_to_close,ln);
^
networking.c:1130:15: error: ‘struct redisServer’ has no member named ‘master’
if (server.master && c->flags & CLIENT_MASTER) {
^
networking.c:1180:55: error: ‘struct redisServer’ has no member named ‘monitors’
list *l = (c->flags & CLIENT_MONITOR) ? server.monitors : server.slaves;
^
networking.c:1180:73: error: ‘struct redisServer’ has no member named ‘slaves’
list *l = (c->flags & CLIENT_MONITOR) ? server.monitors : server.slaves;
^
In file included from server.h:63:0,
from networking.c:30:
networking.c:1187:71: error: ‘struct redisServer’ has no member named ‘slaves’
if (getClientType(c) == CLIENT_TYPE_SLAVE && listLength(server.slaves) == 0)
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:1188:19: error: ‘struct redisServer’ has no member named ‘repl_no_slaves_since’
server.repl_no_slaves_since = server.unixtime;
^
networking.c:1188:49: error: ‘struct redisServer’ has no member named ‘unixtime’
server.repl_no_slaves_since = server.unixtime;
^
networking.c:1203:11: error: ‘struct redisServer’ has no member named ‘stat_clients_type_memory’
server.stat_clients_type_memory[c->client_cron_last_memory_type] -=
^
networking.c: In function ‘freeClientAsync’:
networking.c:1227:15: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (server.io_threads_num == 1) {
^
networking.c:1229:31: error: ‘struct redisServer’ has no member named ‘clients_to_close’
listAddNodeTail(server.clients_to_close,c);
^
server.c:2527:29: error: ‘struct redisServer’ has no member named ‘maxclients’
rlim_t maxfiles = server.maxclients+CONFIG_MIN_RESERVED_FDS;
^
server.c:2533:15: error: ‘struct redisServer’ has no member named ‘maxclients’
server.maxclients = 1024-CONFIG_MIN_RESERVED_FDS;
^
server.c:2565:53: error: ‘struct redisServer’ has no member named ‘maxclients’
unsigned int old_maxclients = server.maxclients;
^
server.c:2566:23: error: ‘struct redisServer’ has no member named ‘maxclients’
server.maxclients = bestlimit-CONFIG_MIN_RESERVED_FDS;
^
server.c:2590:59: error: ‘struct redisServer’ has no member named ‘maxclients’
(unsigned long long) bestlimit, server.maxclients);
^
networking.c:1234:27: error: ‘struct redisServer’ has no member named ‘clients_to_close’
listAddNodeTail(server.clients_to_close,c);
^
networking.c: In function ‘freeClientsInAsyncFreeQueue’:
networking.c:1245:22: error: ‘struct redisServer’ has no member named ‘clients_to_close’
listRewind(server.clients_to_close,&li);
^
networking.c:1253:27: error: ‘struct redisServer’ has no member named ‘clients_to_close’
listDelNode(server.clients_to_close,ln);
^
networking.c: In function ‘lookupClientByID’:
networking.c:1264:31: error: ‘struct redisServer’ has no member named ‘clients_index’
client *c = raxFind(server.clients_index,(unsigned char*)&id,sizeof(id));
^
networking.c: In function ‘writeToClient’:
networking.c:1333:20: error: ‘struct redisServer’ has no member named ‘maxmemory’
(server.maxmemory == 0 ||
^
networking.c:1334:44: error: ‘struct redisServer’ has no member named ‘maxmemory’
zmalloc_used_memory() < server.maxmemory) &&
^
networking.c:1337:11: error: ‘struct redisServer’ has no member named ‘stat_net_output_bytes’
server.stat_net_output_bytes += totwritten;
^
server.c: In function ‘checkTcpBacklogSettings’:
server.c:2610:48: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
if (somaxconn > 0 && somaxconn < server.tcp_backlog) {
^
server.c:2611:171: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
serverLog(LL_WARNING,"WARNING: The TCP backlog setting of %d cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of %d.", server.tcp_backlog, somaxconn);
^
server.c: In function ‘listenToPort’:
server.c:2641:15: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
if (server.bindaddr_count == 0) server.bindaddr[0] = NULL;
^
server.c:2641:43: error: ‘struct redisServer’ has no member named ‘bindaddr’
if (server.bindaddr_count == 0) server.bindaddr[0] = NULL;
^
server.c:2642:27: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
for (j = 0; j < server.bindaddr_count || j == 0; j++) {
^
server.c:2643:19: error: ‘struct redisServer’ has no member named ‘bindaddr’
if (server.bindaddr[j] == NULL) {
^
server.c:2647:48: error: ‘struct redisServer’ has no member named ‘neterr’
fds[*count] = anetTcp6Server(server.neterr,port,NULL,
^
networking.c:1353:69: error: ‘struct redisServer’ has no member named ‘unixtime’
if (!(c->flags & CLIENT_MASTER)) c->lastinteraction = server.unixtime;
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘handleClientsWithPendingWrites’:
networking.c:1385:38: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
int processed = listLength(server.clients_pending_write);
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:1387:22: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listRewind(server.clients_pending_write,&li);
^
networking.c:1391:27: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listDelNode(server.clients_pending_write,ln);
^
networking.c:1409:23: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state == AOF_ON &&
^
server.c:2648:23: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
server.tcp_backlog);
^
server.c:2659:51: error: ‘struct redisServer’ has no member named ‘neterr’
fds[*count] = anetTcpServer(server.neterr,port,NULL,
^
server.c:2660:27: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
server.tcp_backlog);
^
In file included from /usr/include/string.h:633:0,
from server.h:40,
from server.c:30:
server.c:2673:33: error: ‘struct redisServer’ has no member named ‘bindaddr’
} else if (strchr(server.bindaddr[j],':')) {
^
server.c:2673:33: error: ‘struct redisServer’ has no member named ‘bindaddr’
} else if (strchr(server.bindaddr[j],':')) {
^
networking.c:1410:23: error: ‘struct redisServer’ has no member named ‘aof_fsync’
server.aof_fsync == AOF_FSYNC_ALWAYS)
^
networking.c: In function ‘processInlineBuffer’:
networking.c:1524:34: error: ‘struct redisServer’ has no member named ‘unixtime’
c->repl_ack_time = server.unixtime;
^
networking.c: In function ‘setProtocolError’:
networking.c:1562:15: error: ‘struct redisServer’ has no member named ‘verbosity’
if (server.verbosity <= LL_VERBOSE || c->flags & CLIENT_MASTER) {
^
networking.c: In function ‘processMultibulkBuffer’:
networking.c:1673:45: error: ‘struct redisServer’ has no member named ‘proto_max_bulk_len’
if (!ok || ll < 0 || ll > server.proto_max_bulk_len) {
^
server.c:2673:33: error: ‘struct redisServer’ has no member named ‘bindaddr’
} else if (strchr(server.bindaddr[j],':')) {
^
server.c:2675:48: error: ‘struct redisServer’ has no member named ‘neterr’
fds[*count] = anetTcp6Server(server.neterr,port,server.bindaddr[j],
^
server.c:2675:67: error: ‘struct redisServer’ has no member named ‘bindaddr’
fds[*count] = anetTcp6Server(server.neterr,port,server.bindaddr[j],
^
server.c:2676:23: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
server.tcp_backlog);
^
server.c:2679:47: error: ‘struct redisServer’ has no member named ‘neterr’
fds[*count] = anetTcpServer(server.neterr,port,server.bindaddr[j],
^
server.c:2679:66: error: ‘struct redisServer’ has no member named ‘bindaddr’
fds[*count] = anetTcpServer(server.neterr,port,server.bindaddr[j],
^
server.c:2680:23: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
server.tcp_backlog);
^
server.c:2685:23: error: ‘struct redisServer’ has no member named ‘bindaddr’
server.bindaddr[j] ? server.bindaddr[j] : "*",
^
networking.c: In function ‘commandProcessed’:
networking.c:1767:57: error: ‘struct redisServer’ has no member named ‘slaves’
replicationFeedSlavesFromMasterStream(server.slaves,
^
networking.c: In function ‘processCommandAndResetClient’:
networking.c:1784:11: error: ‘struct redisServer’ has no member named ‘current_client’
server.current_client = c;
^
networking.c:1788:15: error: ‘struct redisServer’ has no member named ‘current_client’
if (server.current_client == NULL) deadclient = 1;
^
networking.c:1789:11: error: ‘struct redisServer’ has no member named ‘current_client’
server.current_client = NULL;
^
networking.c: In function ‘processInputBuffer’:
networking.c:1817:19: error: ‘struct redisServer’ has no member named ‘lua_timedout’
if (server.lua_timedout && c->flags & CLIENT_MASTER) break;
^
server.c:2685:44: error: ‘struct redisServer’ has no member named ‘bindaddr’
server.bindaddr[j] ? server.bindaddr[j] : "*",
^
server.c:2686:29: error: ‘struct redisServer’ has no member named ‘neterr’
port, server.neterr);
^
server.c: In function ‘resetServerStats’:
server.c:2705:11: error: ‘struct redisServer’ has no member named ‘stat_numcommands’
server.stat_numcommands = 0;
^
server.c:2706:11: error: ‘struct redisServer’ has no member named ‘stat_numconnections’
server.stat_numconnections = 0;
^
server.c:2707:11: error: ‘struct redisServer’ has no member named ‘stat_expiredkeys’
server.stat_expiredkeys = 0;
^
networking.c:1839:23: error: ‘struct redisServer’ has no member named ‘gopher_enabled’
if (server.gopher_enabled &&
^
networking.c: In function ‘readQueryFromClient’:
networking.c:1934:32: error: ‘struct redisServer’ has no member named ‘unixtime’
c->lastinteraction = server.unixtime;
^
networking.c:1936:11: error: ‘struct redisServer’ has no member named ‘stat_net_input_bytes’
server.stat_net_input_bytes += nread;
^
networking.c:1937:37: error: ‘struct redisServer’ has no member named ‘client_max_querybuf_len’
if (sdslen(c->querybuf) > server.client_max_querybuf_len) {
^
networking.c: In function ‘getClientsMaxBuffers’:
networking.c:1960:22: error: ‘struct redisServer’ has no member named ‘clients’
listRewind(server.clients,&li);
^
networking.c: In function ‘genClientPeerId’:
server.c:2708:11: error: ‘struct redisServer’ has no member named ‘stat_expired_stale_perc’
server.stat_expired_stale_perc = 0;
^
server.c:2709:11: error: ‘struct redisServer’ has no member named ‘stat_expired_time_cap_reached_count’
server.stat_expired_time_cap_reached_count = 0;
^
server.c:2710:11: error: ‘struct redisServer’ has no member named ‘stat_expire_cycle_time_used’
server.stat_expire_cycle_time_used = 0;
^
server.c:2711:11: error: ‘struct redisServer’ has no member named ‘stat_evictedkeys’
server.stat_evictedkeys = 0;
^
server.c:2712:11: error: ‘struct redisServer’ has no member named ‘stat_keyspace_misses’
server.stat_keyspace_misses = 0;
^
server.c:2713:11: error: ‘struct redisServer’ has no member named ‘stat_keyspace_hits’
server.stat_keyspace_hits = 0;
^
server.c:2714:11: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_hits’
server.stat_active_defrag_hits = 0;
^
networking.c:1986:49: error: ‘struct redisServer’ has no member named ‘unixsocket’
snprintf(peerid,peerid_len,"%s:0",server.unixsocket);
^
networking.c: In function ‘catClientInfoString’:
networking.c:2046:27: error: ‘struct redisServer’ has no member named ‘unixtime’
(long long)(server.unixtime - client->ctime),
^
networking.c:2047:27: error: ‘struct redisServer’ has no member named ‘unixtime’
(long long)(server.unixtime - client->lastinteraction),
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘getAllClientsInfoString’:
networking.c:2067:55: error: ‘struct redisServer’ has no member named ‘clients’
sds o = sdsnewlen(SDS_NOINIT,200*listLength(server.clients));
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:2069:22: error: ‘struct redisServer’ has no member named ‘clients’
listRewind(server.clients,&li);
^
server.c:2715:11: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_misses’
server.stat_active_defrag_misses = 0;
^
server.c:2716:11: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_key_hits’
server.stat_active_defrag_key_hits = 0;
^
server.c:2717:11: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_key_misses’
server.stat_active_defrag_key_misses = 0;
^
server.c:2718:11: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_scanned’
server.stat_active_defrag_scanned = 0;
^
server.c:2719:11: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
server.stat_fork_time = 0;
^
server.c:2720:11: error: ‘struct redisServer’ has no member named ‘stat_fork_rate’
server.stat_fork_rate = 0;
^
server.c:2721:11: error: ‘struct redisServer’ has no member named ‘stat_rejected_conn’
server.stat_rejected_conn = 0;
^
networking.c: In function ‘clientCommand’:
networking.c:2241:26: error: ‘struct redisServer’ has no member named ‘clients’
listRewind(server.clients,&li);
^
server.c:2722:11: error: ‘struct redisServer’ has no member named ‘stat_sync_full’
server.stat_sync_full = 0;
^
server.c:2723:11: error: ‘struct redisServer’ has no member named ‘stat_sync_partial_ok’
server.stat_sync_partial_ok = 0;
^
server.c:2724:11: error: ‘struct redisServer’ has no member named ‘stat_sync_partial_err’
server.stat_sync_partial_err = 0;
^
server.c:2726:15: error: ‘struct redisServer’ has no member named ‘inst_metric’
server.inst_metric[j].idx = 0;
^
server.c:2727:15: error: ‘struct redisServer’ has no member named ‘inst_metric’
server.inst_metric[j].last_sample_time = mstime();
^
server.c:2728:15: error: ‘struct redisServer’ has no member named ‘inst_metric’
server.inst_metric[j].last_sample_count = 0;
^
server.c:2729:22: error: ‘struct redisServer’ has no member named ‘inst_metric’
memset(server.inst_metric[j].samples,0,
^
server.c:2730:26: error: ‘struct redisServer’ has no member named ‘inst_metric’
sizeof(server.inst_metric[j].samples));
^
networking.c: In function ‘helloCommand’:
networking.c:2521:33: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
addReplyMapLen(c,6 + !server.sentinel_mode);
^
networking.c:2536:15: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
if (server.sentinel_mode) addReplyBulkCString(c,"sentinel");
^
networking.c:2537:20: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
else if (server.cluster_enabled) addReplyBulkCString(c,"cluster");
^
networking.c:2540:16: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
if (!server.sentinel_mode) {
^
server.c:2732:11: error: ‘struct redisServer’ has no member named ‘stat_net_input_bytes’
server.stat_net_input_bytes = 0;
^
server.c:2733:11: error: ‘struct redisServer’ has no member named ‘stat_net_output_bytes’
server.stat_net_output_bytes = 0;
^
server.c:2734:11: error: ‘struct redisServer’ has no member named ‘stat_unexpected_error_replies’
server.stat_unexpected_error_replies = 0;
^
server.c:2735:11: error: ‘struct redisServer’ has no member named ‘aof_delayed_fsync’
server.aof_delayed_fsync = 0;
^
server.c: In function ‘initServer’:
server.c:2745:15: error: ‘struct redisServer’ has no member named ‘syslog_enabled’
if (server.syslog_enabled) {
^
server.c:2746:23: error: ‘struct redisServer’ has no member named ‘syslog_ident’
openlog(server.syslog_ident, LOG_PID | LOG_NDELAY | LOG_NOWAIT,
^
server.c:2747:19: error: ‘struct redisServer’ has no member named ‘syslog_facility’
server.syslog_facility);
^
networking.c:2542:37: error: ‘struct redisServer’ has no member named ‘masterhost’
addReplyBulkCString(c,server.masterhost ? "replica" : "master");
^
networking.c: In function ‘checkClientOutputBufferLimits’:
networking.c:2704:15: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
if (server.client_obuf_limits[class].hard_limit_bytes &&
^
networking.c:2705:27: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
used_mem >= server.client_obuf_limits[class].hard_limit_bytes)
^
networking.c:2707:15: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
if (server.client_obuf_limits[class].soft_limit_bytes &&
^
server.c:2751:11: error: ‘struct redisServer’ has no member named ‘aof_state’
server.aof_state = server.aof_enabled ? AOF_ON : AOF_OFF;
^
server.c:2751:30: error: ‘struct redisServer’ has no member named ‘aof_enabled’
server.aof_state = server.aof_enabled ? AOF_ON : AOF_OFF;
^
server.c:2754:11: error: ‘struct redisServer’ has no member named ‘current_client’
server.current_client = NULL;
^
server.c:2755:11: error: ‘struct redisServer’ has no member named ‘fixed_time_expire’
server.fixed_time_expire = 0;
^
server.c:2756:11: error: ‘struct redisServer’ has no member named ‘clients’
server.clients = listCreate();
^
server.c:2757:11: error: ‘struct redisServer’ has no member named ‘clients_index’
server.clients_index = raxNew();
^
server.c:2758:11: error: ‘struct redisServer’ has no member named ‘clients_to_close’
server.clients_to_close = listCreate();
^
server.c:2759:11: error: ‘struct redisServer’ has no member named ‘slaves’
server.slaves = listCreate();
^
networking.c:2708:27: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
used_mem >= server.client_obuf_limits[class].soft_limit_bytes)
^
networking.c:2715:53: error: ‘struct redisServer’ has no member named ‘unixtime’
c->obuf_soft_limit_reached_time = server.unixtime;
^
networking.c:2718:36: error: ‘struct redisServer’ has no member named ‘unixtime’
time_t elapsed = server.unixtime - c->obuf_soft_limit_reached_time;
^
networking.c:2721:23: error: ‘struct redisServer’ has no member named ‘client_obuf_limits’
server.client_obuf_limits[class].soft_limit_seconds) {
^
networking.c: In function ‘flushSlavesOutputBuffers’:
networking.c:2761:22: error: ‘struct redisServer’ has no member named ‘slaves’
listRewind(server.slaves,&li);
^
networking.c: In function ‘pauseClients’:
networking.c:2809:16: error: ‘struct redisServer’ has no member named ‘clients_paused’
if (!server.clients_paused || end > server.clients_pause_end_time)
^
server.c:2760:11: error: ‘struct redisServer’ has no member named ‘monitors’
server.monitors = listCreate();
^
server.c:2761:11: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
server.clients_pending_write = listCreate();
^
server.c:2762:11: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
server.clients_pending_read = listCreate();
^
server.c:2763:11: error: ‘struct redisServer’ has no member named ‘clients_timeout_table’
server.clients_timeout_table = raxNew();
^
server.c:2764:11: error: ‘struct redisServer’ has no member named ‘slaveseldb’
server.slaveseldb = -1; /* Force to emit the first SELECT command. */
^
server.c:2765:11: error: ‘struct redisServer’ has no member named ‘unblocked_clients’
server.unblocked_clients = listCreate();
^
server.c:2766:11: error: ‘struct redisServer’ has no member named ‘ready_keys’
server.ready_keys = listCreate();
^
server.c:2767:11: error: ‘struct redisServer’ has no member named ‘clients_waiting_acks’
server.clients_waiting_acks = listCreate();
^
networking.c:2809:47: error: ‘struct redisServer’ has no member named ‘clients_pause_end_time’
if (!server.clients_paused || end > server.clients_pause_end_time)
^
networking.c:2810:15: error: ‘struct redisServer’ has no member named ‘clients_pause_end_time’
server.clients_pause_end_time = end;
^
networking.c:2811:11: error: ‘struct redisServer’ has no member named ‘clients_paused’
server.clients_paused = 1;
^
networking.c: In function ‘clientsArePaused’:
networking.c:2817:15: error: ‘struct redisServer’ has no member named ‘clients_paused’
if (server.clients_paused &&
^
networking.c:2818:15: error: ‘struct redisServer’ has no member named ‘clients_pause_end_time’
server.clients_pause_end_time < server.mstime)
^
networking.c:2818:47: error: ‘struct redisServer’ has no member named ‘mstime’
server.clients_pause_end_time < server.mstime)
^
networking.c:2824:15: error: ‘struct redisServer’ has no member named ‘clients_paused’
server.clients_paused = 0;
^
networking.c:2828:26: error: ‘struct redisServer’ has no member named ‘clients’
listRewind(server.clients,&li);
^
server.c:2768:11: error: ‘struct redisServer’ has no member named ‘get_ack_from_slaves’
server.get_ack_from_slaves = 0;
^
server.c:2769:11: error: ‘struct redisServer’ has no member named ‘clients_paused’
server.clients_paused = 0;
^
server.c:2770:11: error: ‘struct redisServer’ has no member named ‘events_processed_while_blocked’
server.events_processed_while_blocked = 0;
^
server.c:2771:11: error: ‘struct redisServer’ has no member named ‘system_memory_size’
server.system_memory_size = zmalloc_get_memory_size();
^
server.c:2773:15: error: ‘struct redisServer’ has no member named ‘tls_port’
if (server.tls_port && tlsConfigure(&server.tls_ctx_config) == C_ERR) {
^
server.c:2773:48: error: ‘struct redisServer’ has no member named ‘tls_ctx_config’
if (server.tls_port && tlsConfigure(&server.tls_ctx_config) == C_ERR) {
^
server.c:2780:41: error: ‘struct redisServer’ has no member named ‘maxclients’
server.el = aeCreateEventLoop(server.maxclients+CONFIG_FDSET_INCR);
^
networking.c:2838:18: error: ‘struct redisServer’ has no member named ‘clients_paused’
return server.clients_paused;
^
networking.c: In function ‘processEventsWhileBlocked’:
networking.c:2862:36: error: ‘struct redisServer’ has no member named ‘events_processed_while_blocked’
long long startval = server.events_processed_while_blocked;
^
networking.c:2868:15: error: ‘struct redisServer’ has no member named ‘events_processed_while_blocked’
server.events_processed_while_blocked += ae_events;
^
networking.c:2869:34: error: ‘struct redisServer’ has no member named ‘events_processed_while_blocked’
long long events = server.events_processed_while_blocked - startval;
^
networking.c: At top level:
networking.c:2887:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unsigned’
_Atomic unsigned long io_threads_pending[IO_THREADS_MAX_NUM];
^
networking.c: In function ‘IOThreadMain’:
networking.c:2904:31: error: ‘struct redisServer’ has no member named ‘server_cpulist’
redisSetCpuAffinity(server.server_cpulist);
^
server.c:2787:47: error: ‘struct redisServer’ has no member named ‘dbnum’
server.db = zmalloc(sizeof(redisDb)*server.dbnum);
^
server.c:2790:15: error: ‘struct redisServer’ has no member named ‘port’
if (server.port != 0 &&
^
server.c:2791:28: error: ‘struct redisServer’ has no member named ‘port’
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2791:40: error: ‘struct redisServer’ has no member named ‘ipfd’
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2791:53: error: ‘struct redisServer’ has no member named ‘ipfd_count’
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2793:15: error: ‘struct redisServer’ has no member named ‘tls_port’
if (server.tls_port != 0 &&
^
server.c:2794:28: error: ‘struct redisServer’ has no member named ‘tls_port’
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
server.c:2794:44: error: ‘struct redisServer’ has no member named ‘tlsfd’
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
networking.c:2909:17: error: ‘io_threads_pending’ undeclared (first use in this function)
if (io_threads_pending[id] != 0) break;
^
networking.c:2909:17: note: each undeclared identifier is reported only once for each function it appears in
networking.c: In function ‘initThreadedIO’:
networking.c:2951:15: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (server.io_threads_num == 1) return;
^
networking.c:2953:15: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (server.io_threads_num > IO_THREADS_MAX_NUM) {
^
networking.c:2960:31: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int i = 0; i < server.io_threads_num; i++) {
^
server.c:2794:58: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
server.c:2798:15: error: ‘struct redisServer’ has no member named ‘unixsocket’
if (server.unixsocket != NULL) {
^
server.c:2799:22: error: ‘struct redisServer’ has no member named ‘unixsocket’
unlink(server.unixsocket); /* don't care if this fails */
^
server.c:2800:15: error: ‘struct redisServer’ has no member named ‘sofd’
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
server.c:2800:44: error: ‘struct redisServer’ has no member named ‘neterr’
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
server.c:2800:58: error: ‘struct redisServer’ has no member named ‘unixsocket’
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
networking.c:2968:9: error: ‘io_threads_pending’ undeclared (first use in this function)
io_threads_pending[i] = 0;
^
networking.c: In function ‘startThreadedIO’:
networking.c:2982:31: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++)
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘stopThreadedIO’:
networking.c:2993:32: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
(int) listLength(server.clients_pending_read),
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:2994:32: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
(int) listLength(server.clients_pending_write));
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:2996:31: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++)
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘stopThreadedIOIfNeeded’:
server.c:2801:19: error: ‘struct redisServer’ has no member named ‘unixsocketperm’
server.unixsocketperm, server.tcp_backlog);
^
server.c:2801:42: error: ‘struct redisServer’ has no member named ‘tcp_backlog’
server.unixsocketperm, server.tcp_backlog);
^
server.c:2802:19: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd == ANET_ERR) {
^
server.c:2803:68: error: ‘struct redisServer’ has no member named ‘neterr’
serverLog(LL_WARNING, "Opening Unix socket: %s", server.neterr);
^
server.c:2806:33: error: ‘struct redisServer’ has no member named ‘sofd’
anetNonBlock(NULL,server.sofd);
^
server.c:2810:15: error: ‘struct redisServer’ has no member named ‘ipfd_count’
if (server.ipfd_count == 0 && server.tlsfd_count == 0 && server.sofd < 0) {
^
server.c:2810:41: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
if (server.ipfd_count == 0 && server.tlsfd_count == 0 && server.sofd < 0) {
^
networking.c:3011:36: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
int pending = listLength(server.clients_pending_write);
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:3014:15: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (server.io_threads_num == 1) return 1;
^
networking.c:3016:26: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (pending < (server.io_threads_num*2)) {
^
In file included from server.h:63:0,
from networking.c:30:
networking.c: In function ‘handleClientsWithPendingWritesUsingThreads’:
networking.c:3025:38: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
int processed = listLength(server.clients_pending_write);
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:2810:68: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.ipfd_count == 0 && server.tlsfd_count == 0 && server.sofd < 0) {
^
server.c:2816:27: error: ‘struct redisServer’ has no member named ‘dbnum’
for (j = 0; j < server.dbnum; j++) {
^
server.c:2829:11: error: ‘struct redisServer’ has no member named ‘pubsub_channels’
server.pubsub_channels = dictCreate(&keylistDictType,NULL);
^
server.c:2830:11: error: ‘struct redisServer’ has no member named ‘pubsub_patterns’
server.pubsub_patterns = listCreate();
^
server.c:2831:11: error: ‘struct redisServer’ has no member named ‘pubsub_patterns_dict’
server.pubsub_patterns_dict = dictCreate(&keylistDictType,NULL);
^
In file included from server.h:63:0,
from server.c:30:
server.c:2832:29: error: ‘struct redisServer’ has no member named ‘pubsub_patterns’
listSetFreeMethod(server.pubsub_patterns,freePubsubPattern);
^
adlist.h:65:34: note: in definition of macro ‘listSetFreeMethod’
#define listSetFreeMethod(l,m) ((l)->free = (m))
^
networking.c:3030:15: error: ‘struct redisServer’ has no member named ‘io_threads_num’
if (server.io_threads_num == 1 || stopThreadedIOIfNeeded()) {
^
networking.c:3042:22: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listRewind(server.clients_pending_write,&li);
^
networking.c:3047:41: error: ‘struct redisServer’ has no member named ‘io_threads_num’
int target_id = item_id % server.io_threads_num;
^
networking.c:3055:31: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++) {
^
networking.c:3057:9: error: ‘io_threads_pending’ undeclared (first use in this function)
io_threads_pending[j] = count;
^
networking.c:3071:35: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++)
^
server.c:2833:30: error: ‘struct redisServer’ has no member named ‘pubsub_patterns’
listSetMatchMethod(server.pubsub_patterns,listMatchPubsubPattern);
^
adlist.h:66:35: note: in definition of macro ‘listSetMatchMethod’
#define listSetMatchMethod(l,m) ((l)->match = (m))
^
server.c:2834:11: error: ‘struct redisServer’ has no member named ‘cronloops’
server.cronloops = 0;
^
server.c:2835:11: error: ‘struct redisServer’ has no member named ‘rdb_child_pid’
server.rdb_child_pid = -1;
^
server.c:2836:11: error: ‘struct redisServer’ has no member named ‘aof_child_pid’
server.aof_child_pid = -1;
^
server.c:2837:11: error: ‘struct redisServer’ has no member named ‘module_child_pid’
server.module_child_pid = -1;
^
server.c:2838:11: error: ‘struct redisServer’ has no member named ‘rdb_child_type’
server.rdb_child_type = RDB_CHILD_TYPE_NONE;
^
server.c:2839:11: error: ‘struct redisServer’ has no member named ‘rdb_pipe_conns’
server.rdb_pipe_conns = NULL;
^
networking.c:3079:22: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listRewind(server.clients_pending_write,&li);
^
networking.c:3091:21: error: ‘struct redisServer’ has no member named ‘clients_pending_write’
listEmpty(server.clients_pending_write);
^
networking.c: In function ‘postponeClientRead’:
networking.c:3101:15: error: ‘struct redisServer’ has no member named ‘io_threads_do_reads’
server.io_threads_do_reads &&
^
networking.c:3106:31: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
listAddNodeHead(server.clients_pending_read,c);
^
networking.c: In function ‘handleClientsWithPendingReadsUsingThreads’:
server.c:2840:11: error: ‘struct redisServer’ has no member named ‘rdb_pipe_numconns’
server.rdb_pipe_numconns = 0;
^
server.c:2841:11: error: ‘struct redisServer’ has no member named ‘rdb_pipe_numconns_writing’
server.rdb_pipe_numconns_writing = 0;
^
server.c:2842:11: error: ‘struct redisServer’ has no member named ‘rdb_pipe_buff’
server.rdb_pipe_buff = NULL;
^
server.c:2843:11: error: ‘struct redisServer’ has no member named ‘rdb_pipe_bufflen’
server.rdb_pipe_bufflen = 0;
^
server.c:2844:11: error: ‘struct redisServer’ has no member named ‘rdb_bgsave_scheduled’
server.rdb_bgsave_scheduled = 0;
^
server.c:2845:11: error: ‘struct redisServer’ has no member named ‘child_info_pipe’
server.child_info_pipe[0] = -1;
^
networking.c:3120:38: error: ‘struct redisServer’ has no member named ‘io_threads_do_reads’
if (!io_threads_active || !server.io_threads_do_reads) return 0;
^
In file included from server.h:63:0,
from networking.c:30:
networking.c:3121:38: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
int processed = listLength(server.clients_pending_read);
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:3129:22: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
listRewind(server.clients_pending_read,&li);
^
networking.c:3133:41: error: ‘struct redisServer’ has no member named ‘io_threads_num’
int target_id = item_id % server.io_threads_num;
^
networking.c:3141:31: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++) {
^
server.c:2846:11: error: ‘struct redisServer’ has no member named ‘child_info_pipe’
server.child_info_pipe[1] = -1;
^
server.c:2847:11: error: ‘struct redisServer’ has no member named ‘child_info_data’
server.child_info_data.magic = 0;
^
server.c:2849:11: error: ‘struct redisServer’ has no member named ‘aof_buf’
server.aof_buf = sdsempty();
^
server.c:2850:11: error: ‘struct redisServer’ has no member named ‘lastsave’
server.lastsave = time(NULL); /* At startup we consider the DB saved. */
^
networking.c:3143:9: error: ‘io_threads_pending’ undeclared (first use in this function)
io_threads_pending[j] = count;
^
networking.c:3157:35: error: ‘struct redisServer’ has no member named ‘io_threads_num’
for (int j = 1; j < server.io_threads_num; j++)
^
In file included from server.h:63:0,
from networking.c:30:
networking.c:3164:28: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
while(listLength(server.clients_pending_read)) {
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
networking.c:3165:30: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
ln = listFirst(server.clients_pending_read);
^
adlist.h:58:24: note: in definition of macro ‘listFirst’
#define listFirst(l) ((l)->head)
^
server.c:2851:11: error: ‘struct redisServer’ has no member named ‘lastbgsave_try’
server.lastbgsave_try = 0; /* At startup we never tried to BGSAVE. */
^
server.c:2852:11: error: ‘struct redisServer’ has no member named ‘rdb_save_time_last’
server.rdb_save_time_last = -1;
^
server.c:2853:11: error: ‘struct redisServer’ has no member named ‘rdb_save_time_start’
server.rdb_save_time_start = -1;
^
server.c:2854:11: error: ‘struct redisServer’ has no member named ‘dirty’
server.dirty = 0;
^
server.c:2857:11: error: ‘struct redisServer’ has no member named ‘stat_starttime’
server.stat_starttime = time(NULL);
^
server.c:2858:11: error: ‘struct redisServer’ has no member named ‘stat_peak_memory’
server.stat_peak_memory = 0;
^
server.c:2859:11: error: ‘struct redisServer’ has no member named ‘stat_rdb_cow_bytes’
server.stat_rdb_cow_bytes = 0;
^
networking.c:3168:27: error: ‘struct redisServer’ has no member named ‘clients_pending_read’
listDelNode(server.clients_pending_read,ln);
^
server.c:2860:11: error: ‘struct redisServer’ has no member named ‘stat_aof_cow_bytes’
server.stat_aof_cow_bytes = 0;
^
server.c:2861:11: error: ‘struct redisServer’ has no member named ‘stat_module_cow_bytes’
server.stat_module_cow_bytes = 0;
^
server.c:2863:15: error: ‘struct redisServer’ has no member named ‘stat_clients_type_memory’
server.stat_clients_type_memory[j] = 0;
^
server.c:2864:11: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.zmalloc_used = 0;
^
server.c:2865:11: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.process_rss = 0;
^
server.c:2866:11: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_allocated = 0;
^
server.c:2867:11: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_active = 0;
^
server.c:2868:11: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_resident = 0;
^
server.c:2869:11: error: ‘struct redisServer’ has no member named ‘lastbgsave_status’
server.lastbgsave_status = C_OK;
^
server.c:2870:11: error: ‘struct redisServer’ has no member named ‘aof_last_write_status’
server.aof_last_write_status = C_OK;
^
server.c:2871:11: error: ‘struct redisServer’ has no member named ‘aof_last_write_errno’
server.aof_last_write_errno = 0;
^
server.c:2872:11: error: ‘struct redisServer’ has no member named ‘repl_good_slaves_count’
server.repl_good_slaves_count = 0;
^
server.c:2884:27: error: ‘struct redisServer’ has no member named ‘ipfd_count’
for (j = 0; j < server.ipfd_count; j++) {
^
server.c:2885:48: error: ‘struct redisServer’ has no member named ‘ipfd’
if (aeCreateFileEvent(server.el, server.ipfd[j], AE_READABLE,
^
server.c:2892:27: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
for (j = 0; j < server.tlsfd_count; j++) {
^
server.c:2893:48: error: ‘struct redisServer’ has no member named ‘tlsfd’
if (aeCreateFileEvent(server.el, server.tlsfd[j], AE_READABLE,
^
server.c:2900:15: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd > 0 && aeCreateFileEvent(server.el,server.sofd,AE_READABLE,
^
server.c:2900:62: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd > 0 && aeCreateFileEvent(server.el,server.sofd,AE_READABLE,
^
server.c:2906:44: error: ‘struct redisServer’ has no member named ‘module_blocked_pipe’
if (aeCreateFileEvent(server.el, server.module_blocked_pipe[0], AE_READABLE,
^
server.c:2919:15: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state == AOF_ON) {
^
server.c:2920:15: error: ‘struct redisServer’ has no member named ‘aof_fd’
server.aof_fd = open(server.aof_filename,
^
server.c:2920:36: error: ‘struct redisServer’ has no member named ‘aof_filename’
server.aof_fd = open(server.aof_filename,
^
server.c:2922:19: error: ‘struct redisServer’ has no member named ‘aof_fd’
if (server.aof_fd == -1) {
^
server.c:2933:15: error: ‘struct redisServer’ has no member named ‘arch_bits’
if (server.arch_bits == 32 && server.maxmemory == 0) {
^
networking.c: In function ‘catClientInfoString’:
networking.c:2061:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c:2933:41: error: ‘struct redisServer’ has no member named ‘maxmemory’
if (server.arch_bits == 32 && server.maxmemory == 0) {
^
server.c:2935:15: error: ‘struct redisServer’ has no member named ‘maxmemory’
server.maxmemory = 3072LL*(1024*1024); /* 3 GB */
^
server.c:2936:15: error: ‘struct redisServer’ has no member named ‘maxmemory_policy’
server.maxmemory_policy = MAXMEMORY_NO_EVICTION;
^
server.c:2939:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) clusterInit();
^
server.c: In function ‘InitServerLast’:
server.c:2954:34: error: ‘struct redisServer’ has no member named ‘jemalloc_bg_thread’
set_jemalloc_bg_thread(server.jemalloc_bg_thread);
^
server.c:2955:11: error: ‘struct redisServer’ has no member named ‘initial_memory_usage’
server.initial_memory_usage = zmalloc_used_memory();
^
server.c: In function ‘propagate’:
server.c:3145:15: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state != AOF_OFF && flags & PROPAGATE_AOF)
^
server.c:3148:37: error: ‘struct redisServer’ has no member named ‘slaves’
replicationFeedSlaves(server.slaves,dbid,argv,argc);
^
server.c: In function ‘alsoPropagate’:
networking.c: In function ‘clientsArePaused’:
networking.c:2839:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
networking.c: In function ‘stopThreadedIOIfNeeded’:
server.c:3169:15: error: ‘struct redisServer’ has no member named ‘loading’
if (server.loading) return; /* No propagation during loading. */
^
server.c:3176:31: error: ‘struct redisServer’ has no member named ‘also_propagate’
redisOpArrayAppend(&server.also_propagate,cmd,dbid,argvcopy,argc,target);
^
server.c: In function ‘call’:
server.c:3247:11: error: ‘struct redisServer’ has no member named ‘fixed_time_expire’
server.fixed_time_expire++;
^
In file included from server.h:63:0,
from server.c:30:
server.c:3251:26: error: ‘struct redisServer’ has no member named ‘monitors’
if (listLength(server.monitors) &&
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:3252:16: error: ‘struct redisServer’ has no member named ‘loading’
!server.loading &&
^
server.c:3255:41: error: ‘struct redisServer’ has no member named ‘monitors’
replicationFeedMonitors(c,server.monitors,c->db->id,c->argv,c->argc);
^
networking.c:3022:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
networking.c: In function ‘postponeClientRead’:
networking.c:3111:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [networking.o] Error 1
make[1]: *** Waiting for unfinished jobs....
server.c:3261:46: error: ‘struct redisServer’ has no member named ‘also_propagate’
redisOpArray prev_also_propagate = server.also_propagate;
^
server.c:3262:29: error: ‘struct redisServer’ has no member named ‘also_propagate’
redisOpArrayInit(&server.also_propagate);
^
server.c:3265:19: error: ‘struct redisServer’ has no member named ‘dirty’
dirty = server.dirty;
^
server.c:3267:19: error: ‘struct redisServer’ has no member named ‘ustime’
start = server.ustime;
^
server.c:3270:19: error: ‘struct redisServer’ has no member named ‘dirty’
dirty = server.dirty-dirty;
^
server.c:3275:15: error: ‘struct redisServer’ has no member named ‘loading’
if (server.loading && c->flags & CLIENT_LUA)
^
server.c:3281:40: error: ‘struct redisServer’ has no member named ‘lua_caller’
if (c->flags & CLIENT_LUA && server.lua_caller) {
^
server.c:3283:19: error: ‘struct redisServer’ has no member named ‘lua_caller’
server.lua_caller->flags |= CLIENT_FORCE_REPL;
^
server.c:3285:19: error: ‘struct redisServer’ has no member named ‘lua_caller’
server.lua_caller->flags |= CLIENT_FORCE_AOF;
^
In file included from server.h:70:0,
from server.c:30:
latency.h:85:15: error: ‘struct redisServer’ has no member named ‘latency_monitor_threshold’
if (server.latency_monitor_threshold && \
^
server.c:3293:9: note: in expansion of macro ‘latencyAddSampleIfNeeded’
latencyAddSampleIfNeeded(latency_event,duration/1000);
^
latency.h:86:24: error: ‘struct redisServer’ has no member named ‘latency_monitor_threshold’
(var) >= server.latency_monitor_threshold) \
^
server.c:3293:9: note: in expansion of macro ‘latencyAddSampleIfNeeded’
latencyAddSampleIfNeeded(latency_event,duration/1000);
^
server.c:3346:15: error: ‘struct redisServer’ has no member named ‘also_propagate’
if (server.also_propagate.numops) {
^
server.c:3358:23: error: ‘struct redisServer’ has no member named ‘also_propagate’
if (server.also_propagate.numops > 1 &&
^
server.c:3367:35: error: ‘struct redisServer’ has no member named ‘also_propagate’
for (j = 0; j < server.also_propagate.numops; j++) {
^
server.c:3368:30: error: ‘struct redisServer’ has no member named ‘also_propagate’
rop = &server.also_propagate.ops[j];
^
server.c:3381:33: error: ‘struct redisServer’ has no member named ‘also_propagate’
redisOpArrayFree(&server.also_propagate);
^
server.c:3383:11: error: ‘struct redisServer’ has no member named ‘also_propagate’
server.also_propagate = prev_also_propagate;
^
server.c:3388:58: error: ‘struct redisServer’ has no member named ‘lua_caller’
client *caller = (c->flags & CLIENT_LUA && server.lua_caller) ?
^
server.c:3389:35: error: ‘struct redisServer’ has no member named ‘lua_caller’
server.lua_caller : c;
^
server.c:3397:11: error: ‘struct redisServer’ has no member named ‘fixed_time_expire’
server.fixed_time_expire--;
^
server.c:3398:11: error: ‘struct redisServer’ has no member named ‘stat_numcommands’
server.stat_numcommands++;
^
server.c: In function ‘processCommand’:
server.c:3480:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled &&
^
server.c:3483:17: error: ‘struct redisServer’ has no member named ‘lua_caller’
server.lua_caller->flags & CLIENT_MASTER) &&
^
server.c:3491:37: error: ‘struct redisServer’ has no member named ‘cluster’
if (n == NULL || n != server.cluster->myself) {
^
server.c:3508:15: error: ‘struct redisServer’ has no member named ‘maxmemory’
if (server.maxmemory && !server.lua_timedout) {
^
server.c:3508:36: error: ‘struct redisServer’ has no member named ‘lua_timedout’
if (server.maxmemory && !server.lua_timedout) {
^
server.c:3512:19: error: ‘struct redisServer’ has no member named ‘current_client’
if (server.current_client == NULL) return C_ERR;
^
server.c:3532:19: error: ‘struct redisServer’ has no member named ‘lua_oom’
server.lua_oom = out_of_memory;
^
server.c:3538:15: error: ‘struct redisServer’ has no member named ‘tracking_clients’
if (server.tracking_clients) trackingLimitUsedSlots();
^
server.c:3544:15: error: ‘struct redisServer’ has no member named ‘masterhost’
server.masterhost == NULL &&
^
server.c:3555:32: error: ‘struct redisServer’ has no member named ‘aof_last_write_errno’
strerror(server.aof_last_write_errno)));
^
server.c:3561:15: error: ‘struct redisServer’ has no member named ‘masterhost’
if (server.masterhost == NULL &&
^
server.c:3562:15: error: ‘struct redisServer’ has no member named ‘repl_min_slaves_to_write’
server.repl_min_slaves_to_write &&
^
server.c:3563:15: error: ‘struct redisServer’ has no member named ‘repl_min_slaves_max_lag’
server.repl_min_slaves_max_lag &&
^
server.c:3565:15: error: ‘struct redisServer’ has no member named ‘repl_good_slaves_count’
server.repl_good_slaves_count < server.repl_min_slaves_to_write)
^
server.c:3565:47: error: ‘struct redisServer’ has no member named ‘repl_min_slaves_to_write’
server.repl_good_slaves_count < server.repl_min_slaves_to_write)
^
server.c:3574:15: error: ‘struct redisServer’ has no member named ‘masterhost’
if (server.masterhost && server.repl_slave_ro &&
^
server.c:3574:36: error: ‘struct redisServer’ has no member named ‘repl_slave_ro’
if (server.masterhost && server.repl_slave_ro &&
^
server.c:3601:15: error: ‘struct redisServer’ has no member named ‘masterhost’
if (server.masterhost && server.repl_state != REPL_STATE_CONNECTED &&
^
server.c:3601:36: error: ‘struct redisServer’ has no member named ‘repl_state’
if (server.masterhost && server.repl_state != REPL_STATE_CONNECTED &&
^
server.c:3602:15: error: ‘struct redisServer’ has no member named ‘repl_serve_stale_data’
server.repl_serve_stale_data == 0 &&
^
server.c:3612:15: error: ‘struct redisServer’ has no member named ‘loading’
if (server.loading && !(c->cmd->flags & CMD_LOADING)) {
^
server.c:3623:15: error: ‘struct redisServer’ has no member named ‘lua_timedout’
if (server.lua_timedout &&
^
server.c:3653:25: error: ‘struct redisServer’ has no member named ‘master_repl_offset’
c->woff = server.master_repl_offset;
^
In file included from server.h:63:0,
from server.c:30:
server.c:3654:30: error: ‘struct redisServer’ has no member named ‘ready_keys’
if (listLength(server.ready_keys))
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c: In function ‘closeListeningSockets’:
server.c:3667:27: error: ‘struct redisServer’ has no member named ‘ipfd_count’
for (j = 0; j < server.ipfd_count; j++) close(server.ipfd[j]);
^
server.c:3667:57: error: ‘struct redisServer’ has no member named ‘ipfd’
for (j = 0; j < server.ipfd_count; j++) close(server.ipfd[j]);
^
server.c:3668:27: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
for (j = 0; j < server.tlsfd_count; j++) close(server.tlsfd[j]);
^
server.c:3668:58: error: ‘struct redisServer’ has no member named ‘tlsfd’
for (j = 0; j < server.tlsfd_count; j++) close(server.tlsfd[j]);
^
server.c:3669:15: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd != -1) close(server.sofd);
^
server.c:3669:40: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd != -1) close(server.sofd);
^
server.c:3670:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled)
^
server.c:3671:31: error: ‘struct redisServer’ has no member named ‘cfd_count’
for (j = 0; j < server.cfd_count; j++) close(server.cfd[j]);
^
server.c:3671:60: error: ‘struct redisServer’ has no member named ‘cfd’
for (j = 0; j < server.cfd_count; j++) close(server.cfd[j]);
^
server.c:3672:37: error: ‘struct redisServer’ has no member named ‘unixsocket’
if (unlink_unix_socket && server.unixsocket) {
^
server.c:3674:22: error: ‘struct redisServer’ has no member named ‘unixsocket’
unlink(server.unixsocket); /* don't care if this fails */
^
server.c: In function ‘prepareForShutdown’:
server.c:3683:15: error: ‘struct redisServer’ has no member named ‘supervised_mode’
if (server.supervised_mode == SUPERVISED_SYSTEMD)
^
server.c:3692:15: error: ‘struct redisServer’ has no member named ‘rdb_child_pid’
if (server.rdb_child_pid != -1) {
^
server.c:3698:15: error: ‘struct redisServer’ has no member named ‘module_child_pid’
if (server.module_child_pid != -1) {
^
server.c:3700:40: error: ‘struct redisServer’ has no member named ‘module_child_pid’
TerminateModuleForkChild(server.module_child_pid,0);
^
server.c:3703:15: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state != AOF_OFF) {
^
server.c:3706:19: error: ‘struct redisServer’ has no member named ‘aof_child_pid’
if (server.aof_child_pid != -1) {
^
server.c:3709:23: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state == AOF_WAIT_REWRITE) {
^
server.c:3720:27: error: ‘struct redisServer’ has no member named ‘aof_fd’
redis_fsync(server.aof_fd);
^
server.c:3724:16: error: ‘struct redisServer’ has no member named ‘saveparamslen’
if ((server.saveparamslen > 0 && !nosave) || save) {
^
server.c:3726:19: error: ‘struct redisServer’ has no member named ‘supervised_mode’
if (server.supervised_mode == SUPERVISED_SYSTEMD)
^
server.c:3731:27: error: ‘struct redisServer’ has no member named ‘rdb_filename’
if (rdbSave(server.rdb_filename,rsiptr) != C_OK) {
^
server.c:3738:23: error: ‘struct redisServer’ has no member named ‘supervised_mode’
if (server.supervised_mode == SUPERVISED_SYSTEMD)
^
server.c:3748:15: error: ‘struct redisServer’ has no member named ‘daemonize’
if (server.daemonize || server.pidfile) {
^
server.c:3748:35: error: ‘struct redisServer’ has no member named ‘pidfile’
if (server.daemonize || server.pidfile) {
^
server.c:3750:22: error: ‘struct redisServer’ has no member named ‘pidfile’
unlink(server.pidfile);
^
server.c:3760:15: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
server.sentinel_mode ? "Sentinel" : "Redis");
^
server.c: In function ‘writeCommandsDeniedByDiskError’:
server.c:3778:15: error: ‘struct redisServer’ has no member named ‘stop_writes_on_bgsave_err’
if (server.stop_writes_on_bgsave_err &&
^
server.c:3779:15: error: ‘struct redisServer’ has no member named ‘saveparamslen’
server.saveparamslen > 0 &&
^
server.c:3780:15: error: ‘struct redisServer’ has no member named ‘lastbgsave_status’
server.lastbgsave_status == C_ERR)
^
server.c:3783:22: error: ‘struct redisServer’ has no member named ‘aof_state’
} else if (server.aof_state != AOF_OFF &&
^
server.c:3784:22: error: ‘struct redisServer’ has no member named ‘aof_last_write_status’
server.aof_last_write_status == C_ERR)
^
server.c: In function ‘genRedisInfoString’:
server.c:3977:27: error: ‘struct redisServer’ has no member named ‘unixtime’
time_t uptime = server.unixtime-server.stat_starttime;
^
server.c:3977:43: error: ‘struct redisServer’ has no member named ‘stat_starttime’
time_t uptime = server.unixtime-server.stat_starttime;
^
server.c:3999:19: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) mode = "cluster";
^
server.c:4000:24: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
else if (server.sentinel_mode) mode = "sentinel";
^
server.c:4039:19: error: ‘struct redisServer’ has no member named ‘arch_bits’
server.arch_bits,
^
server.c:4048:19: error: ‘struct redisServer’ has no member named ‘runid’
server.runid,
^
server.c:4049:19: error: ‘struct redisServer’ has no member named ‘port’
server.port ? server.port : server.tls_port,
^
server.c:4049:33: error: ‘struct redisServer’ has no member named ‘port’
server.port ? server.port : server.tls_port,
^
server.c:4049:47: error: ‘struct redisServer’ has no member named ‘tls_port’
server.port ? server.port : server.tls_port,
^
server.c:4054:19: error: ‘struct redisServer’ has no member named ‘lruclock’
server.lruclock,
^
In file included from server.h:63:0,
from server.c:30:
server.c:4072:30: 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:4072:57: 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:4074:19: error: ‘struct redisServer’ has no member named ‘blocked_clients’
server.blocked_clients,
^
server.c:4075:19: error: ‘struct redisServer’ has no member named ‘tracking_clients’
server.tracking_clients,
^
server.c:4076:48: error: ‘struct redisServer’ has no member named ‘clients_timeout_table’
(unsigned long long) raxSize(server.clients_timeout_table));
^
server.c:4089:41: error: ‘struct redisServer’ has no member named ‘system_memory_size’
size_t total_system_mem = server.system_memory_size;
^
server.c:4091:38: error: ‘struct redisServer’ has no member named ‘lua’
long long memory_lua = server.lua ? (long long)lua_gc(server.lua,LUA_GCCOUNT,0)*1024 : 0;
^
server.c:4091:69: error: ‘struct redisServer’ has no member named ‘lua’
long long memory_lua = server.lua ? (long long)lua_gc(server.lua,LUA_GCCOUNT,0)*1024 : 0;
^
server.c:4098:34: error: ‘struct redisServer’ has no member named ‘stat_peak_memory’
if (zmalloc_used > server.stat_peak_memory)
^
server.c:4099:19: error: ‘struct redisServer’ has no member named ‘stat_peak_memory’
server.stat_peak_memory = zmalloc_used;
^
server.c:4102:38: error: ‘struct redisServer’ has no member named ‘stat_peak_memory’
bytesToHuman(peak_hmem,server.stat_peak_memory);
^
server.c:4106:49: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
bytesToHuman(used_memory_rss_hmem,server.cron_malloc_stats.process_rss);
^
server.c:4107:43: error: ‘struct redisServer’ has no member named ‘maxmemory’
bytesToHuman(maxmemory_hmem,server.maxmemory);
^
server.c:4154:19: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.process_rss,
^
server.c:4156:19: error: ‘struct redisServer’ has no member named ‘stat_peak_memory’
server.stat_peak_memory,
^
server.c:4163:19: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_allocated,
^
server.c:4164:19: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_active,
^
server.c:4165:19: error: ‘struct redisServer’ has no member named ‘cron_malloc_stats’
server.cron_malloc_stats.allocator_resident,
^
In file included from server.h:62:0,
from server.c:30:
server.c:4172:28: error: ‘struct redisServer’ has no member named ‘lua_scripts’
dictSize(server.lua_scripts),
^
dict.h:147:23: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
server.c:4172:28: error: ‘struct redisServer’ has no member named ‘lua_scripts’
dictSize(server.lua_scripts),
^
dict.h:147:39: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
server.c:4173:19: error: ‘struct redisServer’ has no member named ‘maxmemory’
server.maxmemory,
^
server.c:4193:19: error: ‘struct redisServer’ has no member named ‘active_defrag_running’
server.active_defrag_running,
^
server.c:4222:19: error: ‘struct redisServer’ has no member named ‘loading’
server.loading,
^
server.c:4223:19: error: ‘struct redisServer’ has no member named ‘dirty’
server.dirty,
^
server.c:4224:19: error: ‘struct redisServer’ has no member named ‘rdb_child_pid’
server.rdb_child_pid != -1,
^
server.c:4225:29: error: ‘struct redisServer’ has no member named ‘lastsave’
(intmax_t)server.lastsave,
^
server.c:4226:20: error: ‘struct redisServer’ has no member named ‘lastbgsave_status’
(server.lastbgsave_status == C_OK) ? "ok" : "err",
^
server.c:4227:29: error: ‘struct redisServer’ has no member named ‘rdb_save_time_last’
(intmax_t)server.rdb_save_time_last,
^
server.c:4228:31: error: ‘struct redisServer’ has no member named ‘rdb_child_pid’
(intmax_t)((server.rdb_child_pid == -1) ?
^
server.c:4229:39: error: ‘struct redisServer’ has no member named ‘rdb_save_time_start’
-1 : time(NULL)-server.rdb_save_time_start),
^
server.c:4230:19: error: ‘struct redisServer’ has no member named ‘stat_rdb_cow_bytes’
server.stat_rdb_cow_bytes,
^
server.c:4231:19: error: ‘struct redisServer’ has no member named ‘aof_state’
server.aof_state != AOF_OFF,
^
server.c:4232:19: error: ‘struct redisServer’ has no member named ‘aof_child_pid’
server.aof_child_pid != -1,
^
server.c:4233:19: error: ‘struct redisServer’ has no member named ‘aof_rewrite_scheduled’
server.aof_rewrite_scheduled,
^
server.c:4234:29: error: ‘struct redisServer’ has no member named ‘aof_rewrite_time_last’
(intmax_t)server.aof_rewrite_time_last,
^
server.c:4235:31: error: ‘struct redisServer’ has no member named ‘aof_child_pid’
(intmax_t)((server.aof_child_pid == -1) ?
^
server.c:4236:39: error: ‘struct redisServer’ has no member named ‘aof_rewrite_time_start’
-1 : time(NULL)-server.aof_rewrite_time_start),
^
server.c:4237:20: error: ‘struct redisServer’ has no member named ‘aof_lastbgrewrite_status’
(server.aof_lastbgrewrite_status == C_OK) ? "ok" : "err",
^
server.c:4238:20: error: ‘struct redisServer’ has no member named ‘aof_last_write_status’
(server.aof_last_write_status == C_OK) ? "ok" : "err",
^
server.c:4239:19: error: ‘struct redisServer’ has no member named ‘stat_aof_cow_bytes’
server.stat_aof_cow_bytes,
^
server.c:4240:19: error: ‘struct redisServer’ has no member named ‘module_child_pid’
server.module_child_pid != -1,
^
server.c:4241:19: error: ‘struct redisServer’ has no member named ‘stat_module_cow_bytes’
server.stat_module_cow_bytes);
^
server.c:4243:19: error: ‘struct redisServer’ has no member named ‘aof_enabled’
if (server.aof_enabled) {
^
server.c:4252:35: error: ‘struct redisServer’ has no member named ‘aof_current_size’
(long long) server.aof_current_size,
^
server.c:4253:35: error: ‘struct redisServer’ has no member named ‘aof_rewrite_base_size’
(long long) server.aof_rewrite_base_size,
^
server.c:4254:23: error: ‘struct redisServer’ has no member named ‘aof_rewrite_scheduled’
server.aof_rewrite_scheduled,
^
server.c:4255:30: error: ‘struct redisServer’ has no member named ‘aof_buf’
sdslen(server.aof_buf),
^
server.c:4258:23: error: ‘struct redisServer’ has no member named ‘aof_delayed_fsync’
server.aof_delayed_fsync);
^
server.c:4261:19: error: ‘struct redisServer’ has no member named ‘loading’
if (server.loading) {
^
server.c:4264:43: error: ‘struct redisServer’ has no member named ‘loading_total_bytes’
off_t remaining_bytes = server.loading_total_bytes-
^
server.c:4265:43: error: ‘struct redisServer’ has no member named ‘loading_loaded_bytes’
server.loading_loaded_bytes;
^
server.c:4267:35: error: ‘struct redisServer’ has no member named ‘loading_loaded_bytes’
perc = ((double)server.loading_loaded_bytes /
^
server.c:4268:27: error: ‘struct redisServer’ has no member named ‘loading_total_bytes’
(server.loading_total_bytes+1)) * 100;
^
server.c:4270:40: error: ‘struct redisServer’ has no member named ‘loading_start_time’
elapsed = time(NULL)-server.loading_start_time;
^
server.c:4275:56: error: ‘struct redisServer’ has no member named ‘loading_loaded_bytes’
eta = (elapsed*remaining_bytes)/(server.loading_loaded_bytes+1);
^
server.c:4284:34: error: ‘struct redisServer’ has no member named ‘loading_start_time’
(intmax_t) server.loading_start_time,
^
server.c:4285:44: error: ‘struct redisServer’ has no member named ‘loading_total_bytes’
(unsigned long long) server.loading_total_bytes,
^
server.c:4286:44: error: ‘struct redisServer’ has no member named ‘loading_loaded_bytes’
(unsigned long long) server.loading_loaded_bytes,
^
server.c:4329:19: error: ‘struct redisServer’ has no member named ‘stat_numconnections’
server.stat_numconnections,
^
server.c:4330:19: error: ‘struct redisServer’ has no member named ‘stat_numcommands’
server.stat_numcommands,
^
server.c:4332:19: error: ‘struct redisServer’ has no member named ‘stat_net_input_bytes’
server.stat_net_input_bytes,
^
server.c:4333:19: error: ‘struct redisServer’ has no member named ‘stat_net_output_bytes’
server.stat_net_output_bytes,
^
server.c:4336:19: error: ‘struct redisServer’ has no member named ‘stat_rejected_conn’
server.stat_rejected_conn,
^
server.c:4337:19: error: ‘struct redisServer’ has no member named ‘stat_sync_full’
server.stat_sync_full,
^
server.c:4338:19: error: ‘struct redisServer’ has no member named ‘stat_sync_partial_ok’
server.stat_sync_partial_ok,
^
server.c:4339:19: error: ‘struct redisServer’ has no member named ‘stat_sync_partial_err’
server.stat_sync_partial_err,
^
server.c:4340:19: error: ‘struct redisServer’ has no member named ‘stat_expiredkeys’
server.stat_expiredkeys,
^
server.c:4341:19: error: ‘struct redisServer’ has no member named ‘stat_expired_stale_perc’
server.stat_expired_stale_perc*100,
^
server.c:4342:19: error: ‘struct redisServer’ has no member named ‘stat_expired_time_cap_reached_count’
server.stat_expired_time_cap_reached_count,
^
server.c:4343:19: error: ‘struct redisServer’ has no member named ‘stat_expire_cycle_time_used’
server.stat_expire_cycle_time_used/1000,
^
server.c:4344:19: error: ‘struct redisServer’ has no member named ‘stat_evictedkeys’
server.stat_evictedkeys,
^
server.c:4345:19: error: ‘struct redisServer’ has no member named ‘stat_keyspace_hits’
server.stat_keyspace_hits,
^
server.c:4346:19: error: ‘struct redisServer’ has no member named ‘stat_keyspace_misses’
server.stat_keyspace_misses,
^
In file included from server.h:62:0,
from server.c:30:
server.c:4347:28: error: ‘struct redisServer’ has no member named ‘pubsub_channels’
dictSize(server.pubsub_channels),
^
dict.h:147:23: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
server.c:4347:28: error: ‘struct redisServer’ has no member named ‘pubsub_channels’
dictSize(server.pubsub_channels),
^
dict.h:147:39: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
In file included from server.h:63:0,
from server.c:30:
server.c:4348:30: error: ‘struct redisServer’ has no member named ‘pubsub_patterns’
listLength(server.pubsub_patterns),
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:4349:19: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
server.stat_fork_time,
^
In file included from server.h:62:0,
from server.c:30:
server.c:4350:28: error: ‘struct redisServer’ has no member named ‘migrate_cached_sockets’
dictSize(server.migrate_cached_sockets),
^
dict.h:147:23: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
server.c:4350:28: error: ‘struct redisServer’ has no member named ‘migrate_cached_sockets’
dictSize(server.migrate_cached_sockets),
^
dict.h:147:39: note: in definition of macro ‘dictSize’
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
^
server.c:4352:19: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_hits’
server.stat_active_defrag_hits,
^
server.c:4353:19: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_misses’
server.stat_active_defrag_misses,
^
server.c:4354:19: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_key_hits’
server.stat_active_defrag_key_hits,
^
server.c:4355:19: error: ‘struct redisServer’ has no member named ‘stat_active_defrag_key_misses’
server.stat_active_defrag_key_misses,
^
server.c:4359:19: error: ‘struct redisServer’ has no member named ‘stat_unexpected_error_replies’
server.stat_unexpected_error_replies);
^
server.c:4368:19: error: ‘struct redisServer’ has no member named ‘masterhost’
server.masterhost == NULL ? "master" : "slave");
^
server.c:4369:19: error: ‘struct redisServer’ has no member named ‘masterhost’
if (server.masterhost) {
^
server.c:4372:23: error: ‘struct redisServer’ has no member named ‘master’
if (server.master)
^
server.c:4373:43: error: ‘struct redisServer’ has no member named ‘master’
slave_repl_offset = server.master->reploff;
^
server.c:4374:28: error: ‘struct redisServer’ has no member named ‘cached_master’
else if (server.cached_master)
^
server.c:4375:43: error: ‘struct redisServer’ has no member named ‘cached_master’
slave_repl_offset = server.cached_master->reploff;
^
server.c:4384:24: error: ‘struct redisServer’ has no member named ‘masterhost’
,server.masterhost,
^
server.c:4385:23: error: ‘struct redisServer’ has no member named ‘masterport’
server.masterport,
^
server.c:4386:24: error: ‘struct redisServer’ has no member named ‘repl_state’
(server.repl_state == REPL_STATE_CONNECTED) ?
^
server.c:4388:23: error: ‘struct redisServer’ has no member named ‘master’
server.master ?
^
server.c:4389:30: error: ‘struct redisServer’ has no member named ‘unixtime’
((int)(server.unixtime-server.master->lastinteraction)) : -1,
^
server.c:4389:46: error: ‘struct redisServer’ has no member named ‘master’
((int)(server.unixtime-server.master->lastinteraction)) : -1,
^
server.c:4390:23: error: ‘struct redisServer’ has no member named ‘repl_state’
server.repl_state == REPL_STATE_TRANSFER,
^
server.c:4394:23: error: ‘struct redisServer’ has no member named ‘repl_state’
if (server.repl_state == REPL_STATE_TRANSFER) {
^
server.c:4399:32: error: ‘struct redisServer’ has no member named ‘repl_transfer_size’
(server.repl_transfer_size - server.repl_transfer_read),
^
server.c:4399:60: error: ‘struct redisServer’ has no member named ‘repl_transfer_read’
(server.repl_transfer_size - server.repl_transfer_read),
^
server.c:4400:33: error: ‘struct redisServer’ has no member named ‘unixtime’
(int)(server.unixtime-server.repl_transfer_lastio)
^
server.c:4400:49: error: ‘struct redisServer’ has no member named ‘repl_transfer_lastio’
(int)(server.unixtime-server.repl_transfer_lastio)
^
server.c:4404:23: error: ‘struct redisServer’ has no member named ‘repl_state’
if (server.repl_state != REPL_STATE_CONNECTED) {
^
server.c:4407:38: error: ‘struct redisServer’ has no member named ‘unixtime’
(intmax_t)(server.unixtime-server.repl_down_since));
^
server.c:4407:54: error: ‘struct redisServer’ has no member named ‘repl_down_since’
(intmax_t)(server.unixtime-server.repl_down_since));
^
server.c:4412:23: error: ‘struct redisServer’ has no member named ‘slave_priority’
server.slave_priority,
^
server.c:4413:23: error: ‘struct redisServer’ has no member named ‘repl_slave_ro’
server.repl_slave_ro);
^
In file included from server.h:63:0,
from server.c:30:
server.c:4418:30: 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:4422:19: error: ‘struct redisServer’ has no member named ‘repl_min_slaves_to_write’
if (server.repl_min_slaves_to_write &&
^
server.c:4423:19: error: ‘struct redisServer’ has no member named ‘repl_min_slaves_max_lag’
server.repl_min_slaves_max_lag) {
^
server.c:4426:23: error: ‘struct redisServer’ has no member named ‘repl_good_slaves_count’
server.repl_good_slaves_count);
^
In file included from server.h:63:0,
from server.c:30:
server.c:4429:30: error: ‘struct redisServer’ has no member named ‘slaves’
if (listLength(server.slaves)) {
^
adlist.h:57:25: note: in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:4434:30: error: ‘struct redisServer’ has no member named ‘slaves’
listRewind(server.slaves,&li);
^
server.c:4480:19: error: ‘struct redisServer’ has no member named ‘replid’
server.replid,
^
server.c:4481:19: error: ‘struct redisServer’ has no member named ‘replid2’
server.replid2,
^
server.c:4482:19: error: ‘struct redisServer’ has no member named ‘master_repl_offset’
server.master_repl_offset,
^
server.c:4483:19: error: ‘struct redisServer’ has no member named ‘second_replid_offset’
server.second_replid_offset,
^
server.c:4484:19: error: ‘struct redisServer’ has no member named ‘repl_backlog’
server.repl_backlog != NULL,
^
server.c:4485:19: error: ‘struct redisServer’ has no member named ‘repl_backlog_size’
server.repl_backlog_size,
^
server.c:4486:19: error: ‘struct redisServer’ has no member named ‘repl_backlog_off’
server.repl_backlog_off,
^
server.c:4487:19: error: ‘struct redisServer’ has no member named ‘repl_backlog_histlen’
server.repl_backlog_histlen);
^
server.c:4538:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
server.cluster_enabled);
^
server.c:4545:31: error: ‘struct redisServer’ has no member named ‘dbnum’
for (j = 0; j < server.dbnum; j++) {
^
server.c: In function ‘monitorCommand’:
server.c:4588:27: error: ‘struct redisServer’ has no member named ‘monitors’
listAddNodeTail(server.monitors,c);
^
server.c: In function ‘createPidFile’:
server.c:4622:16: error: ‘struct redisServer’ has no member named ‘pidfile’
if (!server.pidfile) server.pidfile = zstrdup(CONFIG_DEFAULT_PID_FILE);
^
server.c:4622:32: error: ‘struct redisServer’ has no member named ‘pidfile’
if (!server.pidfile) server.pidfile = zstrdup(CONFIG_DEFAULT_PID_FILE);
^
server.c:4625:28: error: ‘struct redisServer’ has no member named ‘pidfile’
FILE *fp = fopen(server.pidfile,"w");
^
server.c: In function ‘redisAsciiArt’:
server.c:4682:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) mode = "cluster";
^
server.c:4683:20: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
else if (server.sentinel_mode) mode = "sentinel";
^
server.c:4689:30: error: ‘struct redisServer’ has no member named ‘syslog_enabled’
int show_logo = ((!server.syslog_enabled &&
^
server.c:4690:29: error: ‘struct redisServer’ has no member named ‘logfile’
server.logfile[0] == '\0' &&
^
server.c:4692:28: error: ‘struct redisServer’ has no member named ‘always_show_logo’
server.always_show_logo);
^
server.c:4697:25: error: ‘struct redisServer’ has no member named ‘port’
mode, server.port ? server.port : server.tls_port
^
server.c:4697:39: error: ‘struct redisServer’ has no member named ‘port’
mode, server.port ? server.port : server.tls_port
^
server.c:4697:53: error: ‘struct redisServer’ has no member named ‘tls_port’
mode, server.port ? server.port : server.tls_port
^
server.c:4705:25: error: ‘struct redisServer’ has no member named ‘port’
mode, server.port ? server.port : server.tls_port,
^
server.c:4705:39: error: ‘struct redisServer’ has no member named ‘port’
mode, server.port ? server.port : server.tls_port,
^
server.c:4705:53: error: ‘struct redisServer’ has no member named ‘tls_port’
mode, server.port ? server.port : server.tls_port,
^
server.c: In function ‘sigShutdownHandler’:
server.c:4731:15: error: ‘struct redisServer’ has no member named ‘shutdown_asap’
if (server.shutdown_asap && sig == SIGINT) {
^
server.c:4735:22: error: ‘struct redisServer’ has no member named ‘loading’
} else if (server.loading) {
^
server.c:4741:11: error: ‘struct redisServer’ has no member named ‘shutdown_asap’
server.shutdown_asap = 1;
^
server.c: In function ‘redisFork’:
server.c:4798:15: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
server.stat_fork_time = ustime()-start;
^
server.c:4799:15: error: ‘struct redisServer’ has no member named ‘stat_fork_rate’
server.stat_fork_rate = (double) zmalloc_used_memory() * 1000000 / server.stat_fork_time / (1024*1024*1024); /* GB per second. */
^
server.c:4799:82: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
server.stat_fork_rate = (double) zmalloc_used_memory() * 1000000 / server.stat_fork_time / (1024*1024*1024); /* GB per second. */
^
In file included from server.h:70:0,
from server.c:30:
latency.h:85:15: error: ‘struct redisServer’ has no member named ‘latency_monitor_threshold’
if (server.latency_monitor_threshold && \
^
server.c:4800:9: note: in expansion of macro ‘latencyAddSampleIfNeeded’
latencyAddSampleIfNeeded("fork",server.stat_fork_time/1000);
^
server.c:4800:47: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
latencyAddSampleIfNeeded("fork",server.stat_fork_time/1000);
^
latency.h:86:10: note: in definition of macro ‘latencyAddSampleIfNeeded’
(var) >= server.latency_monitor_threshold) \
^
latency.h:86:24: error: ‘struct redisServer’ has no member named ‘latency_monitor_threshold’
(var) >= server.latency_monitor_threshold) \
^
server.c:4800:9: note: in expansion of macro ‘latencyAddSampleIfNeeded’
latencyAddSampleIfNeeded("fork",server.stat_fork_time/1000);
^
server.c:4800:47: error: ‘struct redisServer’ has no member named ‘stat_fork_time’
latencyAddSampleIfNeeded("fork",server.stat_fork_time/1000);
^
latency.h:87:37: note: in definition of macro ‘latencyAddSampleIfNeeded’
latencyAddSample((event),(var));
^
server.c: In function ‘sendChildCOWInfo’:
server.c:4818:11: error: ‘struct redisServer’ has no member named ‘child_info_data’
server.child_info_data.cow_size = private_dirty;
^
server.c: In function ‘loadDataFromDisk’:
server.c:4838:15: error: ‘struct redisServer’ has no member named ‘aof_state’
if (server.aof_state == AOF_ON) {
^
server.c:4839:38: error: ‘struct redisServer’ has no member named ‘aof_filename’
if (loadAppendOnlyFile(server.aof_filename) == C_OK)
^
server.c:4843:27: error: ‘struct redisServer’ has no member named ‘rdb_filename’
if (rdbLoad(server.rdb_filename,&rsi,RDBFLAGS_NONE) == C_OK) {
^
server.c:4848:24: error: ‘struct redisServer’ has no member named ‘masterhost’
if ((server.masterhost ||
^
server.c:4849:24: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
(server.cluster_enabled &&
^
In file included from server.c:31:0:
server.c:4850:35: error: ‘struct redisServer’ has no member named ‘cluster’
nodeIsSlave(server.cluster->myself))) &&
^
cluster.h:59:26: note: in definition of macro ‘nodeIsSlave’
#define nodeIsSlave(n) ((n)->flags & CLUSTER_NODE_SLAVE)
^
server.c:4858:30: error: ‘struct redisServer’ has no member named ‘replid’
memcpy(server.replid,rsi.repl_id,sizeof(server.replid));
^
server.c:4858:63: error: ‘struct redisServer’ has no member named ‘replid’
memcpy(server.replid,rsi.repl_id,sizeof(server.replid));
^
server.c:4859:23: error: ‘struct redisServer’ has no member named ‘master_repl_offset’
server.master_repl_offset = rsi.repl_offset;
^
server.c:4864:32: error: ‘struct redisServer’ has no member named ‘cached_master’
selectDb(server.cached_master,rsi.repl_stream_db);
^
server.c: In function ‘redisSetProcTitle’:
server.c:4882:15: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) server_mode = " [cluster]";
^
server.c:4883:20: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
else if (server.sentinel_mode) server_mode = " [sentinel]";
^
server.c:4887:15: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
server.bindaddr_count ? server.bindaddr[0] : "*",
^
server.c:4887:39: error: ‘struct redisServer’ has no member named ‘bindaddr’
server.bindaddr_count ? server.bindaddr[0] : "*",
^
server.c:4888:15: error: ‘struct redisServer’ has no member named ‘port’
server.port ? server.port : server.tls_port,
^
server.c:4888:29: error: ‘struct redisServer’ has no member named ‘port’
server.port ? server.port : server.tls_port,
^
server.c:4888:43: error: ‘struct redisServer’ has no member named ‘tls_port’
server.port ? server.port : server.tls_port,
^
server.c: In function ‘redisIsSupervised’:
server.c:4945:19: error: ‘struct redisServer’ has no member named ‘supervised_mode’
server.supervised_mode = SUPERVISED_SYSTEMD;
^
server.c: In function ‘iAmMaster’:
server.c:4962:21: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
return ((!server.cluster_enabled && server.masterhost == NULL) ||
^
server.c:4962:47: error: ‘struct redisServer’ has no member named ‘masterhost’
return ((!server.cluster_enabled && server.masterhost == NULL) ||
^
server.c:4963:20: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
(server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
^
In file included from server.c:31:0:
server.c:4963:59: error: ‘struct redisServer’ has no member named ‘cluster’
(server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
^
cluster.h:58:27: note: in definition of macro ‘nodeIsMaster’
#define nodeIsMaster(n) ((n)->flags & CLUSTER_NODE_MASTER)
^
server.c: In function ‘main’:
server.c:5011:11: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
server.sentinel_mode = checkForSentinelMode(argc,argv);
^
server.c:5028:15: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
if (server.sentinel_mode) {
^
server.c:5095:19: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
if (server.sentinel_mode && configfile && *configfile == '-') {
^
server.c:5117: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:5122:11: error: ‘struct redisServer’ has no member named ‘supervised’
server.supervised = redisIsSupervised(server.supervised_mode);
^
server.c:5122:49: error: ‘struct redisServer’ has no member named ‘supervised_mode’
server.supervised = redisIsSupervised(server.supervised_mode);
^
server.c:5123:28: error: ‘struct redisServer’ has no member named ‘daemonize’
int background = server.daemonize && !server.supervised;
^
server.c:5123:49: error: ‘struct redisServer’ has no member named ‘supervised’
int background = server.daemonize && !server.supervised;
^
server.c:5127:29: error: ‘struct redisServer’ has no member named ‘pidfile’
if (background || server.pidfile) createPidFile();
^
server.c:5132:16: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
if (!server.sentinel_mode) {
^
server.c:5142:19: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
if (server.cluster_enabled) {
^
server.c:5150:19: error: ‘struct redisServer’ has no member named ‘ipfd_count’
if (server.ipfd_count > 0 || server.tlsfd_count > 0)
^
server.c:5150:44: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
if (server.ipfd_count > 0 || server.tlsfd_count > 0)
^
server.c:5152:19: error: ‘struct redisServer’ has no member named ‘sofd’
if (server.sofd > 0)
^
server.c:5153: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:5154:19: error: ‘struct redisServer’ has no member named ‘supervised_mode’
if (server.supervised_mode == SUPERVISED_SYSTEMD) {
^
server.c:5155:24: error: ‘struct redisServer’ has no member named ‘masterhost’
if (!server.masterhost) {
^
server.c:5168:15: error: ‘struct redisServer’ has no member named ‘maxmemory’
if (server.maxmemory > 0 && server.maxmemory < 1024*1024) {
^
server.c:5168:39: error: ‘struct redisServer’ has no member named ‘maxmemory’
if (server.maxmemory > 0 && server.maxmemory < 1024*1024) {
^
server.c:5169: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:5172:31: error: ‘struct redisServer’ has no member named ‘server_cpulist’
redisSetCpuAffinity(server.server_cpulist);
^
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:3790:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘iAmMaster’:
server.c:4964:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [server.o] Error 1
make[1]: Leaving directory `/root/redis-stable/src'
make: *** [all] Error 2