Subject: ncurses.h
To: None <tech-pkg@netbsd.org>
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
List: tech-pkg
Date: 08/13/1999 08:03:24
G'day,

when compiling psk31 the following error occurs:

gcc -Wall --pedantic -O2 -I/usr/pkg/include
-DDATADIR=\"/usr/share/psk31\" -c psk31-main.C -o psk31-main.o
In file included from psk31-main.C:23:
/usr/pkg/include/ncurses.h:96: abstract declarator used as declaration
gmake: *** [psk31-main.o] Error 1

The apparent offending part in ncurses.h is the following:

#undef TRUE
#undef FALSE
#define CXX_BUILTIN_BOOL 0
#define CXX_TYPE_OF_BOOL

#if defined(__cplusplus) && CXX_BUILTIN_BOOL
#define TRUE    (CXX_TYPE_OF_BOOL)true)
#define FALSE   (CXX_TYPE_OF_BOOL)false)
#else
typedef CXX_TYPE_OF_BOOL bool;	           <--- ncurses.h:96
#define TRUE    (bool)1)
#define FALSE   (bool)0)
#endif

It fails in other external packages too, but works for dialog, which
is part of the NetBSD packages tree. Can someone clue me up on this?
This program was working with the older ncurses libs and it now fails
after upgrading to ncurses-4.2.

I intend to submit this program for inclusion into the "ham" category
once it build cleanly.

Sysinfo: NetBSD-1.4-i386, ncurses-4.2, egcs-1.1.1 release

Many thanks in advance and as always, your help is very much
appreciated.

Have a nice weekend

cheerio Berndt
-- 
Name    : Berndt Josef Wulf            | +++ With BSD on Packet Radio +++
E-Mail  : wulf@ping.net.au             |    tfkiss, tnt, dpbox, wampes
URL     : http://www.ping.net.au/~wulf |  VK5ABN, Nairne, South Australia 
FTP     : ftp://ftp.ping.net.au/ham    | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.4    | BBS  : vk5abn.#lmr.#sa.aus.oc