bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HP term.h and ncurses.h don't get along


From: Thomas Dickey
Subject: Re: HP term.h and ncurses.h don't get along
Date: Sun, 7 Nov 2004 17:15:48 -0500 (EST)

On Sun, 7 Nov 2004, John David Anglin wrote:

> In building todays cvs version of gdb, I hit the following error:
>
> gcc -c -g -O2  -Dvfork=fork  -I. -I../../src/gdb -I../../src/gdb/config 
> -DLOCALEDIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H 
> -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd 
> -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl 
> -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type 
> -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized 
> -Wformat-nonliteral -Wunused-label -Wunused-function  ../../src/gdb/tui/ tui.c
> In file included from ../../src/gdb/tui/tui.c:48:
> /usr/include/term.h:49: error: conflicting types for 'chtype'
> /opt/gnu/include/ncurses/ncurses.h:99: error: previous declaration of 
> 'chtype' w

so far, that's only a bug in gdb.  If you include <ncurses/ncurses.h>,
you should get term.h from the same path, e.g., <ncurses/term.h>.
The -I's above don't reference /opt/gnu/include, so either that's
what gcc assumes on that platform, or it's hardcoded someplace.

Probably it's from gcc.

> Any hope in making ncurses.h compatible with these declarations?

not really - there's no good reason to make ncurses.h use HP's
platform-specific types.  The documented interfaces are compatible,
but the actual type that corresponds to attr_t varies according to
the implementation.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]