On Mon, 25 Jul 2011 17:19:26 +0800 Frederick Muriithi <[email protected]> wrote:
> Hi there? > Having trouble compiling inetutils-1.8 in chapter 6 of version 6.8 of > the LFS book. The following is the last few lines of the error output > on issuing the 'make' command: > > Making all in telnet > make[2]: Entering directory `/sources/inetutils-1.8/telnet' > CC authenc.o > CC commands.o > CC main.o > CC network.o > CC ring.o > CC sys_bsd.o > CC telnet.o > CC terminal.o > CC tn3270.o > CC utilities.o > CCLD telnet > telnet.o: In function `init_term': > /sources/inetutils-1.8/telnet/telnet.c:734: undefined reference to `tgetent' > collect2: ld returned 1 exit status > make[2]: *** [telnet] Error 1 > make[2]: Leaving directory `/sources/inetutils-1.8/telnet' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/sources/inetutils-1.8' > make: *** [all] Error 2 > > I can't seem to find a similar problem on the lfs-support archives > (Between May 2011 to date), so I'd be grateful for any help. I think tgetent is defined in /usr/include/term.h which was installed by ncurses. Looking at inetutils-1.8/telnet/telnet.c it says: #ifdef HAVE_LIBREADLINE # include <term.h> #endif Which makes me suspect that something went wrong, it's not detecting readline on your system. Looking at my log from installing inetutils-1.8, configure says: checking for readline... -lncurses checking how to link with libreadline... /usr/lib/libreadline.so -lncurses checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for initscr in -lncurses... yes checking for ncurses include dir... none checking for tgetent in -lcurses... yes checking for rl_bind_key in -lreadline... yes I suspect your configure output looks different. Maybe something went wrong when you installed readline or ncurses? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
