Today, M. Michael Barmada wrote forth saying...
> I'm wondering if anyone has had success compiling gmetad on OSX? Even
> after getting everything else working (installing rrd through fink
> required some additional arguments to configure to get all the libraries
> recognized), 'make' keeps failing in the gmetad directory with the
> following output:
the functions (err_sys, err_msg, debug_msg) are in libganglia which is in
the ${src_dir}/lib directory. i can't tell exactly what is going on here
but it looks like -lganglia is not being added at link time. since it is
statically linked, you can also link to ${src_dir}/lib/.libs/libganglia.a.
are you compiling on the sourceforge compile farm? i noticed a
-I/sw/include (which is where they put there headers) or is /sw/include a
standard location?
-matt
> source='rrd_helpers.c' object='rrd_helpers.o' libtool=no \
> depfile='.deps/rrd_helpers.Po' tmpdepfile='.deps/rrd_helpers.TPo' \
> depmode=gcc /bin/sh ../config/depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/include -I../lib -I../gmond -g
> -O2 -Wall -c `test -f 'rrd_helpers.c' || echo './'`rrd_helpers.c
> In file included from /usr/include/mach/host_info.h:65,
> from /usr/include/mach/mach_types.h:66,
> from /usr/include/pthread.h:44,
> from ../lib/ganglia/net.h:19,
> from ./gmetad.h:3,
> from rrd_helpers.c:9:
> /usr/include/mach/time_value.h:62: redefinition of `struct time_value'
> rrd_helpers.c: In function `my_mkdir':
> rrd_helpers.c:25: warning: implicit declaration of function `err_sys'
> rrd_helpers.c: In function `RRD_update':
> rrd_helpers.c:57: warning: implicit declaration of function `err_msg'
> rrd_helpers.c:61: warning: implicit declaration of function `debug_msg'
> make[2]: *** [rrd_helpers.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Anyone have any ideas?
>
>