rubinius/rubinius — Issue #1445: gem install bcrypt-ruby fails with -X19
Author: sch1zo
Created: 2011-12-09 16:43:13+00:00
State: open

gem install bcrypt-ruby always fails with "wrapper.c:27:18: error: util.h: No such file or directory"

Here is what I did

```
ruby -v
$ ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

git clone git://github.com/rubinius/rubinius.git
cd rubinius
./configure --default-version=1.9
rake install

#changing PATH to use rbx

ruby -v
$ rubinius 2.0.0dev (1.9.3 581eee8e yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]

gem install bcrypt-ruby -V

GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
Installing gem bcrypt-ruby-3.0.1
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/.gitignore
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/.rspec
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/CHANGELOG
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/COPYING
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/Gemfile
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/Gemfile.lock
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/README.md
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/Rakefile
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/bcrypt-ruby.gemspec
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/jruby/bcrypt_jruby/BCrypt.java
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/bcrypt_ext.c
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/crypt.c
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/crypt.h
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/crypt_blowfish.c
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/crypt_gensalt.c
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/ow-crypt.h
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/wrapper.c
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/lib/bcrypt.rb
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/lib/bcrypt_engine.rb
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/spec/TestBCrypt.java
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/spec/bcrypt/engine_spec.rb
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/spec/bcrypt/password_spec.rb
/home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/spec/spec_helper.rb
Building native extensions. This could take a while...
ERROR: Error installing bcrypt-ruby:
ERROR: Failed to build gem native extension.

/home/sch1zo/.rbenv/versions/rbx-master/bin/rbx extconf.rb
creating Makefile

make
compiling crypt_gensalt.c
compiling bcrypt_ext.c
compiling crypt_blowfish.c
compiling wrapper.c
wrapper.c:27:18: error: util.h: No such file or directory
wrapper.c: In function ‘crypt_gensalt_ra’:
wrapper.c:240: warning: assignment makes pointer from integer without a cast
make: *** [wrapper.o] Error 1

Gem files will remain installed in /home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1 for inspection.
Results logged to /home/sch1zo/.rbenv/versions/rbx-master/gems/1.9/gems/bcrypt-ruby-3.0.1/ext/mri/gem_make.out
```