[hobbit] Compile error - RRDTOOL 1.2.19
bb4 at richter-it.net
bb4 at richter-it.net
Mon Oct 19 16:11:32 CEST 2009
Hi Shaun,
I just tried to install XYmon 4.2.3 on a Solaris 10 zone and ran into the same
problem.
I changed line 30 in test-rrd.c from
result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize);
to
result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL,
&ymin, &ymax);
and it seems to work.
--- test-rrd.c.orig Mon Oct 19 16:07:58 2009
+++ test-rrd.c Mon Oct 19 16:10:39 2009
@@ -27,7 +27,7 @@
#ifdef RRDTOOL12
result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL,
&ymin, &ymax);
#else
- result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize);
+ result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL,
&ymin, &ymax);
#endif
return 0;
Maybe that's all you have to do.
Cheers
Torsten
Shaun Phillips <tainted.soul69 at googlemail.com> hat am 19. Oktober 2009 um 15:36
geschrieben:
> Hi Torsten,
>
> No that is set?
>
> bash-3.00# ./configure
> Configuration script for Xymon
> This script asks a few questions and builds a Makefile to compile Xymon
> Checking your make-utility
> Checking pre-requisites for building Xymon
> Checking for fping ...
> Hobbit has a built-in ping utility (hobbitping)
> However, it is not yet fully stable and therefore it
> may be best to use the external fping utility instead.
> I found fping in /usr/local/sbin/fping
> Do you want to use it [Y/n] ?
> Y
> Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
> 127.0.0.1 is alive
> OK, will use '/usr/local/sbin/fping' for ping tests
> NOTE: If you are using an suid-root wrapper, make sure the 'hobbit'
> user is also allowed to run fping without having to enter passwords.
> For 'sudo', add something like this to your 'sudoers' file:
> hobbit: ALL=(ALL) NOPASSWD: /usr/local/sbin/fping
>
> Checking for RRDtool ...
> test-rrd.c: In function `main':
> test-rrd.c:30: error: too few arguments to function `rrd_graph'
> gmake: *** [test-compile] Error 1
> Not RRDtool 1.0.x, checking for 1.2.x
> Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
> ERROR: RRDtool library files found in /usr/local/rrdtool-1.2.19/lib, but
> link fails.
> bash-3.00# echo $MAKE
> /usr/sfw/bin/gmake
> bash-3.00# echo $PATH
> /usr/sbin:/usr/bin:/usr/local/bin/
> bash-3.00#
>
> Any ideas?
> On Mon, Oct 19, 2009 at 1:03 PM, bb4 at richter-it.net <bb4 at richter-it.net>wrote:
>
> > Hi Shaun,
> >
> > do you have gcc installed?
> > Just check with find / -name gcc -type f -ls and it should display
> > something like that:
> >
> > 22054 128 -r-xr-xr-x 3 root bin 121804 Feb 22 2008
> > /usr/sfw/bin/gcc
> >
> > If thats the case you just have to add /usr/sfw/bin (or whatever path is
> > displayed there) to your PATH environment variable.
> > Otherwise you have to install gcc.
> >
> > HTH
> > Torsten
> >
> > Shaun Phillips <tainted.soul69 at googlemail.com> hat am 19. Oktober 2009 um
> > 13:07 geschrieben:
> >
> >
> > > Hi everyone,
> > >
> > > Anyone else get this compiling Hobbit 4.2.3 on Solaris 10 (zone)
> > >
> > > *Checking for RRDtool ...
> > > *gmake: gcc: Command not found*
> > > gmake: *** [test-compile] Error 127
> > > Not RRDtool 1.0.x, checking for 1.2.x
> > > gmake: gcc: Command not found
> > > gmake: *** [test-compile] Error 127
> > > ERROR: RRDtool include files found in /usr/local/rrdtool-1.2.19/include,
> > but
> > > compile fails.
> > > *
> > >
> > > I've got rrdtool-1.2.19-sol10-sparc-local installed?
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20091019/89b5af3f/attachment.html>
More information about the Xymon
mailing list