[rrd-developers] compile problem rrd_daemon on hardy

Tobias Oetiker tobi at oetiker.ch
Sun Nov 2 16:36:31 CET 2008


Kevin,

I had to remove your lua configure patch since I need the lua
Makefile to build the distribution.

So I tried to look into the issue on my dev maching (ubuntu hardy)
and found that rrd_daemon does not compile at all.

The problem ist that you are setting

static pthread_cond_t  cache_cond = PTHREAD_COND_INITIALIZER;

and PTHREAD_COND_INITIALIZER on hardy is:

/usr/include/pthread.h:#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }

while it was

/usr/include/pthread.h:#define PTHREAD_COND_INITIALIZER { }

on older linuxes.

rrd_daemon.c: In function 'handle_request_update':
rrd_daemon.c:1453: error: expected expression before '{' token
make[2]: *** [rrdcached-rrd_daemon.o] Error 1
make[2]: Leaving directory `/home/oetiker/checkouts/rrdtool/trunk/program/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oetiker/checkouts/rrdtool/trunk/program'
make: *** [all] Error 2

fix ?

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-developers mailing list