There are several reports that vim cannot be built with +ruby/dyn [1, 2]. The
attached patch fixes the issue. Unfortunately, the vim tries to load libruby.so
instead of its versioned version, which is on Fedora available just in -devel
subpackage. Not sure how to fix this issue :/
Vit
[1] https://bugzilla.redhat.com/show_bug.cgi?id=752785
[2] http://code.google.com/p/vim/issues/detail?id=49
--
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
diff -r 5884d056e1d1 src/if_ruby.c
--- a/src/if_ruby.c Wed Sep 12 20:21:43 2012 +0200
+++ b/src/if_ruby.c Tue Sep 18 13:22:04 2012 +0200
@@ -178,6 +178,9 @@
#define rb_hash_new dll_rb_hash_new
#define rb_inspect dll_rb_inspect
#define rb_int2inum dll_rb_int2inum
+#define rb_fix2int dll_rb_fix2int
+#define rb_num2int dll_rb_num2int
+#define rb_num2uint dll_rb_num2uint
#define rb_lastline_get dll_rb_lastline_get
#define rb_lastline_set dll_rb_lastline_set
#define rb_load_protect dll_rb_load_protect
@@ -269,6 +272,9 @@
static VALUE (*dll_rb_inspect) (VALUE);
static VALUE (*dll_rb_int2inum) (long);
static VALUE (*dll_rb_int2inum) (long);
+static long (*dll_rb_fix2int) (VALUE);
+static long (*dll_rb_num2int) (VALUE);
+static unsigned long (*dll_rb_num2uint) (VALUE);
static VALUE (*dll_rb_lastline_get) (void);
static void (*dll_rb_lastline_set) (VALUE);
static void (*dll_rb_load_protect) (VALUE, int, int*);
@@ -377,6 +383,9 @@
{"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
{"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
{"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
+ {"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
+ {"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
+ {"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
{"rb_lastline_get", (RUBY_PROC*)&dll_rb_lastline_get},
{"rb_lastline_set", (RUBY_PROC*)&dll_rb_lastline_set},
{"rb_load_protect", (RUBY_PROC*)&dll_rb_load_protect},