[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Compile error - RRDTOOL 1.2.19
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Compile error - RRDTOOL 1.2.19
- From: Shaun Phillips <tainted.soul69 (at) googlemail.com>
- Date: Mon, 19 Oct 2009 22:51:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=NBR7iCgpcp+567p3gnJyiHsejGCzoWK4b7IHI8p49os=; b=hNRNAWgVq2gJKl5CeV1IxW39fST99IUkFzJuNxuupdFdk19S5yYzLrYUuv+jWYNA0J MaVY7b+XFuiyEY04TwQ1olRZDLF6MpVCvAgVp3RmysIAz2EXgKPjuDnBEyz9Oy5gj0+f fEdLdm2rHTNWiDxq46ecOrNRz+XP/hsfWz2o0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rQkiNpicGsFuohmGLFf+rfHfuBMGDRzJnX3bJSNXjjAJv2xzwYuHfbHAV8KzH0KTpB kbCPY7lZO63N2rp/UkBfa4GJNyOPeebpsU9Z8g9j/RetFIdoyg8zOGKKXjGNLFjCrmzB KIZ9nOI/miX3oyTM2w6tz/rS0vymIDUVhERig=
- References: <8dca7fe00910190407t358c87bk3c4278dd6dfd0114 (at) mail.gmail.com> <1973723773.208775.1255953802105.JavaMail.open-xchange (at) oxltgw04.schlund.de> <8dca7fe00910190636n7b40f959o3957d34325aa7b16 (at) mail.gmail.com> <1047648111.212817.1255961492212.JavaMail.open-xchange (at) oxltgw03.schlund.de>
Hi Torsten,
Interesting. It doesnt work for me! :(
#ifdef RRDTOOL12
result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL,
&ymin, &ymax);
#else
result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL,
&ymin, &ymax);
#endif
return 0;
}
~
"./build/test-rrd.c" 35 lines, 689 characters
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 ...
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#
This is a new zone and only things that have been installed so far are.
libiconv-1.11-sol10-sparc-local
fping-2.4b2-sol10-sparc-local
make-3.81-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local
rrdtool-1.2.19-sol10-sparc-local
Regards
Shaun
On Mon, Oct 19, 2009 at 3:11 PM, bb4 (at) richter-it.net <bb4 (at) richter-it.net>wrote:
> 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?
> > >
>