New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninitialized constant Spring::SID::DL #274
Comments
I just had a coworker set up a new mac and he ran into this error. It happened when he compiled ruby (via RVM) using clang, but didn't happen when ruby was compiled with apple-gcc42. Does spring support compilation with clang? |
I am getting this too, on spring 1.1.1 |
Same. This only started occurring after upgrading to Ruby 1.9.3-p545 |
I have the same issue on Ruby 1.9.3-p484 which has worked for me in the past |
Same. |
Same. In my case changing the compiler to apple-gcc42 from clang solved the problem as CyborgMaster said. Thank you. OSX 10.9 |
Im my case changing the compiler to gcc46 solved the problem too. The problem is that when you compile using CLAN it doens't include the dynamic libraries. So when you try to use them with: "Spring::SID::DL" it doens't work. |
The problem is |
Does I think @pigoz's suggestion is good either way though - please do prepare a patch. |
@jonleighton |
@jonleighton require'ing |
When compiling Ruby 1.9.3 with clang, Fiddle is compiled in while DL is not. This commit fixes an usage of the DL module in the case it's not compiled in. Unfortunately Fiddle::Handle and Fiddle.dlopen were only added in Ruby 2, but a dlopen call (available as part of the DL module) is needed to use Fiddle::Function. Fixes rails#274
See above commit, I am a little unsure if this actually solves the problem completely, since the code that shells out actually returns always 0 in my
|
I've just worked around this locally by recompiling my ruby using a patch from the FreeBSD lists, changing the compile flags for dl if clang is being used. Used with
|
@pigoz I'm also seeing the same behaviour from shelling out to
|
Hmm, I've no idea why the |
Same. I have resolved the problem compiling ruby with apple-gcc42. |
Same error on 1.9.3-p429 after reinstalling following upgrade to mavericks, with rbenv |
Same error here, OS X, ruby 1.9.3-p545 using rbenv and ruby-build. |
Although it works on ruby 2.1.1. |
Same error here, OS X, ruby 1.9.3-p545 using rbenv and ruby-build. |
ruby 1.9.3-p547 using rbenv and ruby-build also still fails currently |
spring version 1.1.3, ruby 1.9.3-p545, and using compiler /opt/boxen/homebrew/bin/gcc-4.2 |
I got same bug. Could you tell me what should I write more informations of my env? |
I just tried out @pigoz patch and it works just fine on 1.9. I also tested against 2.1.2 to be safe. |
I think it's better for you to compile Ruby with the FreeBSD patch posted by @caius (it's a one line patch) |
It's not just the use of clang, I think. Testing against various rubies that I have: 1.9.3-p0 - requires gcc - untested From other reports, Spring works on later patch levels of 1.9.3, if using gcc. But it worked, at some point, on llvm on 1.9.3. And it now works on llvm with the latest stable ruby (2.1.2p95), and has worked on 2.0.0 at least at the most recent stable. There appears to be some range of 1.9.3 including the most recent stable, perhaps of other ruby patch levels, that fails. Context: Mac OS X 10.9.4, Xcode 5.1.1, spring 1.1.3 |
I found this fix on someone else branch and it seems github let me make a pull request from their branch to here. I didn't write the code, but I've used it, and it works quite well. It would solve this problem without making people jump though hoops. |
@jgeiger I wrote that but we were unsure about using it because OS X bugs in |
Ah. It might be working for me and what I need, but not 100%. Thanks. |
Spring version: 1.12
Ruby version 1.9.3-p545
What more info can I provide?
The text was updated successfully, but these errors were encountered: