Closed chdiza closed 5 years ago
Bisection shows:
d2b5c10dd22bd59f3dd71474b1db53785bbb3748 is the first bad commit
commit d2b5c10dd22bd59f3dd71474b1db53785bbb3748
Author: Shugo Maeda <shugo@ruby-lang.org>
Date: Mon Apr 8 22:14:47 2019 +0900
Add Curses::Form and Curses::Field
I did reproduce it with Ruby 2.7.0-dev.
Some curses implements WINDOW as opaque data, so it may not be dereferenced.
Sorry for inconvenience. I'll fix it in the same way as DBM_SIZEOF_DBM of ext/dbm.
I've fixed it in #49. Could someone try it on macOS?
I just tried the fix. Here's what I did. I applied the patch for that PR to my clone and did bundle; rake compile
.
It appears to have compiled but it spews some warnings:
compiling ../../../../ext/curses/curses.c
../../../../ext/curses/curses.c:218:1: warning: function 'no_window' could be
declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
../../../../ext/curses/curses.c:1444:1: warning: function 'no_mevent' could be
declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
../../../../ext/curses/curses.c:3711:1: warning: function 'no_field' could be
declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
../../../../ext/curses/curses.c:4157:1: warning: function 'no_form' could be
declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
4 warnings generated.
Thank you I've fixed it.
Great, thanks!
After a
gem update
, I'm suddenly seeing this build failure:This is on macOS 10.14.4. with Xcode 10.2, and the operative ruby is version 2.6.2 that I built and installed myself. The previous versions of the curses gem built just fine.