Amanda-Users

Re: Amanda 2.5.1.p1 & ssh-auth

2007-08-04 15:41:43
Subject: Re: Amanda 2.5.1.p1 & ssh-auth
From: Ralf Auer <Ralf.Auer AT physik.uni-erlangen DOT de>
To: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
Date: Sat, 04 Aug 2007 21:30:55 +0200
Hi Dustin,

        no problem. I just didn't want to "spam" the 'users' mailing list with
the compiling details, but here we go:

I am running Ubuntu 7.04 on i386 on the server host. Tried gcc-4.1 and
gcc-3.3. Downloaded 2.5.2p1 from Amanda website.

This is how I configured 2.5.2p1 sources:

./configure
        --prefix=/opt/amanda
        --with-user=amanda --with-group=backup
        --with-gnutar=/bin/tar --with-smbclient=/usr/bin/smbclient      
        --with-gnutar-listdir=/var/amanda/gnutar-lists
        --with-tcpportrange=50000,50100 --with-udpportrange=840,860
        --with-buffered-dump --with-debugging=/var/amanda/debug         
        --with-debug-days=10 --with-gnuplot=/usr/bin/gnuplot
        --with-configdir=/opt/amanda/etc --with-ssh-security


When I go to make, this is what I get:

gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat
-Wsign-compare -Wfloat-equal -Wold-style-definition -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -o .libs/amoldrecover amrecover.o
display_commands.o extract_list.o help.o set_commands.o uparse.o uscan.o
 -lfl ../client-src/.libs/libamclient.so
../common-src/.libs/libamanda.so ../gnulib/.libs/libgnu.a -lm -ltermcap
-lnsl -lresolv -Wl,--rpath -Wl,/opt/amanda/lib
amrecover.o: In function `main':
amrecover.c:(.text+0x1cb1): undefined reference to `process_line'
uparse.o: In function `yyparse':
uparse.c:(.text+0x1ef): undefined reference to `yylex'
uparse.c:(.text+0x51a): undefined reference to `yytext'
uparse.c:(.text+0xcf8): undefined reference to `yylex'
collect2: ld returned 1 exit status
make[1]: *** [amoldrecover] Error 1
make[1]: Leaving directory `/root/amanda-2.5.2p1/oldrecover-src'
make: *** [all-recursive] Error 1


It was late yesterday, so I just did a 'apt-get source amanda-server'
afterwards that resulted in the 2.5.1p1 sources on my HD. Still had to
include one additional headerfile in a certain file (don't remember
which one), but then this version compiled fine.

(To be honest, I just didn't have the nerve to read through source code
yesterday, so I decided to stick with 2.5.1p1 to get things started
somehow quickly until I would have time...)


        Ralf





Dustin J. Mitchell schrieb:
> On Sat, Aug 04, 2007 at 02:59:12PM +0200, Ralf Auer wrote:
>>      I am just upgrading my Amanda from 2.4.5 to 2.5.1p1 (2.5.2p1 does not
>> compile at all). I am very happy about the new 'ssh-auth' feature in
>> 2.5. It works now in my test setup (only 2 DLEs).
> 
> Do you mind expounding on the compilation problems with 2.5.2p1?  What
> OS/architecture?  What error(s) did you see?
> 
> Thanks!
> 
> Dustin
> 

-- 

Ralf Auer       
Physics Institute IV                    Office: 2.137
University of Erlangen-Nuremberg        Phone:  +49-9131-8527087
Erwin-Rommel-Str. 1                     Fax:    +49-9131-15249
D-91058 Erlangen, Germany               Ralf.Auer AT physik.uni-erlangen DOT de