Compile Issue with latest SVN version of 4.3.0

Iain M Conochie iain at shihad.org
Fri Nov 27 13:23:26 CET 2009


Hey People,

I have downloaded the latest SVN tarball and am having issues compiling 
xymon. The error I get is:

In file included from do_rrd.c:546:
rrd/do_net.c: In function ‘do_net_rrd’:
rrd/do_net.c:123: error: ‘plusminuts’ undeclared (first use in this 
function)
rrd/do_net.c:123: error: (Each undeclared identifier is reported only once
rrd/do_net.c:123: error: for each function it appears in.)
rrd/do_net.c:131: error: ‘offset’ undeclared (first use in this function)

I have rrdtoool-1.2.23-1 and I notice that this part of the function is 
not in the version that I am currently running. The code snippet that 
has the issue is:

if ( offsetdirection && ((strcmp(offsetdirection, "+") == 0) || 
(strcmp(offsetdirection, "-") == 0)) &&
plusminuts && (strcmp(plusminus, "+/-") == 0) &&
secs && (strcmp(secs, "secs") == 0) ) {
/* Looks sane */
sprintf(offsetval, "%s%s", offsetdirection, offset);
}
}

if (offsetval) {
sprintf(dataforntpstat, "offset=%s", offset);
do_ntpstat_rrd(hostname, testname, classname, pagepaths, dataforntpstat, 
tstamp);
}


Any Ideas?

If any more info needed please do not hesitate to ask

Cheers

Iain



More information about the Xymon mailing list