Amanda-Users

Re: Amanda 2.5.1.p1 & ssh-auth

2007-08-05 11:04:47
Subject: Re: Amanda 2.5.1.p1 & ssh-auth
From: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
To: Ralf Auer <Ralf.Auer AT physik.uni-erlangen DOT de>
Date: Sun, 5 Aug 2007 09:54:31 -0500
On Sat, Aug 04, 2007 at 09:30:55PM +0200, Ralf Auer wrote:
> 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

uparse.c, which contains the missing process_line amrecover.c is
referencing, is generated by 'flex' from uparse.y in that directory.
I've only seen this error when uparse.c was generated on a *different*
system, and thus things didn't line up between uparse.c and the rest of
the object files.

Could you try apt-getting the sources afresh, and checking whether
uparse.c already exists?  If it does, try deleting it first (and do the
same in recover-src/) and then building again.  If this works, then the
problem is an ubuntu bug (the source distro contains files it
shouldn't).  If not, if you could tar up the build directory after the
error occurs and place it somewhere I can download it, and give me the
url in private email, I'll see if I can figure out what's going on.

Thanks for the bug report -- ideally Amanda should build on just about
anything that smells vaugely like UNIX.

Dustin

-- 
        Dustin J. Mitchell
        Storage Software Engineer, Zmanda, Inc.
        http://www.zmanda.com/