Making install in zbxeval
make[3]: Entering directory `/data/dl/zabbix-6.0.13/src/libs/zbxeval'
depbase=`echo parse.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT parse.o -MD -MP -MF $depbase.Tpo -c -o parse.o parse.c &&\
mv -f $depbase.Tpo $depbase.Po
parse.c: In function ‘eval_get_last_function_token’:
parse.c:391:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i = ctx->ops.values_num - 1; i >= 0; i --)
^
parse.c:391:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[3]: *** [parse.o] Error 1
make[3]: Leaving directory `/data/dl/zabbix-6.0.13/src/libs/zbxeval'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/data/dl/zabbix-6.0.13/src/libs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/data/dl/zabbix-6.0.13/src'
make: *** [install-recursive] Error 1
这是gcc版本太低导致的,centos7默认是4.8.5,最好升级到7以上,升级方法看这里:
cnetos7.x升级gcc版本