Subject: lib/28354: Installing ncurses breaks curses
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: seebs <seebs@vash.cel.plethora.net>
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
>Organization:
>Environment:
System: NetBSD vash.cel.plethora.net 2.99.10 NetBSD 2.99.10 (VASH) #0: Sat Nov 6 13:02:50 CST 2004 seebs@vash.cel.plethora.net:/usr/src/sys/arch/i386/compile/VASH i386
Architecture: i386
Machine: i386
>Description:
	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.
>How-To-Repeat:
	Install ncurses from pkgsrc.  Try to use plain old curses.
>Fix:
	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!