Skip to content

FreeBSD 12 build is broken #196

@tymat

Description

@tymat
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions