Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Undefined symbol "RUBY_FREE_ENTER" #13

jan0sch opened this Issue Jan 28, 2013 · 9 comments


None yet
5 participants

jan0sch commented Jan 28, 2013

On FreeBSD you get the following error:

/libexec/ld-elf.so.1: /usr/local/lib/ruby/gems/1.9/gems/binding_of_caller-0.6.8/lib/binding_of_caller.so: Undefined symbol "RUBY_FREE_ENTER"


banister commented Jan 28, 2013

what ruby version?

jan0sch commented Jan 28, 2013

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

cabo commented Feb 27, 2013

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"...


cabo commented Feb 28, 2013

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


badosu commented Jun 3, 2013

@jan0sch, @cabo

Does this problem still happens on master?

jan0sch commented Jun 4, 2013

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


badosu commented Jun 10, 2013

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

Thanks, @jan0sch, @cabo

@badosu badosu closed this Jun 10, 2013

rbq commented Dec 2, 2013

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


badosu commented Dec 3, 2013

Even in master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment