Amanda-Users

Re: Amanda 2.5.1.p1 & ssh-auth

2007-08-05 17:06:44
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: Sun, 05 Aug 2007 22:56:31 +0200
Hi Dustin,

        it's working now! Still kinda strange for me. What I did was the
following:
I purged the 'flex', 'bison' and 'libreadline5-dev' Ubuntu packages from
my office machine. (Those packages are not installed on my laptop, where
the sources cleanly compiled yesterday).
After this purging I re-downloaded the 2.5.2p1 tarball from the Amanda
download page, and voila! Everything is compiling now. So it looks like
probably the Ubuntu 'flex' package caused the trouble. Don't know, why,
but now I have a pretty nice up-to-date Amanda installation running on
my machines.  *happy*


By the way, maybe you could also answer this question: I need a
completely statically linked Amanda for some hosts. Is it enough to
append '--enable-dynamic=no --enable-static=yes' to configure, or do I
also have to set something like CXXFLAGS=CFLAGS=LDFLAGS=...FLAGS=-static ?


Thanks a lot,
        Ralf



Dustin J. Mitchell schrieb:
> 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
> 

-- 

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