zabbix-module-sockets
zabbix-module-sockets copied to clipboard
I get errors with zabbix-3.4.4
make all-recursive
make[1]: Entering directory /usr/local/src/download/zabbix-module-sockets-1.1.0' Making all in src/modules/sockets make[2]: Entering directory
/usr/local/src/download/zabbix-module-sockets-1.1.0/src/modules/sockets'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I/usr/local/src/download/zabbix-3.4.4/include -g -O2 -MT libzbxsockets_la-tcp.lo -MD -MP -MF .deps/libzbxsockets_la-tcp.Tpo -c -o libzbxsockets_la-tcp.lo test -f 'tcp.c' || echo './'
tcp.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I/usr/local/src/download/zabbix-3.4.4/include -g -O2 -MT libzbxsockets_la-tcp.lo -MD -MP -MF .deps/libzbxsockets_la-tcp.Tpo -c tcp.c -fPIC -DPIC -o .libs/libzbxsockets_la-tcp.o
In file included from libzbxsockets.h:13:0,
from tcp.c:1:
tcp.c: In function 'tcp_stat':
tcp.c:124:63: error: expected ')' before 'path'
SET_MSG_RESULT(result, zbx_dsprintf("Error reading %s: %s", path, zbx_strerror(errno)));
^
/usr/local/src/download/zabbix-3.4.4/include/module.h:141:24: note: in definition of macro 'SET_MSG_RESULT'
(res)->msg = (char *)(val)
^
/usr/local/src/download/zabbix-3.4.4/include/common.h:1044:64: note: in expansion of macro 'ZBX_CONST_STRING'
define zbx_dsprintf(dest, fmt, ...) __zbx_zbx_dsprintf(dest, ZBX_CONST_STRING(fmt), ##VA_ARGS)
^
tcp.c:124:26: note: in expansion of macro 'zbx_dsprintf'
SET_MSG_RESULT(result, zbx_dsprintf("Error reading %s: %s", path, zbx_strerror(errno)));
^
make[2]: *** [libzbxsockets_la-tcp.lo] Error 1
make[2]: Leaving directory /usr/local/src/download/zabbix-module-sockets-1.1.0/src/modules/sockets' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/usr/local/src/download/zabbix-module-sockets-1.1.0'
make: *** [all] Error 2