Ah, nevermind. I googled around enough and finally found the right flags to use when building libconfuse. When I do the following, I can compile libconfuse and ganglia without any errors: "./configure CFLAGS=-fPIC --disable-nls"
Sorry for the spam, James >>> "James Albright" <[EMAIL PROTECTED]> 05/20/08 2:34 PM >>> Hi all, I'm trying to compile ganglia 3.1 (which I pulled from https://ganglia.svn.sourceforge.net/svnroot/ganglia/branches/monitor-core-3.1/), but I get the following error message: /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libconfuse.a(confuse.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libconfuse.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libganglia.la] Error 1 make[2]: Leaving directory `/root/ganglia/subversion/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/ganglia/subversion' make: *** [all] Error 2 It seemed to me that libconfuse needed to be recompiled with the -fPIC flag set, so I download the source for confuse-2.6, and ran configure like this: "./configure CFLAGS=-fPIC" but when I typed "make" I got the following error: confuse.c: In function 'cfg_init': confuse.c:1112: warning: implicit declaration of function 'setlocale' confuse.c:1112: error: 'LC_MESSAGES' undeclared (first use in this function) confuse.c:1112: error: (Each undeclared identifier is reported only once confuse.c:1112: error: for each function it appears in.) confuse.c:1113: error: 'LC_CTYPE' undeclared (first use in this function) make[2]: *** [confuse.lo] Error 1 make[2]: Leaving directory `/root/ganglia/confuse/confuse-2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/ganglia/confuse/confuse-2.6' make: *** [all] Error 2 So at this point, I can't compile libconfuse with the -fPIC flag set, but it seems I can't compile ganglia unless it is. Has anyone run into this before? I've searched previous posts to the email list, and have found a reference to the same problem, but the solution mentioned was to "turn off natural language support in confuse". I'm at a loss as to how one would go about doing that. Any help would be appreciated! BTW: I'm trying to install this on SLES10 SP2. Thanks! James ------------------------------------------------------------------------- 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 Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers ------------------------------------------------------------------------- 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 Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers