Subject: lib/28354: Installing ncurses breaks curses
To: None <,,>
From: seebs <>
List: netbsd-bugs
Date: 11/18/2004 23:54:00
>Number:         28354
>Category:       lib
>Synopsis:       Installing ncurses breaks curses
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 18 23:54:00 +0000 2004
>Originator:     seebs
>Release:        NetBSD 2.99.10
System: NetBSD 2.99.10 NetBSD 2.99.10 (VASH) #0: Sat Nov 6 13:02:50 CST 2004 i386
Architecture: i386
Machine: i386
	If you've installed ncurses, and are compiling with
	-I/usr/pkg/include, <curses.h> tries to find <unctrl.h> and ends
	up getting /usr/pkg/include/unctrl.h, which then unleashes horrors.
	Install ncurses from pkgsrc.  Try to use plain old curses.
	Well, a crappy workaround is
		#include "/usr/include/unctrl.h"

	A real fix is actually theoretically challenging; what we want to
	imply is that system headers should, in general, only ever see other
	system headers when including, I think... But I'm not sure how to
	do that!