bug-ncurses
[Top][All Lists]
Advanced

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

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


From: John David Anglin
Subject: HP term.h and ncurses.h don't get along
Date: Sun, 7 Nov 2004 16:14:07 -0500 (EST)

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 -DLOCALE
DIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcod
e -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 -Wr
eturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninit
ialized -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
as here
/usr/include/term.h:64: error: conflicting types for 'attr_t'
/opt/gnu/include/ncurses/ncurses.h:285: error: previous declaration of 'attr_t'
was here
/usr/include/term.h:1217: error: conflicting types for 'tparm'
/opt/gnu/include/ncurses/ncurses.h:710: error: previous declaration of 'tparm' w
as here
/usr/include/term.h:1217: error: conflicting types for 'tparm'
/opt/gnu/include/ncurses/ncurses.h:710: error: previous declaration of 'tparm' w
as here

In term.h under hpux11, we have:

#ifndef _CHTYPE_DEFINED
#       define _CHTYPE_DEFINED
typedef uint32_t chtype;
#endif /* _CHTYPE_DEFINED */

#ifndef _ATTR_T_DEFINED
#       define _ATTR_T_DEFINED
typedef int32_t        attr_t;
#endif /* _ATTR_T_DEFINED */

#ifdef __10_10_COMPAT_CODE
/*
 * The old tparm() API prototype is present only for backward compatibility.
 * It wil not be available in future releases.
 */
extern  char    *tparm __((char *, ...));
#else
extern  char    *tparm __((char *, long, long, long, long, \
                          long,   long, long, long, long));
#endif /* __10_10_COMPAT_CODE */

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

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)




reply via email to

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