$ ./configure --enable-agent
$ make
...
rm -f libsimplesysinfo.a
ar cru libsimplesysinfo.a libsimplesysinfo_a-simple.o libsimplesysinfo_a-ntp.o
ranlib libsimplesysinfo.a
Making all in osf
source='cpu.c' object='libspecsysinfo_a-cpu.o' libtool=no DEPDIR=.deps depmode=none /bin/bash ../../../../depcomp cc -DHAVE_CONFIG_H -I. -I../../../../include -I../../../../src/zabbix_agent/ -g -c -o libspecsysinfo_a-cpu.o `test -f 'cpu.c' || echo './'`cpu.c
cc: Error: cpu.c, line 99: In this statement, "cmd" is not declared. (undeclared)
ret = EXECUTE_DBL(cmd, "uptime | awk '{printf(\"%s\", $(NF-2))}' | sed 's/[ ,]//g'", result);
----------------------------------^
cc: Warning: cpu.c, line 99: In this statement, the referenced type of the pointer value ""uptime | awk '{printf("%s", $(NF-2))}' | sed 's/[ ,]//g'"" is "char", which is not compatible with "struct declared without a tag". (ptrmismatch)
ret = EXECUTE_DBL(cmd, "uptime | awk '{printf(\"%s\", $(NF-2))}' | sed 's/[ ,]//g'", result);
---------------------------------------^
cc: Error: cpu.c, line 99: In this statement, "EXECUTE_DBL" expects 2 arguments, but 3 are supplied. (toomanyargs)
ret = EXECUTE_DBL(cmd, "uptime | awk '{printf(\"%s\", $(NF-2))}' | sed 's/[ ,]//g'", result);
----------------------^
*** Exit 1