arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

1.2.6 fails to build with rubinius HEAD #49

Closed rkbodenner closed 13 years ago

rkbodenner commented 13 years ago

$ rvm list

rvm rubies

=> rbx-head-nhydra [ x86_64 ]

$ ruby -v rubinius 2.0.0dev (1.8.7 3586083f yyyy-mm-dd JI) [x86_64-apple-darwin10.7.0]

'bundle install' output:

Installing memcached (1.2.6) with native extensions An exception occurred running /Users/ralph/.rvm/gems/rbx-head-nhydra/bin/bundle ERROR: Failed to build gem native extension.

    /Users/ralph/.rvm/rubies/rbx-head-nhydra/bin/rbx extconf.rb 

Libmemcached already unpacked; run 'rake clean' first if you need to start from scratch. creating Makefile

make gcc -I. -I/Users/ralph/.rvm/rubies/rbx-head-nhydra/include -I/Users/ralph/.rvm/rubies/rbx-head-nhydra/include -I. -fPIC -I/Users/ralph/.rvm/gems/rbx-head-nhydra/gems/memcached-1.2.6/ext/include -L/Users/ralph/.rvm/gems/rbx-head-nhydra/gems/memcached-1.2.6/ext/lib -ggdb3 -O2 -fPIC -ggdb3 -O2 -fPIC -Os -c rlibmemcached_wrap.c rlibmemcached_wrap.c: In function ‘rb_str_new_by_ref’: rlibmemcached_wrap.c:2258: error: ‘str’ undeclared (first use in this function) rlibmemcached_wrap.c:2258: error: (Each undeclared identifier is reported only once rlibmemcached_wrap.c:2258: error: for each function it appears in.) rlibmemcached_wrap.c:2258: error: expected expression before ‘struct’ make: *\ [rlibmemcached_wrap.o] Error 1

evan commented 13 years ago

Looks like the zero-copy string allocator rb_str_new_by_ref is breaking you. Version 1.2.3 should work for now until we decide what to do for JRuby and Rubinius.

rkbodenner commented 13 years ago

Yep, 1.2.3 built just fine. Thanks! On May 19, 2011 8:23 PM, "evan" < reply@reply.github.com> wrote:

Looks like the zero-copy string allocator rb_str_new_by_ref is breaking you. Version 1.2.3 should work for now until we decide what to do for JRuby and Rubinius.

Reply to this email directly or view it on GitHub: https://github.com/fauna/memcached/issues/49#comment_1207318

evan commented 13 years ago

Ok...I will have to find a way to detect non-MRI rubies and not go crazy.

evan commented 13 years ago

Fixed.