Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Uninitialize constant with C extension #2877

Closed
ohler55 opened this Issue · 2 comments

4 participants

@ohler55

I have not been able to reproduce this but had someone with this problem after installing rbi-2.2.2 and gem install oj.

$ irb
rubinius-2.2.2 :001 > require 'oj'
NameError: Missing or uninitialized constant: Oj::Bag
from kernel/common/module.rb:674:in const_missing'
from /home/me/.rvm/gems/rbx-2.2.2/extensions/x86_64-linux/2.1.0/oj-2.5.1/oj.so:in
Init_oj'
from kernel/common/native_method.rb:43:in load_extension'
from kernel/delta/code_loader.rb:282:in
load_library'
from kernel/common/code_loader.rb:130:in require'
from kernel/common/code_loader.rb:237:in
require'
from kernel/common/kernel.rb:705:in gem_original_require (require)'
from /home/me/.rvm/rubies/rbx-2.2.2/site/rubygems/core_ext/kernel_require.rb:135:in
require'

reference ohler55/oj#131
and the duplicate
ohler55/oj#132

@YorickPeterse YorickPeterse added the capi label
@rb2k

I think this might be related to certain version of ?system libraries? / ?compilers?.
We saw this on Ruby 1.8.7 (REE) on both on Ubuntu Lucid and Travis CI with oj version 2.2.3.
Updating OJ solved this for us.

@jc00ke
Owner

I was able to successfully install and require oj on 2.2.10.n184.

@jc00ke jc00ke closed this
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.