On 02/03/2010 02:57 a.m., Sergey Khorev wrote:
>> Thanks. Unless someone complains I'll include this soon.
>
> Bram,
>
> I do not use Ruby integration but the patch seems defeating the very
> point of dynamic loading, making Vim dependent on Ruby dll.
> Unless someone more knowledgeable outruns me, I am going to have a
> look into this.
>
> Cesar,
>
> Have you checked that Vim works when there is no ruby dll in the PATH?
I myself don't use Ruby integration but it'd be better if vim can
work with all modules integrated on windows and the only problem at the
moment is the dynamic loading of Ruby.
If I remove ruby dll from the PATH, vim won't work.
If I build with true dynamic loading of ruby I get:
--------------------
gobjZ/if_ruby.o:if_ruby.c:(.text+0x9b5): undefined reference to
`rb_string_value_ptr'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xae3): undefined reference to
`rb_string_value_ptr'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xb0d): undefined reference to
`rb_string_value_ptr'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xbee): undefined reference to
`rb_float_new'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xbfd): undefined reference to `rb_ary_new'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xc1c): undefined reference to
`rb_ary_push'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xc3d): undefined reference to
`rb_string_value_ptr'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xf38): undefined reference to
`rb_string_value_ptr'
gobjZ/if_ruby.o:if_ruby.c:(.text+0x1157): undefined reference to
`rb_string_value_ptr'
collect2: ld returned 1 exit status
make: *** [gvim.exe] Error 1
--------------------
If I apply the patch:
--------------------
--- if_ruby.c 2010-02-24 12:43:07 -0500
+++ if_ruby.new.c 2010-03-02 09:20:25 -0500
@@ -74,9 +74,7 @@
* Ruby 1.9 does not provide RXXX(s)->len and RXXX(s)->ptr, instead
* RXXX_LEN(s) and RXXX_PTR(s) are provided.
*/
-#ifndef StringValuePtr
# define StringValuePtr(s) STR2CSTR(s)
-#endif
#ifndef RARRAY_LEN
# define RARRAY_LEN(s) RARRAY(s)->len
#endif
--------------------
I get only:
--------------------
gobjZ/if_ruby.o:if_ruby.c:(.text+0xbee): undefined reference to
`rb_float_new'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xbfd): undefined reference to `rb_ary_new'
gobjZ/if_ruby.o:if_ruby.c:(.text+0xc1c): undefined reference to
`rb_ary_push'
--------------------
which were introduced with patch 7.2.374
Best regards,
--
Cesar
--
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