Mysterious ruby_bcrypt() in ext/mri/bcrypt_ext.c #46

rking opened this Issue Jul 24, 2012 · 2 comments


None yet
2 participants

rking commented Jul 24, 2012

I don't see which of the included headers is supposed to define ruby_bcrypt() (called on line 27: ). It's not ow-crypt.h, and I don't see anything as a child of ruby.h that would do it, either.

Then, when I go to compile it, I get this:

bcrypt_ext.c:(.text+0x37): undefined reference to `ruby_bcrypt'

I must be doing something very wrong, because I simply cannot conceive of where this function might be defined.


rking commented Jul 24, 2012

I have no good explanation for what's going on. All I know is that commenting out that bcrypt_wrapper entirely got me past my failure to install:


FWIW I'm like this:

  • gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.1, pie-0.4.7)
  • ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux](from gentoo ruby:1.9 package)

tmm1 commented Mar 31, 2013

Looks like this 1.9 specific code was added in 8caa1cc. Later, the implementation was changed and the thread_blocking_region feature was removed, but the offending block was never removed.

@tmm1 tmm1 closed this in 94f8d0a Mar 31, 2013

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