NetBSD-Bugs archive

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

Re: lib/58823: wgetscrreg is not defined



The following reply was made to PR lib/58823; it has been noted by GNATS.

From: Brett Lymn <blymn%internode.on.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/58823: wgetscrreg is not defined
Date: Tue, 3 Dec 2024 09:56:24 +1030

 > >Description:
 > `wgetscrreg` is not defined in NetBSD's curses, and it is used by some programs like (https://github.com/deadpixi/mtm). I noticed that pkgsrc's Makefile of mtm depends on ncurses for this reason (https://github.com/NetBSD/pkgsrc/blob/97716d7eeba2012eb90501bf49dc156e4bbe11e0/misc/mtm/Makefile#L23)
 > 
 > Is this intended?
 > 
 
 This call looks to be an ncurses extension.  NetBSD aims to implement
 the complete curses interface as defined by SUSv2.  We try to implement
 the ncurses extensions when we know about them.
 
 > Thanks for your time!
 > >How-To-Repeat:
 > Attempt to build `mtm` against NetBSD's curses library.
 > >Fix:
 > Add the following definition of `wgetscrreg` to `curses.h`:
 > 
 > ```c
 > int	 wgetscrreg(const WINDOW *, int *, int *);
 > ```
 > 
 
 The function is not defined in the library so there is a bit more to be
 done than just defining the function in the header.
 
 -- 
 Brett Lymn
 --
 Sent from my NetBSD device.
 
 "We are were wolves",
 "You mean werewolves?",
 "No we were wolves, now we are something else entirely",
 "Oh"
 


Home | Main Index | Thread Index | Old Index