Hello,
I'm trying to get Ganglia 3.4.0 to compile on OpenBSD (5.1)
Here's the error it spits at me:
# ./configure --with-libconfuse=/usr/local --sysconfdir=/etc/ganglia
(finish without errors)
# make
make all-recursive
Making all in lib
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I.. -D_POSIX_THREADS -I/usr/local/include/apr-1/
-I/usr/local/include/apr-1/ -I.. -I. -I../include/
-D_LARGEFILE64_SOURCE -DSFLOW -DSYSCONFDIR='"/etc/ganglia"' -g -O2
-I/usr/local/include -fno-strict-aliasing -Wall -MT libgmond.lo -MD -MP -MF
.deps/libgmond.Tpo -c -o libgmond.lo libgmond.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D_POSIX_THREADS
-I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I.. -I.
-I../include/ -D_LARGEFILE64_SOURCE -DSFLOW -DSYSCONFDIR=\"/etc/ganglia\"
-g -O2 -I/usr/local/include -fno-strict-aliasing -Wall -MT libgmond.lo -MD
-MP -MF .deps/libgmond.Tpo -c libgmond.c -fPIC -DPIC -o .libs/libgmond.o
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D_POSIX_THREADS
-I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I.. -I.
-I../include/ -D_LARGEFILE64_SOURCE -DSFLOW -DSYSCONFDIR=\"/etc/ganglia\"
-g -O2 -I/usr/local/include -fno-strict-aliasing -Wall -MT libgmond.lo -MD
-MP -MF .deps/libgmond.Tpo -c libgmond.c -o libgmond.o >/dev/null 2>&1
mv -f .deps/libgmond.Tpo .deps/libgmond.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -I.. -I.
-I../include/ -D_LARGEFILE64_SOURCE -DSFLOW -DSYSCONFDIR='"/etc/ganglia"'
-g -O2 -I/usr/local/include -fno-strict-aliasing -Wall -version-info 0:0:0
-release 3.4.0 -export-dynamic -L/usr/local/lib -L/usr/local/lib -o
libganglia.la -rpath /usr/local/lib gm_protocol_xdr.lo become_a_nobody.lo
debug_msg.lo update_pidfile.lo file.lo dotconf.lo error_msg.lo ganglia.lo
hash.lo inetaddr.lo llist.lo my_inet_ntop.lo rdwr.lo readdir.lo tcp.lo
scoreboard.lo apr_net.lo libgmond.lo -lkvm -lpcre -lexpat -lconfuse
-lapr-1 -lpthread
libtool: link: rm -fr .libs/libganglia-3.4.0.so.0.0 .libs/libganglia.a
.libs/libganglia.la .libs/libganglia.lai .libs/libganglia.so.0.0
libtool: link: gcc -std=gnu99 -shared -fPIC -DPIC -o
.libs/libganglia-3.4.0.so.0.0 .libs/gm_protocol_xdr.o
.libs/become_a_nobody.o .libs/debug_msg.o .libs/update_pidfile.o
.libs/file.o .libs/dotconf.o .libs/error_msg.o .libs/ganglia.o .libs/hash.o
.libs/inetaddr.o .libs/llist.o .libs/my_inet_ntop.o .libs/rdwr.o
.libs/readdir.o .libs/tcp.o .libs/scoreboard.o .libs/apr_net.o
.libs/libgmond.o -L/usr/local/lib -lkvm -lpcre -lexpat -lconfuse -lapr-1
-lpthread
libtool: link: (cd ".libs" && rm -f "libganglia.so.0.0" && ln -s
"libganglia-3.4.0.so.0.0" "libganglia.so.0.0")
libtool: link: ar cru .libs/libganglia.a gm_protocol_xdr.o
become_a_nobody.o debug_msg.o update_pidfile.o file.o dotconf.o error_msg.o
ganglia.o hash.o inetaddr.o llist.o my_inet_ntop.o rdwr.o readdir.o tcp.o
scoreboard.o apr_net.o libgmond.o
libtool: link: ranlib .libs/libganglia.a
libtool: link: ( cd ".libs" && rm -f "libganglia.la" && ln -s "../
libganglia.la" "libganglia.la" )
Making all in libmetrics
make all-recursive
Making all in openbsd
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I.. -I.. -I../../lib -I../../include -g -O2 -Wall
-MT metrics.lo -MD -MP -MF .deps/metrics.Tpo -c -o metrics.lo metrics.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../../lib
-I../../include -g -O2 -Wall -MT metrics.lo -MD -MP -MF .deps/metrics.Tpo
-c metrics.c -fPIC -DPIC -o .libs/metrics.o
metrics.c: In function 'proc_total_func':
metrics.c:445: warning: implicit declaration of function 'kvm_getproc2'
metrics.c:445: error: invalid application of 'sizeof' to incomplete type
'struct kinfo_proc2'
metrics.c:445: warning: assignment makes pointer from integer without a cast
metrics.c: In function 'proc_run_func':
metrics.c:465: error: invalid application of 'sizeof' to incomplete type
'struct kinfo_proc2'
metrics.c:465: warning: assignment makes pointer from integer without a cast
metrics.c:467: error: invalid use of undefined type 'struct kinfo_proc2'
metrics.c:467: error: dereferencing pointer to incomplete type
metrics.c:467: error: invalid use of undefined type 'struct kinfo_proc2'
metrics.c:467: error: dereferencing pointer to incomplete type
*** Error code 1
Stop in /usr/src/ganglia-3.4.0/libmetrics/openbsd (line 255 of Makefile).
*** Error code 1
Stop in /usr/src/ganglia-3.4.0/libmetrics (line 383 of Makefile).
*** Error code 1
Stop in /usr/src/ganglia-3.4.0/libmetrics (line 247 of Makefile).
*** Error code 1
Stop in /usr/src/ganglia-3.4.0 (line 378 of Makefile).
*** Error code 1
Stop in /usr/src/ganglia-3.4.0 (line 273 of Makefile).
I get the same error on OpenBSD 4.8.
How to fix this ?
Thanks in advance,
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general