I am having problems compiling ganglia 3.02 on Sparc Solaris 9 machine
using Forte 7 (an older version of Sun Studio). This is the error I get:

[EMAIL PROTECTED]:~/ganglia-3.0.2$make
make  all-recursive
Making all in srclib
Making all in libmetrics
make  all-recursive
Making all in solaris
source='metrics.c' object='metrics.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../build/depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H  -I. -I.
-I..     -I.. -I../lib -g -D__STDC__ -D_POSIX_C_SOURCE=199506L
-DHAVE_STRERROR -c -o metrics.lo metrics.c
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -g -D__STDC__
-D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -c metrics.c  -KPIC -DPIC -o
.libs/metrics.o
command line: warning: macro redefined: __STDC__
"/usr/include/sys/resource.h", line 126: incomplete struct/union/enum
timeval: ru_utime
"../unpifi.h", line 34: syntax error before or at: u_char
"../unpifi.h", line 34: cannot recover from previous errors
cc: acomp failed for metrics.c
*** Error code 1
make: Fatal error: Command failed for target `metrics.lo'
Current working directory
/home/russelln/ganglia-3.0.2/srclib/libmetrics/solaris
*** Error code 1
<continues>

googleing has lead me to the same error for others (including
sunfreeware) without a posted solution. I have not tried with gcc since
it is not part of our local builds.

Has anyone successfully compiled ganglia for Solaris 9? If so what
compiler did you use.

thanks
russell

Reply via email to