Thank you Carlo! I removed "-std=c99" from the CFLAGS, CPPFLAGS and CXXFLAGS in the Makefile inside the libmetrics folder. After that, everything compiled and I was able to succesfully call "make install".
Now I can do some real work trying Ganglia! -Jorge -----Original Message----- From: Carlo Marcelo Arenas Belon [mailto:[email protected]] Sent: Tuesday, April 07, 2009 3:51 AM To: Jorge Medina Cc: [email protected] Subject: Re: [Ganglia-general] Building Ganglia on Solaris 10 (amd64) On Mon, Apr 06, 2009 at 06:02:45PM -0400, Jorge Medina wrote: > > At this point, I get the following errors: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -m64 -O3 -std=c99 > -I/home/sdkadmin/opt/ganglia/apr/include/apr-1 -I.. -I../../lib > -I../../include -m64 -O3 -std=c99 > -I/home/sdkadmin/opt/ganglia/apr/include/apr-1 -Wall -DHAVE_STRERROR > -MT metrics.lo -MD -MP -MF .deps/metrics.Tpo -c metrics.c -fPIC -DPIC > -o .libs/metrics.o In file included from /usr/include/procfs.h:26, > from metrics.c:62: > /usr/include/sys/procfs.h:111: error: field `pr_action' has incomplete > type > /usr/include/sys/procfs.h:112: error: syntax error before "stack_t" > /usr/include/sys/procfs.h:130: error: syntax error before '}' token > /usr/include/sys/procfs.h:164: error: syntax error before "lwpstatus_t" this is a bug on Solaris headers triggered because of "-std=c99" while building libmetrics, as a workaround you can build "metrics.c" without that and then use it to generate the static library that will be linked with gmond later. Carlo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

