Ken Takata wrote:

> 2014/3/28 Fri 3:09:11 UTC+9 Bram Moolenaar wrote:
> > Patch 7.4.225
> > Problem:    Dynamic Ruby doesn't work on Solaris.
> > Solution:   Always use the stubs. (Danek Duvall, Yukihiro Nakadaira)
> > Files:          src/if_ruby.c
> 
> Link error occurs after 7.4.225 on Ubuntu 12.04 x86_64 with ruby 1.8
> (+ruby/dyn).
> 
> objects/if_ruby.o: In function `window_s_aref':
> if_ruby.c:(.text+0x2cf): undefined reference to `rb_fix2int_stub'
> if_ruby.c:(.text+0x311): undefined reference to `rb_num2int_stub'
> objects/if_ruby.o: In function `buffer_s_aref':
> if_ruby.c:(.text+0x37f): undefined reference to `rb_fix2int_stub'
> if_ruby.c:(.text+0x3c9): undefined reference to `rb_num2int_stub'
> objects/if_ruby.o: In function `window_set_width':
> if_ruby.c:(.text+0x101d): undefined reference to `rb_num2int_stub'
> if_ruby.c:(.text+0x1049): undefined reference to `rb_fix2int_stub'
> objects/if_ruby.o: In function `window_set_height':
> if_ruby.c:(.text+0x108d): undefined reference to `rb_num2int_stub'
> if_ruby.c:(.text+0x10b9): undefined reference to `rb_fix2int_stub'
> 
> Attached patch seems to fix this.
> 
> Tested with:
>  * Ubuntu 12.04 x86_64, ruby 1.8.7 (+ruby/dyn)
>  * Ubuntu 12.04 x86_64, ruby 1.9.3 (+ruby/dyn)

Thanks!


-- 
It doesn't really matter what you are able to do if you don't do it.
                                (Bram Moolenaar)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui