Skip to content
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

Does not compile under ruby 2.0.0-p0 #12

Open
IanVaughan opened this issue Apr 30, 2013 · 1 comment
Open

Does not compile under ruby 2.0.0-p0 #12

IanVaughan opened this issue Apr 30, 2013 · 1 comment

Comments

@IanVaughan
Copy link

Cannot install memcache v1.2.13 on ruby 2.0.0-p0

$ gem install memcache -v 1.2.13

Gives the following errors (full gem_make.out)

compiling native_server.c
native_server.c: In function ‘escape_key’:
native_server.c:178: error: ‘struct RString’ has no member named ‘len’
native_server.c: In function ‘unescape_key’:
native_server.c:217: error: ‘struct RString’ has no member named ‘len’
make: *** [native_server.o] Error 1

This is due to extconf.rb only detecting ruby 1.9, and thus native_server.c defaults to the old style RSTRING()

My env

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.3
  - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x86_64-darwin11.4.2]
  - INSTALLATION DIRECTORY: /Users/ivaughan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: /Users/ivaughan/.rbenv/versions/2.0.0-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ivaughan/.rbenv/versions/2.0.0-p0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/ivaughan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0
     - /Users/ivaughan/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri"
     - "update" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - https://rubygems.org/
@ninjudd
Copy link
Owner

ninjudd commented May 6, 2013

We don't currently use ruby 2.0, but a patch for this would be appreciated.

On Tue, Apr 30, 2013 at 6:50 AM, Ian Vaughan notifications@github.com
wrote:

Cannot install memcache v1.2.13 on ruby 2.0.0-p0

$ gem install memcache -v 1.2.13

Gives the following errors (full [gem_make.out][3])

compiling native_server.c
native_server.c: In function ‘escape_key’:
native_server.c:178: error: ‘struct RString’ has no member named ‘len’
native_server.c: In function ‘unescape_key’:
native_server.c:217: error: ‘struct RString’ has no member named ‘len’
make: *** [native_server.o] Error 1

This is due to extconf.rb only detecting ruby 1.9, and thus native_server.c defaults to the old style RSTRING()
My env

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.3
  - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x86_64-darwin11.4.2]
  - INSTALLATION DIRECTORY: /Users/ivaughan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: /Users/ivaughan/.rbenv/versions/2.0.0-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ivaughan/.rbenv/versions/2.0.0-p0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/ivaughan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0
     - /Users/ivaughan/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri"
     - "update" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - https://rubygems.org/

[3]:https://gist.github.com/IanVaughan/5488741

Reply to this email directly or view it on GitHub:
#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants