Carlo Marcelo Arenas Belon wrote:
On Sat, Mar 08, 2008 at 10:21:01AM +0800, Cherife Li wrote:make[4]: *** No rule to make target `../../lib/.libs/libganglia.a', needed by `test-metrics'. Stop.make[4]: Leaving directory `/root/ganglia-3.0.7/libmetrics/tests' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/ganglia-3.0.7/libmetrics' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/ganglia-3.0.7/libmetrics' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/ganglia-3.0.7' make: *** [all] Error 2If removes "--disable-static", there will be no error.libganglia was forced to be compiled statically for test-metrics this way, by asking for no static libraries you eliminated this target generating the error. this bug was fixed in r1028 for 3.1.0How can I solve this issue?apply the patch in r1028, or use --enable-staticWhat's the difference between "--disable-static" and enable-static?--disable-static avoids creating a static library for libganglia (which is what is used by default in the 3.0.x series) and as you found wasn't really supported that well. --enable-static creates the static library which is as you showed needed for testing libmetrics (which shouldn't be build either by default, and that is still an open bug most likely)Which is better choice?depends on your environment. using a static library was the default for all releases of ganglia until 3.1.x because it is simpler to deploy one binary for gmond in all nodes, than installing gmond and several other dynamically linked libraries. 3.1.x defaults to dynamic, because it is now easier to keep dependent libraries installed on demand that it used to be with tools like yum, apt-get, emerge, pkg_src and the like, and because some distributions like to have dependencies installed independently and where in some cases shielding their users from the wonders of ganglia because of that. Carlo
Great, got it. Thanks for your detailed instruction, Carlo :-) -- Rgds, Cherife.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Ganglia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-developers
