lalitmetkar / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

failed to build with dynamic ruby 1.9.3 #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by Ike.Devo...@gmail.com on 25 Jan 2012 at 4:10

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

Original comment by v.ondr...@gmail.com on 18 Sep 2012 at 12:57

Attachments:

GoogleCodeExporter commented 9 years ago
thx, trying right now

Original comment by Ike.Devo...@gmail.com on 18 Sep 2012 at 6:41

GoogleCodeExporter commented 9 years ago
And this is patch fixing the .so name detection.

Original comment by v.ondr...@gmail.com on 19 Sep 2012 at 11:50

Attachments:

GoogleCodeExporter commented 9 years ago
Included in patch 7.3.679.

Original comment by brammool...@gmail.com on 3 Oct 2012 at 4:37