Problem building on Debian 5.0.4 / 2.6.24-etchnhalf.1-686
Hi all I am having problems building FR 2.1.8 on Debian 5.0.4 I have followed the process: Building Debian packages $ tar zxf freeradius-server-2.X.Y.tar.gz $ cd freeradius-server-2.X.Y $ fakeroot dpkg-buildpackage -b -uc ... All looks well until.... gcc -o .libs/radclient .libs/radclient.o /home/tim/freeradius-server-2.1.8/src/lib/.libs/libfreeradius-radius.so -lnsl -lresolv -lpthread -Wl,--rpath -Wl,/usr/lib/freeradius creating radclient /usr/bin/libtool --mode=compile gcc -g -O2 -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wca st-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls - Wundef -I/home/tim/freeradius-server-2.1.8/src -DHOSTINFO=\"i486-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.1.8\" -DOPENSSL_NO_KRB5 -c radmin.c gcc -g -O2 -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-str ings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/home/tim/freeradius-se rver-2.1.8/src -DHOSTINFO=\"i486-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.1.8\" -DOPENSSL_NO_KRB5 -c radmin.c -fPIC -DPIC -o .libs/radmin.o radmin.c:55: warning: function declaration isn't a prototype radmin.c: In function 'main': radmin.c:437: warning: implicit declaration of function 'using_history' radmin.c:437: warning: nested extern declaration of 'using_history' radmin.c:438: warning: implicit declaration of function 'rl_bind_key' radmin.c:438: warning: nested extern declaration of 'rl_bind_key' radmin.c:438: error: 'rl_insert' undeclared (first use in this function) radmin.c:438: error: (Each undeclared identifier is reported only once radmin.c:438: error: for each function it appears in.) radmin.c:530: warning: implicit declaration of function 'add_history' radmin.c:530: warning: nested extern declaration of 'add_history' make[5]: *** [radmin.lo] Error 1 make[5]: Leaving directory `/home/tim/freeradius-server-2.1.8/src/main' make[4]: *** [common] Error 2 make[4]: Leaving directory `/home/tim/freeradius-server-2.1.8/src' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/tim/freeradius-server-2.1.8/src' make[2]: *** [common] Error 2 make[2]: Leaving directory `/home/tim/freeradius-server-2.1.8' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/tim/freeradius-server-2.1.8' make: *** [build-arch-stamp] Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 wendolene:/home/tim/freeradius-server-2.1.8# uname -a Linux wendolene 2.6.24-etchnhalf.1-686 #1 SMP Thu Feb 25 05:42:02 UTC 2010 i686 GNU/Linux wendolene:/home/tim/freeradius-server-2.1.8# less /etc/deb debconf.conf debian_version wendolene:/home/tim/freeradius-server-2.1.8# less /etc/debian_version wendolene:/home/tim/freeradius-server-2.1.8# Any ideas please? I have googled for days on this.... Cheers Rgds Tim -- With Best Regards Tim Robinson, Director TxRx Communications Ltd +44 1256 810630 http://www.txrxcomms.co.uk Registered in England 6260998
Alan Thanks! That did the trick. It was actually libreadline5 etc but you got me in the right direction. I tried to add this to the wiki but could not find a way to get a login... Much appreciated your speedy response anyhow. Cheers Tim On 28/04/2010 09:50, Alan DeKok wrote:
Tim Robinson wrote:
Hi all
I am having problems building FR 2.1.8 on Debian 5.0.4
radmin.c:437: warning: implicit declaration of function 'using_history'
$ apt-get install libreadline libreadline-dev
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- With Best Regards Tim Robinson, Director TxRx Communications Ltd +44 1256 810630 Registered in England 6260998
On Wed, Apr 28, 2010 at 09:43:50AM +0100, Tim Robinson wrote:
I am having problems building FR 2.1.8 on Debian 5.0.4 $ tar zxf freeradius-server-2.X.Y.tar.gz Any ideas please? I have googled for days on this....
In all your googling you managed to miss the simple fact that you don't actually have to do any of this because it's been done already? :o http://packages.debian.org/lenny-backports/freeradius http://wiki.debian.org/Backports -- 2. That which causes joy or happiness.
participants (3)
-
Alan DeKok -
Josip Rodin -
Tim Robinson