Hi Aravindh,

 a few questions:

- which gcc are you using (gcc --version)? I can build 3.0.2 and 3.0.3
on Solaris 8 with gcc-3.3.1.
- which make (gnu-make is recommended)?
- On 64-bit platforms configure using:  CC="gcc -m64" ./configure

 Oh yes, please try 3.0.3. Released yesterday :-)

Martin

--- [EMAIL PROTECTED] wrote:

> Hi all,
>  
> I am getting the following error while installing Ganglia 3.0.2 on
> Solaris 9 machine.  The error is as follows:
>  
> #PosixConnector#make
> make  all-recursive
> Making all in srclib
> Making all in libmetrics
> make  all-recursive
> Making all in solaris
> if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
> -I.
> -I. -I..   -I/tmp/rrdtool/lb/include
> -I/tmp/rrdtool/lb/include/libart-2.0
> -I/tmp/rrdtool/lb/include/freetype2
> -I/tmp/rrdtool/lb/include/libpng  -I.. -I../lib -O3 -D__EXTENSIONS__
> -D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -MT metrics.lo -MD -MP -MF
> ".deps/metrics.Tpo" -c -o metrics.lo metrics.c; \
> then mv -f ".deps/metrics.Tpo" ".deps/metrics.Plo"; else rm -f
> ".deps/metrics.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/tmp/rrdtool/lb/include
> -I/tmp/rrdtool/lb/include/libart-2.0
> -I/tmp/rrdtool/lb/include/freetype2
> -I/tmp/rrdtool/lb/include/libpng -I.. -I../lib -O3 -D__EXTENSIONS__
> -D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -MT metrics.lo -MD -MP -MF
> .deps/metrics.Tpo -c metrics.c  -fPIC -DPIC -o .libs/metrics.o
> metrics.c:167: error: static declaration of 'ncpus' follows
> non-static
> declaration
> /usr/include/sys/cpuvar.h:351: error: previous declaration of 'ncpus'
> was here
> metrics.c: In function 'percentages':
> metrics.c:306: warning: pointer targets in assignment differ in
> signedness
> *** Error code 1
> make: Fatal error: Command failed for target `metrics.lo'
> Current working directory
> /opt/ganglia/ganglia-3.0.2/srclib/libmetrics/solaris
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory
> /opt/ganglia/ganglia-3.0.2/srclib/libmetrics
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory
> /opt/ganglia/ganglia-3.0.2/srclib/libmetrics
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /opt/ganglia/ganglia-3.0.2/srclib
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /opt/ganglia/ganglia-3.0.2
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> #PosixConnector#pwd
> /opt/ganglia/ganglia-3.0.2
>  
> But the same thing is working fine on Linux....Any idea of how to
> solve
> this or any hints that would take me out of this.......
> 
>  
> Thanks and Regards
>  
> ARAVINDH VARADHARAJU (WTO1 - E-Enabling)
> Project Engineer
> Tel       : +91- 80- 2852 0408 Extn.1053
> Mobile : +91- 99860 17606
>  
> "A Smile can take you MILES......! Keep Smiling and Have a Nice Day"
>  
> 


------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

Reply via email to