You are not logged in.
I am trying to install the ncurses gem and it fails when trying to build the native extension here is the error it spits out:
/usr/bin/ruby extconf.rb
checking for unistd.h... yes
checking for ncurses.h... yes
checking for wmove() in -lncurses... yes
checking for newscr()... yes
checking for TABSIZE()... yes
checking for ESCDELAY()... yes
checking for keybound()... yes
checking for curses_version()... yes
checking for tigetstr()... yes
checking for getwin()... yes
checking for putwin()... yes
checking for ungetmouse()... yes
checking for mousemask()... yes
checking for wenclose()... yes
checking for mouseinterval()... yes
checking for wmouse_trafo()... yes
checking for mcprint()... yes
checking for has_key()... yes
checking for delscreen()... yes
checking for define_key()... yes
checking for keyok()... yes
checking for resizeterm()... yes
checking for use_default_colors()... yes
checking for use_extended_names()... yes
checking for wresize()... yes
checking for attr_on()... yes
checking for attr_off()... yes
checking for attr_set()... yes
checking for chgat()... yes
checking for color_set()... yes
checking for filter()... yes
checking for intrflush()... yes
checking for mvchgat()... yes
checking for mvhline()... yes
checking for mvvline()... yes
checking for mvwchgat()... yes
checking for mvwhline()... yes
checking for mvwvline()... yes
checking for noqiflush()... yes
checking for putp()... yes
checking for qiflush()... yes
checking for scr_dump()... yes
checking for scr_init()... yes
checking for scr_restore()... yes
checking for scr_set()... yes
checking for slk_attr_off()... yes
checking for slk_attr_on()... yes
checking for slk_attr()... yes
checking for slk_attr_set()... yes
checking for slk_color()... yes
checking for tigetflag()... yes
checking for tigetnum()... yes
checking for use_env()... yes
checking for vidattr()... yes
checking for vid_attr()... yes
checking for wattr_on()... yes
checking for wattr_off()... yes
checking for wattr_set()... yes
checking for wchgat()... yes
checking for wcolor_set()... yes
checking for getattrs()... yes
checking which debugging functions to wrap...
checking for _tracef()... no
checking for _tracedump()... no
checking for _nc_tracebits()... no
checking for _traceattr()... no
checking for _traceattr2()... no
checking for _tracechar()... no
checking for _tracechtype()... no
checking for _tracechtype2()... no
checking for _tracemouse()... no
checking for other functions that appeared after ncurses version 5.0...
checking for assume_default_colors()... yes
checking for attr_get()... yes
checking for the panel library...
checking for panel.h... yes
checking for panel_hidden() in -lpanel... yes
checking for the form library...
checking for form.h... yes
checking for new_form() in -lform... yes
creating Makefile
make
compiling ncurses_wrap.c
In file included from /usr/include/ruby-2.0.0/ruby.h:33:0,
from ncurses_wrap.h:85,
from ncurses_wrap.c:66:
ncurses_wrap.c: In function ‘rbncurs_define_key’:
ncurses_wrap.c:432:31: warning: pointer/integer type mismatch in conditional expression [enabled by default]
: (char*)(NULL),
^
/usr/include/ruby-2.0.0/ruby/ruby.h:241:45: note: in definition of macro ‘INT2FIX’
#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
^
ncurses_wrap.c:430:12: note: in expansion of macro ‘INT2NUM’
return INT2NUM(define_key((definition != Qnil)
^
ncurses_wrap.c: In function ‘rbncurs_addnstr’:
ncurses_wrap.c:536:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(addnstr(STR2CSTR(arg1), NUM2INT(arg2)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_addstr’:
ncurses_wrap.c:539:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(addstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_insnstr’:
ncurses_wrap.c:899:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(insnstr(STR2CSTR(arg1), NUM2INT(arg2)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_insstr’:
ncurses_wrap.c:902:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(insstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvaddnstr’:
ncurses_wrap.c:958:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvaddnstr(NUM2INT(arg1), NUM2INT(arg2), STR2CSTR(arg3), NUM2INT(arg4)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvaddstr’:
ncurses_wrap.c:961:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvaddstr(NUM2INT(arg1), NUM2INT(arg2), STR2CSTR(arg3)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvinsnstr’:
ncurses_wrap.c:992:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvinsnstr(NUM2INT(arg1), NUM2INT(arg2), STR2CSTR(arg3), NUM2INT(arg4)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvinsstr’:
ncurses_wrap.c:995:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvinsstr(NUM2INT(arg1), NUM2INT(arg2), STR2CSTR(arg3)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvwaddnstr’:
ncurses_wrap.c:1023:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvwaddnstr(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3), STR2CSTR(arg4), NUM2INT(arg5)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvwaddstr’:
ncurses_wrap.c:1026:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvwaddstr(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3), STR2CSTR(arg4)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvwinsnstr’:
ncurses_wrap.c:1054:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvwinsnstr(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3), STR2CSTR(arg4), NUM2INT(arg5)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_mvwinsstr’:
ncurses_wrap.c:1057:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mvwinsstr(get_window(arg1), NUM2INT(arg2), NUM2INT(arg3), STR2CSTR(arg4)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_putp’:
ncurses_wrap.c:1121:5: warning: passing argument 1 of ‘putp’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(putp(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:830:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) putp (const char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_scr_dump’:
ncurses_wrap.c:1154:5: warning: passing argument 1 of ‘scr_dump’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(scr_dump(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:720:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) scr_dump (const char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_scr_init’:
ncurses_wrap.c:1159:5: warning: passing argument 1 of ‘scr_init’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(scr_init(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:721:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) scr_init (const char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_scr_restore’:
ncurses_wrap.c:1173:5: warning: passing argument 1 of ‘scr_restore’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(scr_restore(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:725:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) scr_restore (const char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_scr_set’:
ncurses_wrap.c:1178:5: warning: passing argument 1 of ‘scr_set’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(scr_set(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:726:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) scr_set (const char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_slk_set’:
ncurses_wrap.c:1226:5: warning: passing argument 2 of ‘slk_set’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(slk_set(NUM2INT(arg1), STR2CSTR(arg2), NUM2INT(arg3)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:743:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) slk_set (int,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_tigetflag’:
ncurses_wrap.c:1257:5: warning: passing argument 1 of ‘tigetflag’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(tigetflag(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:827:28: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_tigetnum’:
ncurses_wrap.c:1262:5: warning: passing argument 1 of ‘tigetnum’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(tigetnum(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:828:28: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_tigetstr’:
ncurses_wrap.c:1267:5: warning: passing argument 1 of ‘tigetstr’ makes pointer from integer without a cast [enabled by default]
return rb_str_new2(tigetstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:829:31: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c:1267:5: warning: passing argument 1 of ‘tigetstr’ makes pointer from integer without a cast [enabled by default]
return rb_str_new2(tigetstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:829:31: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c:1267:5: warning: passing argument 1 of ‘tigetstr’ makes pointer from integer without a cast [enabled by default]
return rb_str_new2(tigetstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:829:31: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c:1267:5: warning: passing argument 1 of ‘tigetstr’ makes pointer from integer without a cast [enabled by default]
return rb_str_new2(tigetstr(STR2CSTR(arg1)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:829:31: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_waddnstr’:
ncurses_wrap.c:1312:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(waddnstr(get_window(arg1), STR2CSTR(arg2), NUM2INT(arg3)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_waddstr’:
ncurses_wrap.c:1315:5: warning: passing argument 2 of ‘waddnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(waddstr(get_window(arg1), STR2CSTR(arg2)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:770:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_winsnstr’:
ncurses_wrap.c:1388:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(winsnstr(get_window(arg1), STR2CSTR(arg2), NUM2INT(arg3)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_winsstr’:
ncurses_wrap.c:1391:5: warning: passing argument 2 of ‘winsnstr’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(winsstr(get_window(arg1), STR2CSTR(arg2)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:803:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
^
ncurses_wrap.c: In function ‘rbncurs_newterm’:
ncurses_wrap.c:1493:48: warning: pointer/integer type mismatch in conditional expression [enabled by default]
char * type = (rb_type == Qnil) ? (char*)0 : STR2CSTR(rb_type);
^
ncurses_wrap.c: In function ‘rbncurs_mcprint’:
ncurses_wrap.c:2143:5: warning: passing argument 1 of ‘mcprint’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(mcprint(STR2CSTR(data), NUM2INT(len)));
^
In file included from ncurses_wrap.h:76:0,
from ncurses_wrap.c:66:
/usr/include/curses.h:1910:28: note: expected ‘char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) mcprint (char *, int); /* direct data to printer */
^
compiling panel_wrap.c
compiling form_wrap.c
form_wrap.c: In function ‘rbncurs_m_new_form’:
form_wrap.c:395:34: error: ‘struct RArray’ has no member named ‘len’
long n = RARRAY(rb_field_array)->len;
^
form_wrap.c: In function ‘rbncurs_c_set_field_type’:
form_wrap.c:619:23: error: ‘struct RArray’ has no member named ‘len’
int n = RARRAY(arg3)->len;
^
form_wrap.c:624:13: warning: assignment makes pointer from integer without a cast [enabled by default]
list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i));
^
form_wrap.c: In function ‘rbncurs_c_set_field_buffer’:
form_wrap.c:741:3: warning: passing argument 3 of ‘set_field_buffer’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(set_field_buffer(field, NUM2INT(buf), STR2CSTR(value)));
^
In file included from form_wrap.h:26:0,
from form_wrap.c:28:
/usr/include/form.h:341:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
^
form_wrap.c: In function ‘rbncurs_c_set_form_fields’:
form_wrap.c:778:34: error: ‘struct RArray’ has no member named ‘len’
long n = RARRAY(rb_field_array)->len;
^
form_wrap.c: In function ‘rbncurs_c_form_request_by_name’:
form_wrap.c:1051:3: warning: passing argument 1 of ‘form_request_by_name’ makes pointer from integer without a cast [enabled by default]
return INT2NUM(form_request_by_name(STR2CSTR(name)));
^
In file included from form_wrap.h:26:0,
from form_wrap.c:28:
/usr/include/form.h:403:28: note: expected ‘const char *’ but argument is of type ‘int’
extern NCURSES_EXPORT(int) form_request_by_name (const char *);
^
form_wrap.c: In function ‘make_arg’:
form_wrap.c:1126:38: error: ‘struct RArray’ has no member named ‘len’
if (NUM2INT(argc)-1 != RARRAY(args)->len) {
^
make: *** [form_wrap.o] Error 1I honestly have no idea where to start on this one, any ideas?
Last edited by pigpenguin (2013-04-15 14:12:15)
Offline
What's wrong with community/ruby-ncurses?
Offline
Nothing apparently, I just didn't look there. Thank you for pointing that out.
Offline