Amanda-Users

Re: amanda 2.5.1 doesn't compile on FreeBSD 4.11 - atoll

2006-10-18 13:11:32
Subject: Re: amanda 2.5.1 doesn't compile on FreeBSD 4.11 - atoll
From: Pavel Pragin <ppragin AT zmanda DOT com>
To: Oscar Ricardo Silva <osilva AT scuff.cc.utexas DOT edu>
Date: Wed, 18 Oct 2006 09:56:36 -0700
Error:
.libs/amandad amandad.o ./.libs/libamandad.so
../common-src/.libs/libamanda.so -lm -lreadline -ltermcap -lcam
../common-src/.libs/libamanda.so: undefined reference to `atoll'
*** Error code 1
Stop in /usr/local/src/amanda/amandad-src.
*** Error code 1

Solution:
1.Edit ./common-src/amanda.h file and modify this line:
Old line:
# define OFF_T_ATOI (off_t)atoll
New line:
# define OFF_T_ATOI (off_t)atol

2. run autogen
3. run configure
4. run make

(Not sure if my messages are reaching the list so apologies if you're received this twice)


I've been attempting to compile amanda 2.5.1 on FreeBSD 4.11 but run into this
error on the make:


amandad.c:826: warning: zero-length format string
amandad.c:882: warning: zero-length format string
amandad.c: In function `s_processrep':
amandad.c:937: warning: zero-length format string
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wparentheses
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat
-Wsign-compare -D_GNU_SOURCE   -L/usr/lib -o amandad  amandad.o
../common-src/libamanda.la  libamandad.la  ../common-src/libamanda.la -lm
-lreadline -ltermcap -lcam
gcc -Wall -W -Wparentheses -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -Wformat -Wsign-compare -D_GNU_SOURCE -o .libs/amandad amandad.o -L/usr/lib ./.libs/libamandad.so ../common-src/.libs/libamanda.so -lm
-lreadline -ltermcap -lcam -Wl,--rpath -Wl,/usr/local/amanda25/lib
../common-src/.libs/libamanda.so: undefined reference to `atoll'
*** Error code 1

Stop in /usr/local/src/amanda-2.5.1/amandad-src.
*** Error code 1

Stop in /usr/local/src/amanda-2.5.1.



I've found references to this error on mailing lists but so far no solutions.
Any suggestions?



Oscar



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