Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

gem install couchbase raises error #2966

weemanjz opened this Issue Mar 3, 2014 · 5 comments


None yet
4 participants

weemanjz commented Mar 3, 2014

When I'm trying to install couchbase gem I get the following error

rubinius 2.2.5 (2.1.0 e543ba3 2014-02-08 JI) [x86_64-linux-gnu]
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

I think rubinius does not support MRI c-extension gems by default they need to be modified.


dbussink commented Mar 15, 2014

Most C extensions work out of the box, but looks like this gem uses something we haven't implemented yet.


YorickPeterse commented Feb 18, 2015

The following snippet from the log seems to be the culprit:

gethrtime.c: In function ‘gethrtime’:
gethrtime.c:86:5: warning: implicit declaration of function ‘clock_gettime’ [-Wimplicit-function-declaration]
gethrtime.c:86:23: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
gethrtime.c:86:23: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/weeman/.rvm/rubies/rbx-2.2.5/vm/include/capi/ruby/backward/st.h:2:0,
                 from couchbase_ext.h:22,
                 from gethrtime.c:18:

Does this still occur when using Rubinius 2.5.2?


YorickPeterse commented Feb 19, 2015

This is caused by the following: https://github.com/couchbase/couchbase-ruby-client/blob/1d17825f0352f42ccc59f17ab3003d349807fccb/ext/couchbase_ext/couchbase_ext.h#L77-L79

This can probably be solved by adding a #define HAVE_TYPE_ST_INDEX_T 1 somewhere in our C CAPI.

@YorickPeterse YorickPeterse added C API and removed Needs feedback labels Feb 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment