Closed rkbodenner closed 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.
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
Ok...I will have to find a way to detect non-MRI rubies and not go crazy.
Fixed.
$ 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.
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