Bundler fails to build konto_check 6.02.0 gem on ubuntu 17.10, ruby 2.4.3 with bundler version 1.16.1.
As far as I know this error does not appear in OSX.
When I do a bundle install I get this error:
Fetching konto_check 6.02.0
Installing konto_check 6.02.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/foobar/.rvm/gems/ruby-2.4.3/gems/konto_check-6.02.0/ext/konto_check_raw
/usr/share/rvm/rubies/ruby-2.4.3/bin/ruby -r ./siteconf20180502-17661-6l2gbu.rb extconf.rb
checking for uncompress() in -lz... yes
creating Makefile
current directory: /home/foobar/.rvm/gems/ruby-2.4.3/gems/konto_check-6.02.0/ext/konto_check_raw
make "DESTDIR=" clean
current directory: /home/foobar/.rvm/gems/ruby-2.4.3/gems/konto_check-6.02.0/ext/konto_check_raw
make "DESTDIR="
compiling konto_check.c
ruby/ext/konto_check_raw/konto_check.lxx: In function ‘iban_regel_cvt’:
ruby/ext/konto_check_raw/konto_check.lxx:6197:29: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6213:34: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6213:98: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6532:45: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6532:80: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6538:34: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6573:33: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6577:37: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6597:32: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6604:39: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx:6609:30: warning: passing argument 1 of ‘kto_check_pz’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
In file included from ruby/ext/konto_check_raw/konto_check.lxx:388:0:
konto_check.h:679:16: note: expected ‘char ’ but argument is of type ‘const char ’
DLL_EXPORT int kto_check_pz(char pz,char kto,char blz);
^~~~~~~~~~~~
ruby/ext/konto_check_raw/konto_check.lxx: In function ‘biq_fkt_c’:
ruby/ext/konto_check_raw/konto_check.lxx:22960:30: warning: passing argument 1 of ‘lut_suche_bic_h’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22824:16: note: expected ‘char ’ but argument is of type ‘const char ’
ruby/ext/konto_check_raw/konto_check.lxx:22976:28: warning: passing argument 1 of ‘lut_suche_bic’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22790:16: note: expected ‘char ’ but argument is of type ‘const char ’
ruby/ext/konto_check_raw/konto_check.lxx: In function ‘biq_fkt_i’:
ruby/ext/konto_check_raw/konto_check.lxx:23054:29: warning: passing argument 1 of ‘lut_suche_bic_h’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22824:16: note: expected ‘char ’ but argument is of type ‘const char ’
ruby/ext/konto_check_raw/konto_check.lxx:23073:28: warning: passing argument 1 of ‘lut_suche_bic’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22790:16: note: expected ‘char ’ but argument is of type ‘const char ’
ruby/ext/konto_check_raw/konto_check.lxx: In function ‘biq_fkt_s’:
ruby/ext/konto_check_raw/konto_check.lxx:23153:30: warning: passing argument 1 of ‘lut_suche_bic_h’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22824:16: note: expected ‘char ’ but argument is of type ‘const char ’
ruby/ext/konto_check_raw/konto_check.lxx:23169:28: warning: passing argument 1 of ‘lut_suche_bic’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx:22790:16: note: expected ‘char ’ but argument is of type ‘const char *’
ruby/ext/konto_check_raw/konto_check.lxx: In function ‘kc_id2ptr’:
ruby/ext/konto_check_raw/konto_check.lxx:24260:14: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ruby/ext/konto_check_raw/konto_check.lxx: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
compiling konto_check_raw_ruby.c
In file included from /usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby.h:33:0,
from konto_check_raw_ruby.lxx:57:
konto_check_raw_ruby.lxx: In function ‘lut_blocks1_rb’:
/usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/ruby.h:2198:6: error: call to ‘rb_scan_args_length_mismatch’ declared with attribute error: variable argument length doesn't match
rb_scan_args_length_mismatch(fmt, varc))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/ruby.h:2201:14: note: in expansion of macro ‘rb_scan_args_count’
((varc)/(rb_scan_args_count(fmt, varc)))
^~~~~~~~~~~~~~~~~~
/usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/ruby.h:2209:11: note: in expansion of macro ‘rb_scan_args_verify_count’
verify = rb_scan_args_verify_count(fmt, varc); \
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/ruby.h:2324:9: note: in expansion of macro ‘rb_scan_args_verify’
(rb_scan_args_verify(fmt, varc), vars))
^~~~~~~~~~~~~~~~~~~
/usr/share/rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/ruby.h:2151:9: note: in expansion of macro ‘rb_scan_args0’
rb_scan_args0(argc,argvp,fmt,\
^~~~~~~~~~~~~
konto_check_raw_ruby.lxx:823:4: note: in expansion of macro ‘rb_scan_args’
konto_check_raw_ruby.lxx: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'konto_check_raw_ruby.o' failed
make: *** [konto_check_raw_ruby.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/damoa/.rvm/gems/ruby-2.4.3/gems/konto_check-6.02.0 for inspection.
Results logged to /home/damoa/.rvm/gems/ruby-2.4.3/extensions/x86_64-linux/2.4.0/konto_check-6.02.0/gem_make.out
An error occurred while installing konto_check (6.02.0), and Bundler cannot continue.
Make sure that gem install konto_check -v '6.02.0' succeeds before bundling.
In Gemfile:
konto_check
Anonymous
same for ruby 2.5.x
see https://sourceforge.net/p/kontocheck/bugs/20/
and https://sourceforge.net/p/kontocheck/bugs/16/
it should now work with version 6.02.1 (just uploaded to rubygems)
yes, it works!
thanks a lot!
Good work Michael, issue can be closed.
Thank you!