Repository navigation
FreeBSD 12 build is broken #196
Copy link
Copy link
Closed
Description
gem install bcrypt
Building native extensions. This could take a while...
ERROR: Error installing bcrypt:
ERROR: Failed to build gem native extension.
current directory: /usr/home/appuser/.rvm/gems/ruby-2.6.3/gems/bcrypt-3.1.12/ext/mri
/usr/home/appuser/.rvm/rubies/ruby-2.6.3/bin/ruby -I /usr/home/appuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0 -r ./siteconf20190430-16026-1k8jamo.rb extconf.rb
creating Makefile
current directory: /usr/home/appuser/.rvm/gems/ruby-2.6.3/gems/bcrypt-3.1.12/ext/mri
make "DESTDIR=" clean
current directory: /usr/home/appuser/.rvm/gems/ruby-2.6.3/gems/bcrypt-3.1.12/ext/mri
make "DESTDIR="
compiling bcrypt_ext.c
In file included from bcrypt_ext.c:2:
./ow-crypt.h:19:14: error: conflicting types for 'crypt_r'
extern char *crypt_r(__CONST char *key, __CONST char *setting, void *data);
^
/usr/include/unistd.h:499:7: note: previous declaration is here
char *crypt_r(const char *, const char *, struct crypt_data *);
^
bcrypt_ext.c:17:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
NIL_P(input) ? 0 : RSTRING_LEN(input));
^~~~~~~~~~~~~~~~~~
/usr/home/appuser/.rvm/rubies/ruby-2.6.3/include/ruby-2.6.0/ruby/ruby.h:1000:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/usr/home/appuser/.rvm/rubies/ruby-2.6.3/include/ruby-2.6.0/ruby/ruby.h:996:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bcrypt_ext.c:17:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
NIL_P(input) ? 0 : RSTRING_LEN(input));
^~~~~~~~~~~~~~~~~~
/usr/home/appuser/.rvm/rubies/ruby-2.6.3/include/ruby-2.6.0/ruby/ruby.h:1001:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
2 warnings and 1 error generated.
*** Error code 1
Stop.
make: stopped in /usr/home/appuser/.rvm/gems/ruby-2.6.3/gems/bcrypt-3.1.12/ext/mri
make failed, exit code 1
Gem files will remain installed in /usr/home/appuser/.rvm/gems/ruby-2.6.3/gems/bcrypt-3.1.12 for inspection.
Results logged to /usr/home/appuser/.rvm/gems/ruby-2.6.3/extensions/x86_64-freebsd-12/2.6.0/bcrypt-3.1.12/gem_make.out
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
courtland commentedon May 1, 2019
It looks like this was finally fixed in commit 7644e36, but an updated gem has not been released yet.
metalefty commentedon May 23, 2019
Dup of #175, #188. Fixed at #189.