Loading ...
Sorry, an error occurred while loading the content.

Re: Patch 7.2.376

Expand Messages
  • Cesar Romani
    ... of the ... vim 7.2.376 with ruby 1.8.6 compiles fine with MinGW on Win XP, but only if DYNAMIC_RUBY=no ... Warning: .drectve `-defaultlib:MSVCRT
    Message 1 of 2 , Feb 24, 2010
    • 0 Attachment
      Bram Moolenaar wrote:
      > Patch 7.2.376
      > Problem: ml_get error when using SiSU syntax. (Nathan Thomas)
      > Solution: If the match ends below the last line move it to the end
      of the
      > last line.
      > Files: src/syntax.c
      >
      >
      > *** ../vim-7.2.375/src/syntax.c 2010-01-19 14:59:14.000000000 +0100
      > --- src/syntax.c 2010-02-24 17:14:13.000000000 +0100
      > ***************
      > *** 3086,3091 ****
      > --- 3086,3097 ----
      > col = regmatch->startpos[0].col;
      > off = spp->sp_offsets[idx];
      > }
      > + if (result->lnum > syn_buf->b_ml.ml_line_count)
      > + {
      > + /* a "\n" at the end of the pattern may take us below the last line */
      > + result->lnum = syn_buf->b_ml.ml_line_count;
      > + col = STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
      > + }
      > if (off != 0)
      > {
      > base = ml_get_buf(syn_buf, result->lnum, FALSE);
      > *** ../vim-7.2.375/src/version.c 2010-02-24 16:58:30.000000000 +0100
      > --- src/version.c 2010-02-24 17:15:48.000000000 +0100
      > ***************
      > *** 683,684 ****
      > --- 683,686 ----
      > { /* Add new patch number below this line */
      > + /**/
      > + 376,
      > /**/
      >

      vim 7.2.376 with ruby 1.8.6 compiles fine with MinGW on Win XP, but only
      if DYNAMIC_RUBY=no
      With DYNAMIC_RUBY=yes I get:

      --------------------
      Warning: .drectve `-defaultlib:MSVCRT ' unrecognized
      Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x98a): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xb43): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xb6d): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xb93): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xc60): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xcaf): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xd91): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xdf1): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xe71): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xed8): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0xfa5): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x103d): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x10f3): undefined reference to
      `rb_string_value_ptr'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x113d): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x12f0): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x1375): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x143d): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x14bd): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x1531): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x15b1): undefined reference to
      `rb_num2long'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x1645): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x1661): undefined reference to
      `rb_int2big'
      gobjZ/if_ruby.o:if_ruby.c:(.text+0x1761): undefined reference to
      `rb_num2long'
      collect2: ld returned 1 exit status
      make: *** [gvim.exe] Error 1
      --------------------
      The same happens with vim.exe

      Many thanks in advance,
      Cesar

      --
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.