Red Hat Bugzilla – Bug 1464
termcap.h: No such file or directory
Last modified: 2008-05-01 11:37:49 EDT
make: Entering directory
gcc -c -O2 -g -D_POSIX_VERSION -I. -I./../
-DVOID_SIGHANDLER -DVI_MODE readli
In file included from readline.c:50:
rldefs.h:65: termcap.h: No such file or directory
People that do not have termcap, but have ncurses, need
to include <ncurses/termcap.h> instead.
ncurses is the prefered a replacement of termcap and curses
imho. Source code should be written for ncurses in the first
It seems that gdb isn't supporting ncurses at all.
I have to manually change gdb/Makefile to use TERMCAP=-lncurses
instead of -ltermcap. That together with adding
-I/usr/include/ncurses to CFLAGS makes it compile flawlessly.
I used gdb-18.104.22.168.spec which isn't written by RedHat I think,
but I suppose this problem is also in older versions.
You can find this spec easily with a ftp search engine.
I've found the #include <termcap.h> also in other packages
than gdb and will report them here when I run into them again.