Skip to content

Failed to build on Opensuse Ruby 3.4.8 #128

@megatux

Description

@megatux

Pasting some build output, hoping it helps.
Suse 'ncurses-devel' package is for the ncurses6 terminal control library

current directory: /home/megatux/.local/share/mise/installs/ruby/3.4.8/lib64/ruby/gems/3.4.0/gems/curses-1.5.3/ext/curses
make DESTDIR\= sitearchdir\=./.gem.20260301-293887-c91qh6 sitelibdir\=./.gem.20260301-293887-c91qh6 clean

current directory: /home/megatux/.local/share/mise/installs/ruby/3.4.8/lib64/ruby/gems/3.4.0/gems/curses-1.5.3/ext/curses
make DESTDIR\= sitearchdir\=./.gem.20260301-293887-c91qh6 sitelibdir\=./.gem.20260301-293887-c91qh6
compiling curses.c
In file included from /usr/include/ncursesw/curses.h:90,
                 from curses.c:26:
curses.c:1699:11: error: field '_nc_stdscr' declared as a function
 1699 |     VALUE stdscr;
      |           ^~~~~~
curses.c: In function 'screen_initialize':
curses.c:1780:21: error: lvalue required as left operand of assignment
 1780 |     screenp->stdscr = Qnil;
      |                     ^
curses.c: In function 'screen_set_term':
curses.c:1799:25: error: lvalue required as left operand of assignment
 1799 |         screenp->stdscr = prep_window(cWindow, stdscr, 1);
      |                         ^
At top level:
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics
make: *** [Makefile:251: curses.o] Error 1

make failed, exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions