Subject: lib/8147: Missing declarations in termcap.h
To: None <gnats-bugs@gnats.netbsd.org>
From: Richard Earnshaw <rearnsha@cambridge.arm.com>
List: netbsd-bugs
Date: 08/05/1999 03:14:50
>Number: 8147
>Category: lib
>Synopsis: Missing declarations in termcap.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 5 03:05:00 1999
>Last-Modified:
>Originator: Richard Earnshaw
>Organization:
ARM
--
>Release: NetBSD-current<NetBSD-current source date>
>Environment:
System: NetBSD shark1 1.4F NetBSD 1.4F (SHARK) #42: Mon Jul 12 14:07:55 BST 1999 rearnsha@shark1:/usr/src/sys/arch/arm32/compile/SHARK arm32
>Description:
/usr/include/termcap.h is missing extern declarations for
PC, BC, UP and ospeed despite the fact that the man-page suggests
they will be declared. The FreeBSD implementation has declarations
for all of these.
It is interesting to note that the PR that introduced termcap.h to
libterm has these variables in the suggested patch, but they never
appeared in the repository. I've no idea why they would need to
be left out, so perhaps it is oversight.
>How-To-Repeat:
Try to build any standard gnu package that builds texinfo/info
(eg the official FSF gdb distribution); in particular the file
texinfo/info/terminal.c. The version in /usr/src/gnu/dist has
been grossly hacked to work around this deficiency.
>Fix:
add
extern char PC;
extern char *BC, *UP;
extern short ospeed;
to lib/libterm/termcap.h
>Audit-Trail:
>Unformatted: