Many thanks for the quick responses!
Okay, after a bit more poking about, I'm wondering if it's really these
compiler error messages that are the problem (previous pieces of gmetad
that compile before rrd_helpers.c all also produce similar warnings but
seem to compile fine). However, I did find that the .deps file
referenced (.deps/rrd_helpers.Po) is empty - could this be part of the
problem?
And yes, the /sw/lib and /sw/include directories were added by me
(using ./configure --with-gmetad LDFLAGS=-L/sw/lib
CPPFLAGS=-I/sw/include) since that's where fink keeps its files (and
the rrdtools (version 1.0.40-1) were all installed using fink).
On Tuesday, April 8, 2003, at 02:07 PM, matt massie wrote:
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?
--
M. Michael Barmada, Ph.D. [EMAIL PROTECTED]
Assistant Professor (412) 383-7959 (voice)
Department of Human Genetics (412) 624-3020 (fax)
University of Pittsburgh
Graduate School of Public Health, Crabtree A300
130 Desoto Street
Pittsburgh, PA 15261
=====================================================================
There are three kinds of people in this world:
those that can count, and those that can't...
The requirements said: Windows 2000 or better.
So I got a Macintosh.
To know the mighty works of God; to comprehend His wisdom and
majesty and power; to appreciate, in degree, the wonderful working
of His laws, surely all this must be a pleasing and acceptable mode
of worship to the Most High, to whom ignorance can not be more
grateful than knowledge.
~Copernicus
=====================================================================