Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Does not compile in Ruby 2.0.0-preview #1

Closed
baruchlubinsky opened this Issue · 1 comment

2 participants

@baruchlubinsky

The gem is not compiling with Ruby 2.0.0 preview. I am on OSX 10.7.5. This is the only problem I have encountered using Ruby 2 so far.

Output:

/Users/baruch/.rvm/rubies/ruby-2.0.0-preview1/bin/ruby extconf.rb 
creating Makefile

make
compiling binding_of_caller.c
binding_of_caller.c:4:21: error: vm_core.h: No such file or directory
binding_of_caller.c:5:16: error: gc.h: No such file or directory
binding_of_caller.c: In function ‘binding_memsize’:
binding_of_caller.c:33: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:33: error: (Each undeclared identifier is reported only once
binding_of_caller.c:33: error: for each function it appears in.)
binding_of_caller.c:34: warning: control reaches end of non-void function
binding_of_caller.c: In function ‘binding_free’:
binding_of_caller.c:39: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:39: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:40: warning: implicit declaration of function ‘RUBY_FREE_ENTER’
binding_of_caller.c:45: warning: implicit declaration of function ‘RUBY_FREE_LEAVE’
binding_of_caller.c: In function ‘binding_mark’:
binding_of_caller.c:51: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:51: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:52: warning: implicit declaration of function ‘RUBY_MARK_ENTER’
binding_of_caller.c:55: warning: implicit declaration of function ‘RUBY_MARK_UNLESS_NULL’
binding_of_caller.c:62: warning: implicit declaration of function ‘RUBY_MARK_LEAVE’
binding_of_caller.c: At top level:
binding_of_caller.c:67: warning: missing braces around initializer
binding_of_caller.c:67: warning: (near initialization for ‘binding_data_type.function’)
binding_of_caller.c: In function ‘binding_alloc’:
binding_of_caller.c:76: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:76: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:77: error: expected expression before ‘)’ token
binding_of_caller.c:77: warning: left-hand operand of comma expression has no effect
binding_of_caller.c:77: warning: value computed is not used
binding_of_caller.c: At top level:
binding_of_caller.c:81: error: expected ‘)’ before ‘*’ token
binding_of_caller.c:85: error: expected ‘)’ before ‘*’ token
binding_of_caller.c:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
binding_of_caller.c: In function ‘frametype_name’:
binding_of_caller.c:107: error: ‘VM_FRAME_MAGIC_MASK’ undeclared (first use in this function)
binding_of_caller.c:108: error: ‘VM_FRAME_MAGIC_METHOD’ undeclared (first use in this function)
binding_of_caller.c:109: error: ‘VM_FRAME_MAGIC_BLOCK’ undeclared (first use in this function)
binding_of_caller.c:110: error: ‘VM_FRAME_MAGIC_CLASS’ undeclared (first use in this function)
binding_of_caller.c:111: error: ‘VM_FRAME_MAGIC_TOP’ undeclared (first use in this function)
binding_of_caller.c:112: error: ‘VM_FRAME_MAGIC_FINISH’ undeclared (first use in this function)
binding_of_caller.c:113: error: ‘VM_FRAME_MAGIC_CFUNC’ undeclared (first use in this function)
binding_of_caller.c:114: error: ‘VM_FRAME_MAGIC_PROC’ undeclared (first use in this function)
binding_of_caller.c:115: error: ‘VM_FRAME_MAGIC_IFUNC’ undeclared (first use in this function)
binding_of_caller.c:116: error: ‘VM_FRAME_MAGIC_EVAL’ undeclared (first use in this function)
binding_of_caller.c:117: error: ‘VM_FRAME_MAGIC_LAMBDA’ undeclared (first use in this function)
binding_of_caller.c:121: warning: control reaches end of non-void function
binding_of_caller.c: In function ‘binding_of_caller’:
binding_of_caller.c:125: error: ‘rb_thread_t’ undeclared (first use in this function)
binding_of_caller.c:125: error: ‘th’ undeclared (first use in this function)
binding_of_caller.c:126: warning: implicit declaration of function ‘GetThreadPtr’
binding_of_caller.c:128: error: ‘rb_control_frame_t’ undeclared (first use in this function)
binding_of_caller.c:128: error: ‘cfp’ undeclared (first use in this function)
binding_of_caller.c:128: warning: implicit declaration of function ‘RUBY_VM_PREVIOUS_CONTROL_FRAME’
binding_of_caller.c:129: error: ‘limit_cfp’ undeclared (first use in this function)
binding_of_caller.c:130: warning: ISO C90 forbids mixed declarations and code
binding_of_caller.c:140: warning: implicit declaration of function ‘valid_frame_p’
binding_of_caller.c:141: warning: implicit declaration of function ‘find_valid_frame’
binding_of_caller.c:144: warning: ISO C90 forbids mixed declarations and code
binding_of_caller.c:145: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:145: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:150: warning: implicit declaration of function ‘GetBindingPtr’
binding_of_caller.c:151: warning: implicit declaration of function ‘rb_vm_make_env_object’
binding_of_caller.c:153: warning: implicit declaration of function ‘rb_vm_get_sourceline’
binding_of_caller.c: In function ‘frame_count’:
binding_of_caller.c:175: error: ‘rb_thread_t’ undeclared (first use in this function)
binding_of_caller.c:175: error: ‘th’ undeclared (first use in this function)
binding_of_caller.c:178: error: ‘rb_control_frame_t’ undeclared (first use in this function)
binding_of_caller.c:178: error: ‘cfp’ undeclared (first use in this function)
binding_of_caller.c:179: error: ‘limit_cfp’ undeclared (first use in this function)
binding_of_caller.c:181: warning: ISO C90 forbids mixed declarations and code
make: *** [binding_of_caller.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.