OK. great ! after including /usr/ccs/bin in the PATH for 'ar' it compiles fine.
The bad news is that when I start gmond it ends with "Unable to collect metric 'cpu_in_machine' on this platform. Exiting." # /usr/sbin/gmond --debug=9 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='ncpus' ncpus: kc is 100140d90 ncpus: Just did kstat_lookup(). ncpus: Looked up. ncpus: Kstat data type: 2, Value returned: 4, 0 0 0 ncpus: Kernel close. Val returned: 4 metric_init: Assigning cpu_num value (4) to ncpus. Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='boot_time' boot_time: kc is 100140d90 boot_time: Just did kstat_lookup(). boot_time: Looked up. boot_time: Kstat data type: 2, Value returned: 1158220143, 0 0 0 boot_time: Kernel close. Val returned: 1158220143 Lookup up kstat: km (unix?)='cpu_info', ks (system_misc?)='cpu_info0',kn (resulting metric?)='clock_MHz' clock_MHz: kc is 100140d90 clock_MHz: Just did kstat_lookup(). clock_MHz: Looked up. clock_MHz: Kstat data type: 3, Value returned: 0, 400 400 400 clock_MHz: Kernel close. Val returned: 400 running update_metric_data() ... Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='avenrun_15min' avenrun_15min: kc is 100140d90 avenrun_15min: Just did kstat_lookup(). avenrun_15min: Looked up. avenrun_15min: Kstat data type: 2, Value returned: 167, 0 0 0 avenrun_15min: Kernel close. Val returned: 167 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='avenrun_5min' avenrun_5min: kc is 100140d90 avenrun_5min: Just did kstat_lookup(). avenrun_5min: Looked up. avenrun_5min: Kstat data type: 2, Value returned: 192, 0 0 0 avenrun_5min: Kernel close. Val returned: 192 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='avenrun_1min' avenrun_1min: kc is 100140d90 avenrun_1min: Just did kstat_lookup(). avenrun_1min: Looked up. avenrun_1min: Kstat data type: 2, Value returned: 83, 0 0 0 avenrun_1min: Kernel close. Val returned: 83 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulting metric?)='nproc' nproc: kc is 100140d90 nproc: Just did kstat_lookup(). nproc: Looked up. nproc: Kstat data type: 2, Value returned: 94, 0 0 0 nproc: Kernel close. Val returned: 94 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_pages',kn (resulting metric?)='pagesfree' pagesfree: kc is 100140d90 pagesfree: Just did kstat_lookup(). pagesfree: Looked up. pagesfree: Kstat data type: 4, Value returned: 0, 318509 318509 318509 pagesfree: Kernel close. Val returned: 318509 Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_pages',kn (resulting metric?)='pagestotal' pagestotal: kc is 100140d90 pagestotal: Just did kstat_lookup(). pagestotal: Looked up. pagestotal: Kstat data type: 4, Value returned: 0, 501205 501205 501205 pagestotal: Kernel close. Val returned: 501205 Before PageToK(): mem_free = 318509, mem_total = 501205 PageToK(): 318509 * PAGESIZE (8192) / 1024 (Kb conversion) = 2548072 PageToK(): 501205 * PAGESIZE (8192) / 1024 (Kb conversion) = 4009640 PageToK(): 673280 * PAGESIZE (8192) / 1024 (Kb conversion) = 5386240 PageToK(): 499642 * PAGESIZE (8192) / 1024 (Kb conversion) = 3997136 Old/new: Total = 673280/5386240 , Free = 499642/3997136 solaris.c: metric_init() ok. udp_recv_channel mcast_join=239.2.11.73 mcast_if=NULL port=8649 bind=239.2.11.73 tcp_accept_channel bind=NULL port=8649 Unable to collect metric 'cpu_in_machine' on this platform. Exiting. Christopher Slaughter <[EMAIL PROTECTED]> 10/11/2006 02:11 To Jose Antonio Jimenez Baena/Spain/[EMAIL PROTECTED] cc [email protected] Subject Re: [Ganglia-general] compile ganglia-3.0.3 in Solaris 9 I had this same error when I built ganglia on Solaris 9. The problem is the line: false cru libgetopthelper.a getopt1.o getopt.o getopt_init.o The false is due to (this is from memory - I'm not at the machine I built it on) ar not being found in the path, so it returns false, instead of reporting that ar was not found. I don't remember exactly where ar lives on Solaris, but it is either / usr/ccs/bin or /usr/ucb. Look in these directories, and whereever you find ar, add that directory to your path, and then run configure again... On Nov 9, 2006, at 3:59 AM, Jose Antonio Jimenez Baena wrote: > > Hi all, > > I'm desperate !! I need gmond daemon for Solaris 9. I've gmetad, > php, apache, etc in Aix, working fine, but I have some Solaris > servers that I need to add in order to have all my servers > monitorised by ganglia. I've looked for compiled gmond for Solaris > 9, but I've not found anything. > > I've spent a lot of hours trying to compile ganglia in Solaris 9, > but without success. > > Environment: > ------------------------------------------------------------------- > Operating System: Solaris9 > > gcc -v > Reading specs from /usr/local/lib/gcc-lib/sparc-sun- > solaris2.9/3.3.1/specs > Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/ > usr/ccs/bin/ld --disable-nls > Thread model: posix > gcc version 3.3.1 > > make -v > GNU Make 3.80 > > export CC="gcc -m64" > > > Problem description: > ------------------------------------------------------------------- > - 'configure' script works fine. Ends with: > Welcome to Ganglia. > Version: 3.0.3 (Orwille) > Library: Release 3.0.3 0:0:0 > Type "make" to compile. > > - The problem is when I execute 'make': > > # make > make all-recursive > make[1]: Entering directory `/opt/tar/ganglia-3.0.3/ganglia-3.0.3' > Making all in lib > make[2]: Entering directory `/opt/tar/ganglia-3.0.3/ganglia-3.0.3/lib' > if gcc -m64 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../srclib/ > expat/lib/ -I../srclib/libmetrics/ -I../srclib/apr/include/ -I../ > srclib/apr/include/arch/unix/ -I../srclib/confuse/src -g -O2 -Wall - > D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -MT > getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \ > then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f > ".deps/getopt1.Tpo"; exit 1; fi > if gcc -m64 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../srclib/ > expat/lib/ -I../srclib/libmetrics/ -I../srclib/apr/include/ -I../ > srclib/apr/include/arch/unix/ -I../srclib/confuse/src -g -O2 -Wall - > D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -MT > getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \ > then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/ > getopt.Tpo"; exit 1; fi > if gcc -m64 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../srclib/ > expat/lib/ -I../srclib/libmetrics/ -I../srclib/apr/include/ -I../ > srclib/apr/include/arch/unix/ -I../srclib/confuse/src -g -O2 -Wall - > D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DHAVE_STRERROR -MT > getopt_init.o -MD -MP -MF ".deps/getopt_init.Tpo" -c -o > getopt_init.o getopt_init.c; \ > then mv -f ".deps/getopt_init.Tpo" ".deps/getopt_init.Po"; else rm - > f ".deps/getopt_init.Tpo"; exit 1; fi > rm -f libgetopthelper.a > false cru libgetopthelper.a getopt1.o getopt.o getopt_init.o > make[2]: *** [libgetopthelper.a] Error 1 > make[2]: Leaving directory `/opt/tar/ganglia-3.0.3/ganglia-3.0.3/lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/opt/tar/ganglia-3.0.3/ganglia-3.0.3' > make: *** [all] Error 2 > > > Thanks in advance for your help. > > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ > _________________ > Ganglia-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ganglia-general

