On Wed, Jun 11, 2008 at 11:18:54AM +0200, Ulf wrote:
> Hi,
> 
> as you can see in the logs, I' ve used 3.1.0.1399 with gcc version 4.2.4.

your gcc is using AIX's ld, I'm afraid the fix we have will only work if gcc
is using GNU's ld.

is this gcc the "standard" gcc from AIX?, could you get another one that is
configured to use GNU ld instead?; you could find by running :

  $ gcc -print-prog-name=ld

> # ./gmond -m
> exec(): 0509-036 Cannot load program ./gmond because of the following errors:
>         0509-151 The program does not have an entry point or
>                    the o_snentry field in the auxiliary header is invalid.
>         0509-194 Examine file headers with the 'dump -ohv' command.
> # dump -ohv gmond

gmond was mislinked as shown by :

  ld: 0711-327 WARNING: Entry point not found: xport-all-symbols

I have no system to test, but reading online documentation it would seems the
attached patch should work for your case (only if using --enable-static-build
though)

Carlo
Index: configure.in
===================================================================
--- configure.in        (revision 1409)
+++ configure.in        (working copy)
@@ -514,7 +514,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="-bexpall"
                AC_DEFINE(SUPPORT_GEXEC, 0, SUPPORT_GEXEC)
                if test "$ac_cv_lib_perfstat_perfstat_cpu_total" = yes ; then
                        CFLAGS="$CFLAGS -DHAVE_PERFSTAT" 
-------------------------------------------------------------------------
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

Reply via email to