Since version 2.2.0 of ruby building vim with dynamic ruby fails.

gcc -c -I. -Iproto -DHAVE_CONFIG_H   -D_FORTIFY_SOURCE=2  -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-DDYNAMIC_RUBY_DLL=\"libruby.so.2.2.0\" -DDYNAMIC_RUBY_VER=22
-I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/x86_64-linux
-DRUBY_VERSION=22 -o objects/if_ruby.o if_ruby.c

if_ruby.c:185:0: warning: "rb_data_object_alloc" redefined
 # define rb_data_object_alloc  dll_rb_data_object_alloc
 ^
In file included from /usr/include/ruby-2.2.0/ruby.h:33:0,
                 from if_ruby.c:105:
/usr/include/ruby-2.2.0/ruby/ruby.h:1203:0: note: this is the location of the 
previous definition
 #define rb_data_object_alloc  RUBY_MACRO_SELECT(rb_data_object_alloc_, 
RUBY_UNTYPED_DATA_WARNING)
 ^
if_ruby.c:227:0: warning: "rb_str_new" redefined
 # define rb_str_new   dll_rb_str_new
 ^
In file included from /usr/include/ruby-2.2.0/ruby/ruby.h:1710:0,
                 from /usr/include/ruby-2.2.0/ruby.h:33,
                 from if_ruby.c:105:
/usr/include/ruby-2.2.0/ruby/intern.h:793:0: note: this is the location of the 
previous definition
 #define rb_str_new(str, len) __extension__ ( \
 ^
if_ruby.c:274:0: warning: "rb_enc_str_new" redefined
 #  define rb_enc_str_new   dll_rb_enc_str_new
 ^
In file included from if_ruby.c:107:0:
/usr/include/ruby-2.2.0/ruby/encoding.h:110:0: note: this is the location of 
the previous definition
 #define rb_enc_str_new(str, len, enc) __extension__ ( \
 ^


link.sh: $LINK_AS_NEEDED set to 'yes': invoking linker directly.
  gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector
  -rdynamic -Wl,-export-dynamic -Wl,-E
  -Wl,-rpath,/usr/lib/perl5/core_perl/CORE
  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib
  -Wl,--as-needed     -o vim objects/buffer.o objects/blowfish.o
  objects/charset.o objects/crypt.o objects/crypt_zip.o objects/diff.o
  objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o
  objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o
  objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o
  objects/hardcopy.o objects/hashtab.o  objects/if_cscope.o
  objects/if_xcmdsrv.o objects/mark.o objects/memline.o objects/menu.o
  objects/message.o objects/misc1.o objects/misc2.o objects/move.o
  objects/mbyte.o objects/normal.o objects/ops.o objects/option.o
  objects/os_unix.o objects/pathdef.o objects/popupmnu.o
  objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o
  objects/sha256.o objects/spell.o objects/syntax.o  objects/tag.o
  objects/term.o objects/ui.o objects/undo.o objects/version.o
  objects/window.o  objects/if_lua.o  objects/if_perl.o
  objects/if_perlsfio.o objects/if_python.o objects/if_python3.o
  objects/if_ruby.o     objects/main.o objects/memfile.o    -lSM -lICE
  -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf    -lacl
  -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE
  -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector
  -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl
  -lm -lcrypt -lutil -lpthread -lc       

objects/if_ruby.o: In function `get_win':
if_ruby.c:(.text+0x8fa): undefined reference to `rb_check_type'
objects/if_ruby.o: In function `get_buf':
if_ruby.c:(.text+0x9da): undefined reference to `rb_check_type'
objects/if_ruby.o: In function `window_set_cursor':
if_ruby.c:(.text+0xbc3): undefined reference to `rb_gc_writebarrier_unprotect'
if_ruby.c:(.text+0xbd8): undefined reference to `rb_gc_writebarrier_unprotect'
if_ruby.c:(.text+0xbe7): undefined reference to `rb_gc_writebarrier_unprotect'
if_ruby.c:(.text+0xbf8): undefined reference to `rb_gc_writebarrier_unprotect'
if_ruby.c:(.text+0xc71): undefined reference to `rb_gc_writebarrier_unprotect'
objects/if_ruby.o:if_ruby.c:(.text+0xc99): more undefined references to 
`rb_gc_writebarrier_unprotect' follow
collect2: error: ld returned 1 exit status
link.sh: Linking failed

I think the above are the relevant parts

-- 
Ike

-- 
-- 
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.

Attachment: pgpVZh0qRKs_f.pgp
Description: PGP signature

Raspunde prin e-mail lui