Open Konfekt opened 9 years ago
I'm not familiar with ruby. Seems you try to use msys-ruby and build can't find system headers. I think you need install: pacman -S msys2-runtime-devel ncurses-devel gcc
Thank you. I tried that and restarted msy2
. The issue persists. There's also a warning
WARNING: You don't have /c/Users/Konfekt/.gem/ruby/2.1.0/bin in your PATH,
gem executables will not run.
which is true, as there are no binaries in that folder, but I think this only affects running these programs. I have also ruby windows native installed, but removing it from PATH
didn't change anything.
You're probably still missing some packages. Unfortunately, my results aren't so good either:
gcc -shared -o ncurses.so form_wrap.o ncurses_wrap.o panel_wrap.o -L. -L/usr/lib -L. -pipe -fstack-protector -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import -lruby210 -lncurses -lpthread -lgmp -ldl -lcrypt
ncurses_wrap.o: In function `rbncurs_insstr':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:902: undefined reference to `STR2CSTR'
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:902:(.text+0x2b8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_addstr':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:539: undefined reference to `STR2CSTR'
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:539:(.text+0x7a8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_tigetstr':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1267: undefined reference to `STR2CSTR'
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1267:(.text+0x9d8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_tigetnum':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1262: undefined reference to `STR2CSTR'
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1262:(.text+0x9f8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_tigetflag':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1257: undefined reference to `STR2CSTR'
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1257:(.text+0xa18): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o:/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1178: more undefined references to `STR2CSTR' follow
ncurses_wrap.o: In function `rbncurs_scr_set':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1178:(.text+0xc48): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_scr_restore':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1173:(.text+0xc68): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_scr_init':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1159:(.text+0xc88): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_scr_dump':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1154:(.text+0xca8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_putp':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:1121:(.text+0xd88): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `STR2CSTR'
ncurses_wrap.o: In function `rbncurs_define_key':
/c/Users/ether/.gem/ruby/2.1.0/gems/ncurses-0.9.1/ncurses_wrap.c:430:(.text+0x22c5): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
ruby and devtools are installed, however
gem install ncurses
gives