Created
April 16, 2011 00:34
-
-
Save johnsome/922702 to your computer and use it in GitHub Desktop.
Revisions
-
johnsome created this gist
Apr 16, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,103 @@ running OSX 10.5.8 same error in ruby 1.9.2 mj:~ mark$ gem install ffi Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. /Users/mark/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb checking for ffi.h in /usr/local/include... no checking for rb_thread_blocking_region()... no checking for ruby_thread_has_gvl_p()... no checking for ruby_native_thread_p()... no checking for rb_thread_call_with_gvl()... no creating extconf.h creating Makefile make gcc -I. -I. -I/Users/mark/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin9.8.0 -I. -I/Users/mark/.rvm/gems/ruby-1.8.7-p302/gems/ffi-1.0.7/ext/ffi_c/libffi/include -I/Users/mark/.rvm/gems/ruby-1.8.7-p302/gems/ffi-1.0.7/ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -O2 -fno-common -pipe -fno-common -Wno-declaration-after-statement -c AbstractMemory.c In file included from AbstractMemory.c:29: AbstractMemory.h:58: error: syntax error before 'unsigned' AbstractMemory.h:58: warning: no semicolon at end of struct or union AbstractMemory.h:63: error: syntax error before '}' token AbstractMemory.h:63: warning: data definition has no type or storage class AbstractMemory.h:74: error: syntax error before 'rbffi_AbstractMemoryOps' AbstractMemory.h:74: warning: data definition has no type or storage class AbstractMemory.h: In function 'get_memory_op': AbstractMemory.h:112: error: request for member 'int8' in something not a structure or union AbstractMemory.h:114: error: request for member 'uint8' in something not a structure or union AbstractMemory.h:116: error: request for member 'int16' in something not a structure or union AbstractMemory.h:118: error: request for member 'uint16' in something not a structure or union AbstractMemory.h:120: error: request for member 'int32' in something not a structure or union AbstractMemory.h:122: error: request for member 'uint32' in something not a structure or union AbstractMemory.h:124: error: request for member 'int64' in something not a structure or union AbstractMemory.h:126: error: request for member 'uint64' in something not a structure or union AbstractMemory.h:128: error: request for member 'slong' in something not a structure or union AbstractMemory.h:130: error: syntax error before 'unsigned' AbstractMemory.h:132: error: request for member 'float32' in something not a structure or union AbstractMemory.h:134: error: request for member 'float64' in something not a structure or union AbstractMemory.h:136: error: request for member 'pointer' in something not a structure or union AbstractMemory.h:138: error: request for member 'strptr' in something not a structure or union AbstractMemory.c: At top level: AbstractMemory.c:488: error: syntax error before 'rbffi_AbstractMemoryOps' AbstractMemory.c:489: error: field name not in record or union initializer AbstractMemory.c:489: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:489: warning: initialization makes integer from pointer without a cast AbstractMemory.c:490: error: field name not in record or union initializer AbstractMemory.c:490: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:490: warning: excess elements in scalar initializer AbstractMemory.c:490: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:491: error: field name not in record or union initializer AbstractMemory.c:491: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:491: warning: excess elements in scalar initializer AbstractMemory.c:491: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:492: error: field name not in record or union initializer AbstractMemory.c:492: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:492: warning: excess elements in scalar initializer AbstractMemory.c:492: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:493: error: field name not in record or union initializer AbstractMemory.c:493: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:493: warning: excess elements in scalar initializer AbstractMemory.c:493: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:494: error: field name not in record or union initializer AbstractMemory.c:494: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:494: warning: excess elements in scalar initializer AbstractMemory.c:494: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:495: error: field name not in record or union initializer AbstractMemory.c:495: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:495: warning: excess elements in scalar initializer AbstractMemory.c:495: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:496: error: field name not in record or union initializer AbstractMemory.c:496: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:496: warning: excess elements in scalar initializer AbstractMemory.c:496: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:497: error: field name not in record or union initializer AbstractMemory.c:497: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:497: warning: excess elements in scalar initializer AbstractMemory.c:497: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:498: error: syntax error before 'unsigned' AbstractMemory.c:499: error: field name not in record or union initializer AbstractMemory.c:499: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:499: warning: excess elements in scalar initializer AbstractMemory.c:499: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:500: error: field name not in record or union initializer AbstractMemory.c:500: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:500: warning: excess elements in scalar initializer AbstractMemory.c:500: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:501: error: field name not in record or union initializer AbstractMemory.c:501: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:501: warning: excess elements in scalar initializer AbstractMemory.c:501: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:502: error: field name not in record or union initializer AbstractMemory.c:502: error: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:502: warning: excess elements in scalar initializer AbstractMemory.c:502: warning: (near initialization for 'rbffi_AbstractMemoryOps') AbstractMemory.c:503: warning: data definition has no type or storage class make: *** [AbstractMemory.o] Error 1 Gem files will remain installed in /Users/mark/.rvm/gems/ruby-1.8.7-p302/gems/ffi-1.0.7 for inspection. Results logged to /Users/mark/.rvm/gems/ruby-1.8.7-p302/gems/ffi-1.0.7/ext/ffi_c/gem_make.out mj:~ mark$