On Sun, Mar 16, 2008 at 3:03 PM, Carlo Marcelo Arenas Belon
<[EMAIL PROTECTED]> wrote:
> On Sun, Mar 16, 2008 at 12:18:05PM -0400, Jesse Becker wrote:
>  > Now that srclib/ has been yanked, I tried building a clean copy of
>  > trunk on my OpenBSD box, and hit a few snags.
>  >
>  > First, running ./bootstrap fails:
>
>  haven't tried bootstrap ('cause bootstrapping only works well in linux 
> anyway)
>  but you should be able to use a snapshot :

So then the build process for trunk is basically broken for non-Linux systems?

>   http://www.sajinet.com.pe/ganglia/ganglia-3.1.0.1066.tar.gz

>  > Second, and probably related to #1, there are some libtool issues.  So
>  > far as I can tell, Ganglia uses it's own copy libtool, instead of a
>  > system version.  This libtool isn't created, so things fail to build.
>  > OThis begs the question:  why don't we use the system libtool?
>
>  the whole point of bootstrapping is to create a libool to use to build the
>  rest of the application in a portable way.  the system libtool should only be
>  used for bootstrapping and is not needed after.


Err...  I'm confused then.  If the whole point of libtool is to handle
libraries portably, why are duplicating the job of something already
installed?  (Obviously, if libtool *isn't* installed already, that's a
different problem.)

But, if there's a need to use our own libtool, and specifically to
create ltmain.sh, then we should do that properly.  So far as I can
tell, this is not happening, and is a bug.  I notice that two
different ltmain.sh files were removed from SVN in r1066.  The one in
libmetrics/ is what is causing this build failure.


>  > Third, on a different copy of trunk I tried rebuilding from the
>  > ./configure stage, and found that it fails on the check for
>  > libconfuse.  The error is a little misleading:
>  >
>  > <--snip-->
>  >
>  > Checking for confuse
>  > Added -I/usr/local/include to CFLAGS
>  > Added -L/usr/local/lib to LDLAGS
>  > checking for cfg_parse in -lconfuse... no
>  > libconfuse not found
>  >
>  > <--snip-->
>
>  ./configure --with-libconfuse=/usr/local will workaround that.

I have that already, actually.  My full configure invocation is:

./configure \
CC='ccache gcc' CXX='ccache g++' \
CFLAGS='-O2 -I/usr/local/include -I/usr/X11R6/include' \
LDFLAGS='-L/usr/local/lib -L/usr/X11R6/lib -lintl -liconv'  \
--with-gmetad --enable-status         \
--with-libapr=/usr/local                     \
--with-libconfuse=/usr/local              \
--with-libexpat=/usr/local                  \
--with-librrd=/usr/local                      \
--prefix=/home/jbecker/Ganglia/install/


I have to add "-lintl" and "-liconv" to LDFLAGS for configure to succeed.

>  I have ganglia 3.1.0 running in my OpenBSD 4.3 (beta) test box with all
>  dependencies from ports (including expat from base as used in 4.3, in 4.2

Using 4.1 here, using the official packages for libconfuse, libiconv,
and gettext.

-- 
Jesse Becker
GPG Fingerprint -- BD00 7AA4 4483 AFCC 82D0 2720 0083 0931 9A2B 06A2

-------------------------------------------------------------------------
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

Reply via email to