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

Fails to compile on Arch Linux #20

Open
reedlaw opened this issue Jan 14, 2015 · 3 comments
Open

Fails to compile on Arch Linux #20

reedlaw opened this issue Jan 14, 2015 · 3 comments

Comments

@reedlaw
Copy link

reedlaw commented Jan 14, 2015

Trying to install the latest krypt gem and I get this error:

krypt_missing.c: In function ‘krypt_asn1_encode_bignum’:
krypt_missing.c:67:29: error: ‘SIZEOF_BDIGITS’ undeclared (first use in this function)
 divisor = SIZEOF_LONG / SIZEOF_BDIGITS;
                         ^
krypt_missing.c:67:29: note: each undeclared identifier is reported only once for each function it appears in                                                                                               
Makefile:237: recipe for target 'krypt_missing.o' failed```
@durran
Copy link

durran commented Jan 22, 2015

Same on OSX Yosemite and Ruby 2.2.0.

@kenbod
Copy link

kenbod commented Jan 25, 2015

I can confirm the problem on my version of Yosemite with Ruby 2.2.0. It appears that SIZEOF_BDIGITS is something that the gem "bigdecimal" defines . My version of 2.2.0 states via "gem list" that bigdecimal 1.2.6 is installed. At least, I found it defined in "$HOME/.rvm/src/ruby-2.2.0/ext/bigdecimal/bigdecimal.h". For whatever reason, this header file is not being included when the file krypt_missing.c is being compiled.

@NexoMichael
Copy link

I can also confirm that on ruby-2.1.5 and ruby-2.1.4 this gem is working but for ruby-2.2.0 error is occur. And because of this issue gem for mongo driver version 2 is not compatible with ruby-2.2.0.
OS: Yosemite.

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

4 participants