NetBSD Problem Report #28354
From seebs@vash.cel.plethora.net Thu Nov 18 23:53:30 2004
Return-Path: <seebs@vash.cel.plethora.net>
Received: from vash.cel.plethora.net (seebs.dsl.visi.com [209.98.116.65])
by narn.netbsd.org (Postfix) with ESMTP id DB77F2525CF
for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Nov 2004 23:53:29 +0000 (UTC)
Message-Id: <200411182353.iAINrN9X013137@vash.cel.plethora.net>
Date: Thu, 18 Nov 2004 17:53:23 -0600 (CST)
From: seebs <seebs@vash.cel.plethora.net>
Reply-To: seebs@vash.cel.plethora.net
To: gnats-bugs@netbsd.org
Subject: Installing ncurses breaks curses
X-Send-Pr-Version: 3.95
>Number: 28354
>Category: lib
>Synopsis: Installing ncurses breaks curses
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 18 23:54:00 +0000 2004
>Closed-Date: Thu Nov 10 07:25:48 +0000 2016
>Last-Modified: Thu Nov 10 07:25:48 +0000 2016
>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!
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Thu, 10 Nov 2016 07:25:48 +0000
State-Changed-Why:
This was actually a pkgsrc issue then, which should have been by the commit to put ncurses headers in
/usr/pkg/include/ncurses, so they're not accidentially included by packages that aren't using pkgsrc
ncurses.
revision 1.34
date: 2009-07-12 20:23:13 +0300; author: ahoka; state: Exp; lines: +24 -11;
Install ncurses headers to include/ncurses. This fixes a bug, when having
/usr/pkg/include in the header search path shadows some of the system's
curses headers (happens when building or developing curses application
outside of the pkgsrc build system).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.