> Because no C++ compiler is involved ...
>
> The next problem now is that I need a 64bit version of rrdtools, but
> it doesn't compile. Will check on the rrdtools-users list, and post
> an update here.
To compile ganglia 64 bit on Solaris with Sun's compiler:
- compile rrdtools 64 bit
CC="cc -fast -fsimple=0 -native -xarch=v9" ./configure
The important part here is -fsimple=0, as -fast causes the compiler to
generate non-IEEE math ( = -fsimple=2), which will fail with rrdtools'
configure.
I ran into problems with the perl stuff, presumably because I don't
have a 64 bit perl installed, but as I only need the 64 bit librrd.a,
I ignored that.
- compile ganglia 64 bit
RRD=/usr/local/rrdtool64 \
CC="cc -Xa -fast -native -xarch=v9" \
CPPFLAGS="-I$RRD/include" \
LDFLAGS="-L$RRD/lib" \
./configure --with-gmetad
Then remove -O0 from gmetad/Makefile to avoid a linker error.
Build command:
make CFLAGS="-g -DHAVE_STRERROR"
- testing
As per documentation, run ./gmond. This exits immediately without
obvious reason (I truss'd the process - no idea).
Running ./gmond -d1, I get
# ./gmond -d1
cpustuff: No such file or directory
gmond launches in the foreground, and telnet localhost 8649 works
as documented.