mxcl/homebrew — Issue #10124: macvim snapshot 64 ruby 1.9.3 issue
Author: gilligan
Created: 2012-02-12 21:10:54+00:00
State: open

macvim snapshot 64 fails to compile because of a ruby 1.9.3 compatibility problem for me. Below is the relevant output:

============

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/System/Library/Frameworks/Tcl.framework/Headers -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_DARWIN_C_SOURCE=1 -o objects/os_macosx.o os_macosx.m
In file included from if_ruby.c:94:
/usr/local/Cellar/ruby/1.9.3-p0/include/ruby-1.9.1/ruby/encoding.h:101: error: expected declaration specifiers or ‘...’ before numeric constant
/usr/local/Cellar/ruby/1.9.3-p0/include/ruby-1.9.1/ruby/encoding.h:101: error: expected declaration specifiers or ‘...’ before numeric constant
/usr/local/Cellar/ruby/1.9.3-p0/include/ruby-1.9.1/ruby/encoding.h:101: warning: data definition has no type or storage class
/usr/local/Cellar/ruby/1.9.3-p0/include/ruby-1.9.1/ruby/encoding.h:101: warning: type defaults to ‘int’ in declaration of ‘PRINTF_ARGS’
/usr/local/Cellar/ruby/1.9.3-p0/include/ruby-1.9.1/ruby/encoding.h:213: error: conflicting types for ‘rb_memsearch’
/System/Library/Frameworks/Ruby.framework/Headers/intern.h:384: error: previous declaration of ‘rb_memsearch’ was here
if_ruby.c: In function ‘eval_enc_string_protect’:
if_ruby.c:575: warning: implicit declaration of function ‘rb_sprintf’
if_ruby.c: In function ‘error_print’:
if_ruby.c:735: warning: implicit declaration of function ‘rb_errinfo’
make[1]: *** [objects/if_ruby.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [first] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/macvim.rb#L63
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: f71523d52a218040d9be14032a5764b299f19ad6
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: dual-core 64-bit penryn
OS X: 10.7.2
Kernel Architecture: x86_64
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.0 build 211
MacPorts or Fink? false
X11 installed? true
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /usr/local/Cellar/ruby/1.9.3-p0/bin//ruby => /usr/local/Cellar/ruby/1.9.3-p0/bin/ruby
==> Build Flags
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
MAKEFLAGS: -j2

============