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

142 views
Skip to first unread message

v...@googlecode.com

unread,
Jan 25, 2012, 11:10:55 AM1/25/12
to 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

unread,
Sep 18, 2012, 8:57:48 AM9/18/12
to 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

unread,
Sep 18, 2012, 2:41:38 PM9/18/12
to vim...@vim.org

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

v...@googlecode.com

unread,
Sep 19, 2012, 7:50:17 AM9/19/12
to 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

unread,
Oct 3, 2012, 12:37:46 PM10/3/12
to 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.

Reply all
Reply to author
Forward
0 new messages