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

Showing 1-5 of 5 messages
Issue 49 in vim: failed to build with dynamic ruby 1.9.3 v...@googlecode.com 1/25/12 8:10 AM
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


Re: Issue 49 in vim: failed to build with dynamic ruby 1.9.3 v...@googlecode.com 9/18/12 5:57 AM

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

Re: Issue 49 in vim: failed to build with dynamic ruby 1.9.3 v...@googlecode.com 9/18/12 11:41 AM

Comment #2 on 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

thx, trying right now

Re: Issue 49 in vim: failed to build with dynamic ruby 1.9.3 v...@googlecode.com 9/19/12 4:50 AM

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

Re: Issue 49 in vim: failed to build with dynamic ruby 1.9.3 v...@googlecode.com 10/3/12 9:37 AM
Updates:
        Status: Fixed

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

Included in patch 7.3.679.