NetBSD Problem Report #60768
From christos@astron.com Tue Sep 22 20:25:59 2026
Return-Path: <christos@astron.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 8D7081A923B
for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Sep 2026 20:25:59 +0000 (UTC)
Message-Id: <20260922202554.4056A6C28F@quasar.astron.com>
Date: Tue, 22 Sep 2026 20:25:54 +0000 (UTC)
From: christos@astron.com
Reply-To: christos@astron.com
To: gnats-bugs@NetBSD.org
Subject: _CURSES_USE_MACROS does not compile
X-Send-Pr-Version: 3.95
X-From4GNATS: "christos@astron.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60768
>Category: lib
>Synopsis: _CURSES_USE_MACROS does not compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 22 20:30:00 +0000 2026
>Originator: Christos Zoulas
>Release: NetBSD 11.99.7
>Organization:
cursed lands of nowhere.
>Environment:
System: NetBSD quasar.astron.com 11.99.7 NetBSD 11.99.7 (QUASAR) #77: Thu Aug 20 11:52:25 EDT 2026 christos@quasar.astron.com:/usr/src/sys/arch/amd64/compile/QUASAR amd64
Architecture: x86_64
Machine: amd64
>Description:
Compiling libcurses with -D_CURSES_USE_MACROS fails:
/net/quasar/src-5/NetBSD/src/distrib/utils/libhack/../../../lib/libcurses/curses.h:520:25: error: expected ')' before '==' token
520 | (wmove(w, y, x) == ERR ? ERR : winchnstr(w, c, n))
| ^~
>How-To-Repeat:
Add -D_CURSES_USE_MACROS
>Fix:
Make it build or or remove the macro, and the code it enables.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.