Amanda-Users

amanda-2.6 64bit compile with glib-2.14: success!

2008-04-02 15:15:56
Subject: amanda-2.6 64bit compile with glib-2.14: success!
From: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
To: amanda-users <amanda-users AT amanda DOT org>
Date: Wed, 2 Apr 2008 15:01:54 -0400
Hello,

I've changed the Subject: line for this thread so not to bother
people... 
This is just to relate my first hand-on experience with 2.6.0.
I am a happy camper. See below.

* Dustin J. Mitchell <dustin AT zmanda DOT com> [20080401 18:17]:
> On Tue, Apr 1, 2008 at 5:32 PM, Jean-Francois Malouin
> <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca> wrote:
> >  I think I got it: I'm getting bitten by compiling 64bit as I didn't
> >  notice that I had a CFLAGS='-m64' that sneaked in my environment...
> >  I guess I'll need to get the source of glib and compile it 64bit.
> >  Any hints?
> 
> It's an easy, knob-free compile.
> 
> We've been arried by bit-length mismatches too.  Sometimes I wish
> multilib had never been invented, and we all had been told, "32- or
> 64-bit.  Those are your options."

:)

OK, I got glib-2.14.6 source tarball and had a go at it compiling
64bit with:

root@grumpy:$ configure --prefix=/opt --libdir=/opt/lib64 CFLAGS=-m64

With PKG_CONFIG_PATH=/opt/lib64/pkgconfig:$PKG_CONFIG_PATH
I then get:

root@grumpy:$ pkg-config glib-2.0 --modversion 
2.14.6

On a server running debian/etch and 2.6.22.2-i686-64-smp I configured
amanda-2.6.0 by passing these env vars to the configure script:

CFLAGS='-m64'
LIBS='-L/opt/lib64'
CPPFLAGS='-I/opt/include'
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/lib64"
PKG_CONFIG_PATH=/opt/lib64/pkgconfig:/usr/lib/pkgconfig

Finally I compiled/installed a test server and after finishing the
server/client config and setup I get the server to speaks to the
client:

root@grumpy:$ su amanda -c "/opt/amanda-2.6.0/sbin/amcheck -lc conf1"
...
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 1.130 seconds.  0 problems found.

(brought to you by Amanda 2.6.0)

Woohoo! After all that foreplay the real fun is about to start!

You guys are doing a heck of a job.

regards,
jf

> 
> Dustin
> 
> -- 
> Storage Software Engineer
> http://www.zmanda.com

-- 
<° ><

<Prev in Thread] Current Thread [Next in Thread>