Bug #6033

Digest issue in 1.9.3

Added by Scott Gonyea about 2 years ago. Updated over 1 year ago.

[ruby-core:42678]
Status:Third Party's Issue
Priority:Normal
Assignee:-
Category:core
Target version:1.9.3
ruby -v:1.9.3-p0/122 Backport:

Description

This only happens to me on Ruby 1.9.3, in Mac OS X Lion (10.7.3). 1.9.2/1.8.7 are not affected by this issue.

After building ruby-1.9.3-p0 OR ruby-1.9.3-p122 (via rvm), I get the following issue attempting to require 'digest/sha1' (or md5, etc).

1.9.3p122 :001 > require 'digest/sha1'
LoadError: dlopen(/Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle, 9): Symbol not found: _rbDigestSHA1Finish
Referenced from: /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle
Expected in: flat namespace
in /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x86
64-darwin11.3.0/digest/sha1.bundle - /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle
from /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site
ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from (irb):1
from /Users/me/.rvm/rubies/ruby-1.9.3-head/bin/irb:16:in `'

History

#1 Updated by Yui NARUSE about 2 years ago

  • Status changed from Open to Feedback

I can't reproduce this.
Anyone can do?

#2 Updated by Scott Gonyea about 2 years ago

Weird. It's happening on both of my laptops, but not a fresh one. I guess something is screwed up from when Lion first came out. Time to format... (go ahead and reject)

#3 Updated by Scott Gonyea about 2 years ago

I found the source of the bug. My ~/.profile defined $CINCLUDEPATH and $CPLUSINCLUDEPATH. Having this here did not affect Ruby 1.8.7 or 1.9.2. It did, however, screw up portions of 1.9.3. How strange.

#4 Updated by Takayoshi Sato almost 2 years ago

I have the same issue, too :(

I evaded it temporarily by using 1.9.2 sha1.bundle.

mv "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle" "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle.bak"
cp "$HOME/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle" "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x8664-darwin11.3.0/digest/sha1.bundle"

#5 Updated by dan de havilland over 1 year ago

I'm experiencing the same issue, Mac OS 10.8.1, RVM, Ruby 1.9.3-p194

Also fixed using @annotunzdy's approach

#6 Updated by Yui NARUSE over 1 year ago

  • Status changed from Feedback to Third Party's Issue

Thank you for feedback.
So this seems third party's issue.

Also available in: Atom PDF