Hello!
I am trying to build Ganglia on Solaris 10 64-bit (amd64), but I am
having problems with the 'make' step.
Any help is appreciated. Below are the details.
-Jorge
I got a source copy of Apache APR, libconfuse and Ganglia. Here are the
commands I am using to build it:
Apache APR (1.3.3)
CFLAGS="-m64 -O3"
CPPFLAGS="-m64 -O3"
CXXFLAGS="-m64 -O3"
./configure --prefix=/home/developer/opt/ganglia/apr
--enable-threads
gmake
gmake install
Confuse (2.6)
CFLAGS="-m64 -O3"
CPPFLAGS="-m64 -O3"
CXXFLAGS="-m64 -O3"
LDFLAGS='-L/usr/lib/amd64 -L/usr/sfw/lib/amd64 -L/usr/ucblib/amd64'
LD_LIBRARY_PATH=/usr/sfw/lib/amd64:/usr/lib/amd64:/usr/ucblib/amd64
./configure --prefix=/home/developer/opt/ganglia/confuse
--enable-shared
gmake
gmake install
For Ganglia (3.1.1)
CFLAGS='-m64 -O3 -std=c99
-I/home/sdkadmin/opt/ganglia/apr/include/apr-1 -I/usr/include/amd64'
CPPFLAGS='-m64 -O3 -std=c99
-I/home/sdkadmin/opt/ganglia/apr/include/apr-1 -I/usr/include/amd64'
CXXFLAGS='-m64 -O3 -std=c99
-I/home/sdkadmin/opt/ganglia/apr/include/apr-1 -I/usr/include/amd64'
LDFLAGS='-L/usr/lib/amd64 -L/usr/sfw/lib/amd64 -L/usr/ucblib/amd64'
LD_LIBRARY_PATH=/usr/sfw/lib/amd64:/usr/lib/amd64:/usr/ucblib/amd64
./configure --prefix=/home/sdkadmin/opt/ganglia/ganglia \
--with-libapr=/home/sdkadmin/opt/ganglia/apr \
--with-libconfuse=/home/sdkadmin/opt/ganglia/confuse
gmake
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"
In file included from /usr/include/sys/klwp.h:19,
from /usr/include/sys/thread.h:13,
from /usr/include/sys/cpuvar.h:11,
from metrics.c:80:
/usr/include/sys/ucontext.h:68: error: syntax error before "stack_t"
/usr/include/sys/ucontext.h:71: error: syntax error before '}' token In
file included from /usr/include/sys/thread.h:13,
from /usr/include/sys/cpuvar.h:11,
from metrics.c:80:
/usr/include/sys/klwp.h:94: error: syntax error before "stack_t"
/usr/include/sys/klwp.h:97: error: syntax error before "lwp_sigoldmask"
/usr/include/sys/klwp.h:172: error: syntax error before '}' token In
file included from /usr/include/sys/cpuvar.h:11,
from metrics.c:80:
/usr/include/sys/thread.h:144: error: syntax error before "k_sigset_t"
/usr/include/sys/thread.h:146: error: syntax error before "t_hold"
/usr/include/sys/thread.h:150: error: syntax error before '*' token
/usr/include/sys/thread.h:327: error: syntax error before '}' token In
file included from /usr/include/sys/cpuvar.h:13,
from metrics.c:80:
/usr/include/sys/disp.h:30: error: syntax error before "kthread_t"
/usr/include/sys/disp.h:34: error: syntax error before '}' token
/usr/include/sys/disp.h:42: error: syntax error before "dispq_t"
/usr/include/sys/disp.h:62: error: syntax error before '}' token In file
included from metrics.c:80:
/usr/include/sys/cpuvar.h:69: error: syntax error before "kthread_t"
/usr/include/sys/cpuvar.h:71: error: syntax error before '*' token
/usr/include/sys/cpuvar.h:106: error: syntax error before '*' token
/usr/include/sys/cpuvar.h:116: error: syntax error before '*' token
/usr/include/sys/cpuvar.h:131: error: syntax error before '*' token
/usr/include/sys/cpuvar.h:205: error: syntax error before '}' token
gmake[4]: *** [metrics.lo] Error 1
gmake[4]: Leaving directory
`/home/sdkadmin/ganglia-3.1.1/libmetrics/solaris'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/sdkadmin/ganglia-3.1.1/libmetrics'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/sdkadmin/ganglia-3.1.1/libmetrics'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/sdkadmin/ganglia-3.1.1'
gmake: *** [all] Error 2
------------------------------------------------------------------------------
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