Skip to content
This repository

Undefined symbol "RUBY_FREE_ENTER" #13

jan0sch opened this Issue · 9 comments

5 participants

Jens Jahnke John Mair cabo Amadeus Folego
Jens Jahnke

On FreeBSD you get the following error:

/libexec/ /usr/local/lib/ruby/gems/1.9/gems/binding_of_caller-0.6.8/lib/ Undefined symbol "RUBY_FREE_ENTER"

John Mair

what ruby version?

Jens Jahnke
% ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [amd64-freebsd8]

Yep, that happens when the system "ruby" is not the one the gem is being built for.
You need to fix the Rakefile to not call "ruby extconf.rb"...


Oh, and the other problem is that gc.h typically is defined on development machines where Boehm gc is installed.

-- rename the two instances of gc.h in here to rubys_gc.h
-- change the include in binding_of_caller.c to
#include "rubys_gc.h"
-- zap the gem spec
-- rake gemspec; rake gem
-- install

Amadeus Folego
badosu commented

@jan0sch, @cabo

Does this problem still happens on master?

Jens Jahnke

No, it works for me on freebsd 9.1 using ruby 1.9.3. I can also test 2.0 tomorrow if you want.

Amadeus Folego badosu closed this
Amadeus Folego
badosu commented

I am going to close this issue. If someone has this bug again, we can reopen it.

Thanks, @jan0sch, @cabo

I ran into the same issue, in my case it's Ruby 1.9.3p392, installed via RVM on OS X 10.9.0.

Amadeus Folego

Even in master?

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.