=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Installing for ruby31-tmail-1.2.7.1nb2 => Generating pre-install file lists => Installing gem into installation root Building native extensions. This could take a while... ERROR: Error installing /Users/pbulk/build/mail/ruby-tmail/work/tmail-1.2.7.1/tmail-1.2.7.1.gem: ERROR: Failed to build gem native extension. current directory: /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/tmail-1.2.7.1/ext/tmailscanner/tmail /opt/pkg/bin/ruby31 -I /opt/pkg/lib/ruby/3.1.0 extconf.rb creating Makefile current directory: /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/tmail-1.2.7.1/ext/tmailscanner/tmail make DESTDIR\= sitearchdir\=./.gem.20240221-77979-5koys9 sitelibdir\=./.gem.20240221-77979-5koys9 clean current directory: /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/tmail-1.2.7.1/ext/tmailscanner/tmail make DESTDIR\= sitearchdir\=./.gem.20240221-77979-5koys9 sitelibdir\=./.gem.20240221-77979-5koys9 compiling tmailscanner.c tmailscanner.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mails_free(sc) ^ tmailscanner.c:105:11: warning: call to undeclared function 'rb_get_kcode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tmp = rb_get_kcode(); ^ tmailscanner.c:105:9: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] tmp = rb_get_kcode(); ^ ~~~~~~~~~~~~~~ tmailscanner.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mails_s_new(klass, str, ident, cmt) ^ tmailscanner.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mails_debug_get(self) ^ tmailscanner.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mails_debug_set(self, flag) ^ tmailscanner.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_iso2022jp_string(sc) ^ tmailscanner.c:208:32: warning: incompatible pointer to integer conversion passing 'struct scanner *' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] rb_encoding *enc = rb_enc_get(sc); ^~ /Users/pbulk/build/mail/ruby-tmail/work/.buildlink/include/ruby-3.1.0/ruby/internal/encoding/encoding.h:333:31: note: passing argument to parameter 'obj' here rb_encoding *rb_enc_get(VALUE obj); ^ tmailscanner.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_japanese_string(sc) ^ tmailscanner.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_word(sc, syms) ^ tmailscanner.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_quoted_word(sc) ^ tmailscanner.c:302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_domain_literal(sc) ^ tmailscanner.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scan_comment(sc) ^ tmailscanner.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_lwsp(sc) ^ tmailscanner.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nccmp(a, b) ^ tmailscanner.c:407:11: warning: variable 'p' set but not used [-Wunused-but-set-variable] char *p; ^ tmailscanner.c:404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] digit_p(str) ^ tmailscanner.c:431:27: warning: passing 'const char[5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (nccmp(p, "from")) return tok_from; ^~~~~~ tmailscanner.c:432:27: warning: passing 'const char[3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] else if (nccmp(p, "by")) return tok_by; ^~~~ tmailscanner.c:433:27: warning: passing 'const char[4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] else if (nccmp(p, "via")) return tok_via; ^~~~~ tmailscanner.c:434:27: warning: passing 'const char[5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] else if (nccmp(p, "with")) return tok_with; ^~~~~~ tmailscanner.c:435:27: warning: passing 'const char[3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] else if (nccmp(p, "id")) return tok_id; ^~~~ tmailscanner.c:436:27: warning: passing 'const char[4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] else if (nccmp(p, "for")) return tok_for; ^~~~~ tmailscanner.c:422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] atomsym(sc, str) ^ tmailscanner.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] debug_print(sc, sym, val) ^ tmailscanner.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pass_token(sc, sym, tok, arr) ^ tmailscanner.c:505:33: warning: passing 'const char[18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] PASS(tok_token, scan_token(sc)); ^~~~~~~~~~~~~~ tmailscanner.c:226:38: note: expanded from macro 'scan_token' #define scan_token(sc) scan_word(sc, TOKEN_SYMBOLS) ^~~~~~~~~~~~~ tmailscanner.c:167:27: note: expanded from macro 'TOKEN_SYMBOLS' #define TOKEN_SYMBOLS "_#!$%&'`*+-{|}~^." ^~~~~~~~~~~~~~~~~~~ tmailscanner.c:483:35: note: expanded from macro 'PASS' #define PASS(s,v) pass_token(sc,s,v,arr) ^ tmailscanner.c:515:23: warning: passing 'const char[20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tmp = scan_atom(sc); ^~~~~~~~~~~~~ tmailscanner.c:225:37: note: expanded from macro 'scan_atom' #define scan_atom(sc) scan_word(sc, ATOM_SYMBOLS) ^~~~~~~~~~~~ tmailscanner.c:166:27: note: expanded from macro 'ATOM_SYMBOLS' #define ATOM_SYMBOLS "_#!$%&'`*+-{|}~^/=?" ^~~~~~~~~~~~~~~~~~~~~ tmailscanner.c:477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mails_scan(self) ^ tmailscanner.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cstr2symbol(str) ^ tmailscanner.c:601:30: warning: passing 'const char[5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_atom = cstr2symbol("ATOM"); ^~~~~~ tmailscanner.c:602:30: warning: passing 'const char[6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_digit = cstr2symbol("DIGIT"); ^~~~~~~ tmailscanner.c:603:30: warning: passing 'const char[6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_token = cstr2symbol("TOKEN"); ^~~~~~~ tmailscanner.c:604:30: warning: passing 'const char[7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_quoted = cstr2symbol("QUOTED"); ^~~~~~~~ tmailscanner.c:605:30: warning: passing 'const char[7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_domlit = cstr2symbol("DOMLIT"); ^~~~~~~~ tmailscanner.c:607:30: warning: passing 'const char[5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_from = cstr2symbol("FROM"); ^~~~~~ tmailscanner.c:608:30: warning: passing 'const char[3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_by = cstr2symbol("BY"); ^~~~ tmailscanner.c:609:30: warning: passing 'const char[4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_via = cstr2symbol("VIA"); ^~~~~ tmailscanner.c:610:30: warning: passing 'const char[5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_with = cstr2symbol("WITH"); ^~~~~~ tmailscanner.c:611:30: warning: passing 'const char[3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_id = cstr2symbol("ID"); ^~~~ tmailscanner.c:612:30: warning: passing 'const char[4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] tok_for = cstr2symbol("FOR"); ^~~~~ 41 warnings generated. linking shared-object tmailscanner.bundle ld: Undefined symbols: _rb_get_kcode, referenced from: _mails_s_new in tmailscanner.o clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make: stopped in /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/tmail-1.2.7.1/ext/tmailscanner/tmail make failed, exit code 1 Gem files will remain installed in /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/tmail-1.2.7.1 for inspection. Results logged to /Users/pbulk/build/mail/ruby-tmail/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/extensions/x86_64-darwin-22/3.1.0/tmail-1.2.7.1/gem_make.out *** Error code 1 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-x86_64/mail/ruby-tmail *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-x86_64/mail/ruby-tmail