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