Bug 1464

Summary: termcap.h: No such file or directory
Product: [Retired] Red Hat Raw Hide Reporter: carlo
Component: gdbAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-03-19 00:09:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description carlo 1999-03-10 01:15:41 UTC
make[1]: Entering directory
`/usr/src/BUILD/gdb-4.17/readline'
gcc -c -O2 -g   -D_POSIX_VERSION -I. -I./../
-DVOID_SIGHANDLER -DVI_MODE readli
ne.c
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
place :)

Comment 1 carlo 1999-03-10 01:42:59 UTC
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-4.17.0.11.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.

Comment 2 Cristian Gafton 1999-03-19 00:09:59 UTC
install libtermcap-devel