krb5-1.4 make error: undefined reference to `tgetent'

Tom Simons tom.simons at gmail.com
Tue Feb 8 21:44:17 EST 2005


I'm getting error "undefined reference to `tgetent'" when compiling
krb5-1.4.  A google search said to add -libncurses to LIBS in the
Makefile, but there are LOTS of Makefiles in krb5-1.4/src.  Is there a
simpler way to get libncurses added to LIB in all Makefiles?

$ ./configure --without-krb4
$ make
 . . . .
gcc -L../../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall
-Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow
-pedantic  -o telnet authenc.o commands.o main.o network.o ring.o
sys_bsd.o telnet.o terminal.o utilities.o  ../libtelnet/libtelnet.a 
-ldes425 -lkrb5 -lk5crypto -lcom_err -lkrb5support  -lresolv
telnet.o: In function `setupterm':
/home/simonst/krb5-1.4/src/appl/telnet/telnet/telnet.c:783: undefined
reference to `tgetent'

$ grep ^LIBS Makefile
LIBS = -lresolv

$ ll /lib/libncurse*
lrwxrwxrwx  1 root root  17 Jul 25  2002 /lib/libncurses.so.5 ->
libncurses.so.5.2
-rw-r--r--    1 root     root   248132 Mar 29  2002 /lib/libncurses.so.5.2

$ uname -a
Linux addicks 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686 unknown

$ gcc --version
2.95.4


More information about the Kerberos mailing list