Issue 49 in vim: failed to build with dynamic ruby 1.9.3

142 wyświetlenia
Przejdź do pierwszej nieodczytanej wiadomości

v...@googlecode.com

nieprzeczytany,
25 sty 2012, 11:10:5525.01.2012
do vim...@vim.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 49 by Ike.Devo...@gmail.com: failed to build with dynamic ruby
1.9.3
http://code.google.com/p/vim/issues/detail?id=49

What steps will reproduce the problem?
1.
./configure --prefix=/usr --localstatedir=/var/lib/vim \
--mandir=/usr/share/man \
--with-features=huge --enable-gpm --enable-acl --with-x=no \
--disable-gui --enable-multibyte --enable-cscope \
--disable-netbeans --enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic --enable-python3interp=dynamic \
--enable-rubyinterp=dynamic --enable-luainterp=dynamic

2. make

What is the expected output? What do you see instead?
success build


What version of the product are you using? On what operating system?
7.3.410, archlinux

Please provide any additional information below.

build ends with:

objects/if_ruby.o: In function `window_s_aref':
if_ruby.c:(.text+0x31f): undefined reference to `rb_fix2int'
if_ruby.c:(.text+0x361): undefined reference to `rb_num2int'
objects/if_ruby.o: In function `buffer_s_aref':
if_ruby.c:(.text+0x3cf): undefined reference to `rb_fix2int'
if_ruby.c:(.text+0x419): undefined reference to `rb_num2int'
objects/if_ruby.o: In function `window_set_width':
if_ruby.c:(.text+0x105d): undefined reference to `rb_num2int'
if_ruby.c:(.text+0x1089): undefined reference to `rb_fix2int'
objects/if_ruby.o: In function `window_set_height':
if_ruby.c:(.text+0x10cd): undefined reference to `rb_num2int'
if_ruby.c:(.text+0x10f9): undefined reference to `rb_fix2int'
objects/if_ruby.o: In function `window_set_cursor':
if_ruby.c:(.text+0x1170): undefined reference to `rb_num2uint'
collect2: ld returned 1 exit status
link.sh: Linking failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/build/src/vim-build/src'
make: *** [first] Error 2


v...@googlecode.com

nieprzeczytany,
18 wrz 2012, 08:57:4818.09.2012
do vim...@vim.org

Comment #1 on issue 49 by v.ondr...@gmail.com: failed to build with dynamic
ruby 1.9.3
http://code.google.com/p/vim/issues/detail?id=49

This fixes the build. Unfortunately, vim tries to load just libruby.so,
which might require -devel packages on some platforms :/

Attachments:
vim-7.3-dynamic-ruby.patch 1.4 KB

v...@googlecode.com

nieprzeczytany,
18 wrz 2012, 14:41:3818.09.2012
do vim...@vim.org

Comment #2 on issue 49 by Ike.Devo...@gmail.com: failed to build with
thx, trying right now

v...@googlecode.com

nieprzeczytany,
19 wrz 2012, 07:50:1719.09.2012
do vim...@vim.org

Comment #3 on issue 49 by v.ondr...@gmail.com: failed to build with dynamic
ruby 1.9.3
http://code.google.com/p/vim/issues/detail?id=49

And this is patch fixing the .so name detection.

Attachments:
detect_soname_from_rubylib_so.patch 878 bytes

v...@googlecode.com

nieprzeczytany,
3 paź 2012, 12:37:463.10.2012
do vim...@vim.org
Updates:
Status: Fixed

Comment #4 on issue 49 by brammool...@gmail.com: failed to build with
Included in patch 7.3.679.

Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0