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

Cannot compile on Snow Leopard with Ruby support

Expand Messages
  • Arseni Buinitsky
    Hi. Compiling with ./configure --with-features=huge --enable-cscope --enable-rubyinterp on Snow Leopard and make fails with this: gcc -c -I. -Iproto
    Message 1 of 4 , Oct 29, 2009
    • 0 Attachment
      Hi.

      Compiling with

      ./configure --with-features=huge --enable-cscope --enable-rubyinterp

      on Snow Leopard and make fails with this:

      gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-
      unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -
      D_FORTIFY_SOURCE=1 -I/System/Library/Frameworks/Ruby.framework/
      Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -o objects/
      if_ruby.o if_ruby.c
      if_ruby.c:52:24: error: Ruby/Ruby.h: No such file or directory
      if_ruby.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
      before ‘objtbl’
      if_ruby.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
      before ‘mVIM’
      ...

      Symlinking /System/Library/Frameworks/Ruby.framework/Versions/1.8/
      Headers to /usr/include/Ruby and fixing src/if_ruby.c (or symlinking
      ruby.h -> Ruby.h)

      --- a/src/if_ruby.c
      +++ b/src/if_ruby.c
      @@ -49,7 +49,7 @@
      #endif

      #ifdef FEAT_GUI_MACVIM
      -# include <Ruby/Ruby.h>
      +# include <Ruby/ruby.h>
      #else
      # include <ruby.h>
      #endif

      helped. But this feels somehow wrong. I am using git snapshot.

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • björn
      ... It sounds like you re using a case-senstive filesystem. Is that correct? In that case, is it not enough to simply edit if_ruby.c as you ve done in the
      Message 2 of 4 , Oct 31, 2009
      • 0 Attachment
        2009/10/30 Arseni Buinitsky:
        >
        > Compiling with
        >
        > ./configure --with-features=huge --enable-cscope --enable-rubyinterp
        >
        > on Snow Leopard and make fails with this:
        >
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-
        > unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -g -O2 -
        > D_FORTIFY_SOURCE=1       -I/System/Library/Frameworks/Ruby.framework/
        > Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0  -o objects/
        > if_ruby.o if_ruby.c
        > if_ruby.c:52:24: error: Ruby/Ruby.h: No such file or directory
        > if_ruby.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
        > before ‘objtbl’
        > if_ruby.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
        > before ‘mVIM’
        > ...
        >
        > Symlinking /System/Library/Frameworks/Ruby.framework/Versions/1.8/
        > Headers to /usr/include/Ruby and fixing src/if_ruby.c (or symlinking
        > ruby.h -> Ruby.h)
        >
        > --- a/src/if_ruby.c
        > +++ b/src/if_ruby.c
        > @@ -49,7 +49,7 @@
        >  #endif
        >
        >  #ifdef FEAT_GUI_MACVIM
        > -# include <Ruby/Ruby.h>
        > +# include <Ruby/ruby.h>
        >  #else
        >  # include <ruby.h>
        >  #endif
        >
        > helped. But this feels somehow wrong. I am using git snapshot.

        It sounds like you're using a case-senstive filesystem. Is that correct?

        In that case, is it not enough to simply edit if_ruby.c as you've done
        in the patch above? (I assumed all framework includes started with a
        capital letter, but it seems "ruby.h" is an exception.)

        Lastly, can you tell me what the RUBY_* flags inside
        src/auto/config.mk look like for you (there should be a "-framework
        Ruby" flag in there but I can't see it in the output from "make" that
        you provided).

        Thanks,
        Björn

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Arseni Buinitsky
        ... Yes, I do use case-sensitive fs ... I rechecked, and this is actually enough, sorry. ... In my case all includes in ruby framework start with lowercase.
        Message 3 of 4 , Nov 4, 2009
        • 0 Attachment
          > It sounds like you're using a case-senstive filesystem.  Is that correct?
          Yes, I do use case-sensitive fs

          > In that case, is it not enough to simply edit if_ruby.c as you've done
          > in the patch above?
          I rechecked, and this is actually enough, sorry.

          > (I assumed all framework includes started with a
          > capital letter, but it seems "ruby.h" is an exception.)
          In my case all includes in ruby framework start with lowercase.

          > Lastly, can you tell me what the RUBY_* flags inside
          > src/auto/config.mk look like for you (there should be a "-framework
          > Ruby" flag in there but I can't see it in the output from "make" that
          > you provided).
          RUBY = /usr/bin/ruby
          RUBY_SRC = if_ruby.c
          RUBY_OBJ = objects/if_ruby.o
          RUBY_PRO = if_ruby.pro
          RUBY_CFLAGS = -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
          usr/lib/ruby/1.8/universal-darwin10.0
          RUBY_LIBS = -framework Ruby

          --
          Arseni <jazzcat> Buinitsky
          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_mac" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        • björn
          ... Thanks for the reply, I ll patch this right away. Björn --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_mac
          Message 4 of 4 , Nov 4, 2009
          • 0 Attachment
            2009/11/4 Arseni Buinitsky:
            >
            >> It sounds like you're using a case-senstive filesystem.  Is that correct?
            > Yes, I do use case-sensitive fs
            >
            >> In that case, is it not enough to simply edit if_ruby.c as you've done
            >> in the patch above?
            > I rechecked, and this is actually enough, sorry.
            >
            >> (I assumed all framework includes started with a
            >> capital letter, but it seems "ruby.h" is an exception.)
            > In my case all includes in ruby framework start with lowercase.
            >
            >> Lastly, can you tell me what the RUBY_* flags inside
            >> src/auto/config.mk look like for you (there should be a "-framework
            >> Ruby" flag in there but I can't see it in the output from "make" that
            >> you provided).
            > RUBY            = /usr/bin/ruby
            > RUBY_SRC        = if_ruby.c
            > RUBY_OBJ        = objects/if_ruby.o
            > RUBY_PRO        = if_ruby.pro
            > RUBY_CFLAGS     = -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
            > usr/lib/ruby/1.8/universal-darwin10.0
            > RUBY_LIBS       = -framework Ruby

            Thanks for the reply, I'll patch this right away.

            Björn

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