The following proposed patch for stable 3.1, fixes building in AIX >= 5.1
maintenance level 2 using --enable-static-build by forcing AIX's ld to
make all gmond symbols public.
It also fixes a couple of portability issues found in libmetrics and
libganglia while compile testing it in AIX 5.3 by Ulf.
Contains changes from r1412, r1413, r1414 and r1421
Carlo
---
Index: configure.in
===================================================================
--- configure.in (revision 1422)
+++ configure.in (working copy)
@@ -508,7 +508,7 @@
AC_DEFINE(IA64,1,IA64)
AC_DEFINE(HPUX,1,HPUX);;
*aix*) CFLAGS="$CFLAGS -D_ALL_SOURCE -DAIX"
- EXPORT_SYMBOLS="-export-all-symbols"
+ EXPORT_SYMBOLS="-Wl,-bexpfull"
AC_DEFINE(SUPPORT_GEXEC, 0, SUPPORT_GEXEC)
if test "$ac_cv_lib_perfstat_perfstat_cpu_total" = yes ; then
CFLAGS="$CFLAGS -DHAVE_PERFSTAT"
Index: libmetrics/aix/metrics.c
===================================================================
--- libmetrics/aix/metrics.c (revision 1422)
+++ libmetrics/aix/metrics.c (working copy)
@@ -36,6 +36,8 @@
#include <cf.h>
#include <sys/utsname.h>
#include <sys/proc.h>
+#include <sys/types.h>
+#include <time.h>
#include <libperfstat.h>
Index: lib/dotconf.c
===================================================================
--- lib/dotconf.c (revision 1422)
+++ lib/dotconf.c (working copy)
@@ -608,7 +608,7 @@
skip_whitespace(&cp1, (long)eob - (long)cp1, 0);
/* ignore comments and empty lines */
- if (!cp1 || !*cp1 || *cp1 == '#' || *cp1 == '\n' || *cp1 == EOF)
+ if (!cp1 || !*cp1 || *cp1 == '#' || *cp1 == '\n' || *cp1 == (char)EOF)
return NULL;
/* skip line if it only contains whitespace */
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers