Hi all,
I faced some problems compiling zabbix 1.0 agents (agent, agentd and sender) on my True64 (OSF1 V5.1 1885 alpha) using Compac C compiler (Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885) - Compiler Driver V6.4-215 (sys) cc Driver)
Makefile of src/agent/: option Wall not supported
Option Wall is not supported with this version of CC, so You have to remove them to make 'make' run. That's wath I've done to build them.
Agent(d): lot of options not supported
When building and linking ('make'), lots of warning are generated, mainly regarding args for printf in some includes file, but build is ok.
Anyway, when you use the binaries, lots of keys are not usables (load, load5, load15, memory usage, ...). I guess it's linked.
Has anybody already had this issue? Is she fixed in later releases?
example of the make warnings:
I faced some problems compiling zabbix 1.0 agents (agent, agentd and sender) on my True64 (OSF1 V5.1 1885 alpha) using Compac C compiler (Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885) - Compiler Driver V6.4-215 (sys) cc Driver)
Makefile of src/agent/: option Wall not supported
Option Wall is not supported with this version of CC, so You have to remove them to make 'make' run. That's wath I've done to build them.
Agent(d): lot of options not supported
When building and linking ('make'), lots of warning are generated, mainly regarding args for printf in some includes file, but build is ok.
Anyway, when you use the binaries, lots of keys are not usables (load, load5, load15, memory usage, ...). I guess it's linked.
Has anybody already had this issue? Is she fixed in later releases?
example of the make warnings:
Code:
Script started on Tue Nov 9 18:17:19 2004
# make^M
cc -o ../../bin/zabbix_agent -g -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../includ
e/security.c ../../include/snprintf.c^M
zabbix_agent.c:^M
sysinfo.c:^M
../../include/log.c:^M
cc: Warning: ../../include/log.c, line 61: In this statement, this argument to fprintf contains a bad conversion specification
"%m" that will cause unpredictable behavior. (badconvspec)^M
fprintf(stderr, "Unable to open debug file [%s] [%m]\n", filename);^M
----------------------------------------^^M
cc: Info: ../../include/log.c, line 103: In this statement, an array is being accessed outside the bounds specified for the ar
ray type. (subscrbounds)^M
str[MAX_STRING_LEN]=0;^M
--------------------^^M
../../include/cfg.c:^M
cc: Warning: ../../include/cfg.c, line 62: In this statement, this argument to fprintf contains a bad conversion specification
"%m" that will cause unpredictable behavior. (badconvspec)^M
fprintf(stderr, "Cannot open config file [%s] [%m]\n",cfg_file);^M
--------------------------------^^M
../../include/security.c:^M
../../include/snprintf.c:^M
cc -o ../../bin/zabbix_agentd -g -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/lo
g.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c^M
zabbix_agentd.c:^M
sysinfo.c:^M
stats.c:^M
cc: Warning: stats.c, line 76: In this statement, this argument to fprintf contains a bad conversion specification "%m" that w
ill cause unpredictable behavior. (badconvspec)^M
fprintf(stderr, "Cannot open file [%s] [%m]\n","/tmp/zabbix_agentd.tmp2");^M
----------------------------------------^^M
interfaces.c:^M
cc: Warning: interfaces.c, line 112: In this statement, this argument to fprintf contains a bad conversion specification "%m"
that will cause unpredictable behavior. (badconvspec)^M
fprintf(stderr, "Cannot open config file [%s] [%m]\n","/proc/net/dev");^M
--------------------------------^^M
cc: Warning: interfaces.c, line 347: In this statement, this argument to fprintf contains a bad conversion specification "%m"
that will cause unpredictable behavior. (badconvspec)^M
fprintf(stderr, "Cannot open config file [%s] [%m]\n","/proc/net/dev");^M
I hope it works.
Comment