[rrd-users] rrdtool 1.4.x without graphing support?

Tobias Oetiker tobi at oetiker.ch
Tue Nov 17 23:07:03 CET 2009


Hi Ulf,

Today Ulf Zimmermann wrote:

> > > > I am right now looking for librrd, including rrdcached (as
> > > > client) to be used for collectd. You wrote above that cached uses
> > > > glib?
> > >
> > > yes cached uses it, but only on the server ... clients do not use
> > > cached ...
> >
> > Ok, I will patch out the check for it in configure.ac for now
>
> I do not see an option to specific not rrd_daemon, so after removing the glib check in configure.ac, I added still CPPFLAGS to the configure for it to find the include files of the older glib 2.4.17, as otherwise the compile of rrd_daemon.c complains about all the glib includes.
>
> This results still into two errors:
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR="\"/home/ulf/tmp4/testinstall/share/locale\"" -DVERSION='"1.4.2"' -DLOCALSTATEDIR='"/home/ulf/tmp4/testinstall/var"' -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/libxml2 -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W  -fPIC -DPIC -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W  -fPIC -DPIC -MT rrdcached-rrd_daemon.o -MD -MP -MF ".deps/rrdcached-rrd_daemon.Tpo" -c -o rrdcached-rrd_daemon.o `test -f 'rrd_daemon.c' || echo './'`rrd_daemon.c; \
> then mv -f ".deps/rrdcached-rrd_daemon.Tpo" ".deps/rrdcached-rrd_daemon.Po"; else rm -f ".deps/rrdcached-rrd_daemon.Tpo"; exit 1; fi
> rrd_daemon.c: In function `flush_old_values':
> rrd_daemon.c:822: error: void value not ignored as it ought to be
> rrd_daemon.c: In function `handle_request_forget':
> rrd_daemon.c:1271: error: void value not ignored as it ought to be
>
> This is on the 1.4.2 code, line 822 is:
>
>     assert( g_tree_remove(cache_tree, cfd.keys[k]) == TRUE );
>
> Line 1271 is:
>
>   found = g_tree_remove(cache_tree, file);
>
> In version 2.4.17 g_tree_remove returns void, in version 2.8 and later this changes to Boolean. Function is used once to assert, I think I can just patch that out to not check for TRUE and assert. But the other location at 1271 wants to do something based on the return. Any suggestion if I can patch out the journal_write?

do you need rrd_cached ? I thought you were doing clients ... they
do not need it ... just don't compile rrd_cached.

cheers
tobi

>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list