i was suspicious that libconfuse might muk up the works. the problem is that libconfuse doesn't build shared libraries correctly so i can't make the symbols in libconfuse part of libganglia (which is a shared lib).

in the interest of speed, i'll setup gmetric and gmond to statically link again libconfuse. in the future, i'll take a look at confuse and fix the multiple definitions of the same symbols (most likely global variables in the lexer.. shouldn't be too hard to do.. i bet there is an unecessary #include or something).

this means that if someone wanted to make their own gmetric-like app.. they would have to link against libconfuse and libganglia. not a biggy. not a priority.

i'm glad you reported this bug because i also found that old versions of darwin (specificially 6.2) don't have the mib for HW_MEMSIZE.

i put an #if statement to deal with the problem.

you can get the new snapshot which works on darwin (and everywhere else too) from...

http://matt-massie.com/ganglia/ganglia-2.6.0.200501241051.tar.gz

i just tested it on the sourceforge compile farm darwin box and it compiled/ran just find now.

give it a try.

-matt

Sebastian Hagedorn wrote:
Hi,

--On 23. Januar 2005 18:58:58 Uhr +0000 Matt Massie <[EMAIL PROTECTED]> wrote:

i just uploaded a new 2.6.0 snapshot to
http://matt-massie.com/ganglia/ganglia-2.6.0.200501231846.tar.gz

...

i haven't tested it much except on linux since it's the weekend.


it doesn't compile under Darwin:

Extracting /Users/a0620/scratch/ganglia-2.6.0.200501231846/lib/../srclib/confuse/src/.libs/libconfuse.a gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libganglia-2.6.0.200501241012.0.0.0.dylib .libs/become_a_nobody.o .libs/debug_msg.o .libs/daemon_init.o .libs/file.o .libs/dotconf.o .libs/error.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/protocol_xdr.o .libs/apr_net.o .libs/libgmond.o .libs/libganglia.lax/libconfuse.a/confuse.o .libs/libganglia.lax/libconfuse.a/lexer.o ../srclib/apr/.libs/libapr-0.dylib -ldl -lkvm -lresolv -lpthread -install_name /usr/lib/libganglia-2.6.0.200501241012.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0 ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option .libs/libganglia.lax/libconfuse.a/lexer.o definition of common _cfg_include_stack (size 120) .libs/libganglia.lax/libconfuse.a/lexer.o definition of common _cfg_yyleng (size 4) .libs/libganglia.lax/libconfuse.a/lexer.o definition of common _cfg_yytext (size 4)
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libganglia.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Cheers, Sebastian Hagedorn
--
Sebastian Hagedorn M.A. - RZKR-R1 (Gebäude 52), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

--
PGP fingerprint 'A7C2 3C2F 8445 AD3C 135E F40B 242A 5984 ACBC 91D3'

   They that can give up essential liberty to obtain a little
      temporary safety deserve neither liberty nor safety.
  --Benjamin Franklin, Historical Review of Pennsylvania, 1759

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to