=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/ruby-bz2", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent", "RUBY_VERSION_REQD=33"] ===> Building for ruby33-bz2-0.2.2nb2 --- bz2.o --- compiling bz2.c bz2.c: In function 'bz_raise': bz2.c:52:1: warning: old-style function definition [-Wold-style-definition] 52 | bz_raise(error) | ^~~~~~~~ bz2.c: In function 'bz_str_mark': bz2.c:97:1: warning: old-style function definition [-Wold-style-definition] 97 | bz_str_mark(bzs) | ^~~~~~~~~~~ bz2.c: In function 'bz_file_mark': bz2.c:104:1: warning: old-style function definition [-Wold-style-definition] 104 | bz_file_mark(bzf) | ^~~~~~~~~~~~ bz2.c: In function 'bz_find_struct': bz2.c:112:1: warning: old-style function definition [-Wold-style-definition] 112 | bz_find_struct(obj, ptr, posp) | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_internal_flush': bz2.c:144:1: warning: old-style function definition [-Wold-style-definition] 144 | bz_writer_internal_flush(bzf) | ^~~~~~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_internal_close': bz2.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | bz_writer_internal_close(bzf) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/assume.h:29, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/backward/2/assume.h:24, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/defines.h:72, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/ruby.h:25, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby.h:38, from bz2.c:1: /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rfile.h:50:40: warning: 'finalize' is deprecated: with no replacement [-Wdeprecated-declarations] 50 | #define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj)) | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST' 31 | # define RBIMPL_CAST(expr) (expr) | ^~~~ bz2.c:194:13: note: in expansion of macro 'RFILE' 194 | RFILE(bzf->io)->fptr->finalize = bziv->finalize; | ^~~~~ In file included from bz2.c:3: /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:174:12: note: declared here 174 | void (*finalize)(struct rb_io*,int); | ^~~~~~~~ bz2.c:194:44: error: assignment to 'void (*)(struct rb_io *, int)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 194 | RFILE(bzf->io)->fptr->finalize = bziv->finalize; | ^ bz2.c:197:36: error: assignment to 'RUBY_DATA_FUNC' {aka 'void (*)(void *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 197 | RDATA(bziv->io)->dfree = bziv->finalize; | ^ In file included from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core.h:27, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/ruby.h:29: /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rdata.h:108:16: note: 'RUBY_DATA_FUNC' declared here 108 | typedef void (*RUBY_DATA_FUNC)(void*); | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_internal_finalize': bz2.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | bz_internal_finalize(ary, obj) | ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rfile.h:50:40: warning: 'finalize' is deprecated: with no replacement [-Wdeprecated-declarations] 50 | #define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj)) | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST' 31 | # define RBIMPL_CAST(expr) (expr) | ^~~~ bz2.c:232:17: note: in expansion of macro 'RFILE' 232 | RFILE(bziv->io)->fptr->finalize = bziv->finalize; | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:174:12: note: declared here 174 | void (*finalize)(struct rb_io*,int); | ^~~~~~~~ bz2.c:232:49: error: assignment to 'void (*)(struct rb_io *, int)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 232 | RFILE(bziv->io)->fptr->finalize = bziv->finalize; | ^ bz2.c:235:40: error: assignment to 'RUBY_DATA_FUNC' {aka 'void (*)(void *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 235 | RDATA(bziv->io)->dfree = bziv->finalize; | ^ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rdata.h:108:16: note: 'RUBY_DATA_FUNC' declared here 108 | typedef void (*RUBY_DATA_FUNC)(void*); | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_close': bz2.c:251:1: warning: old-style function definition [-Wold-style-definition] 251 | bz_writer_close(obj) | ^~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_close_bang': bz2.c:266:1: warning: old-style function definition [-Wold-style-definition] 266 | bz_writer_close_bang(obj) | ^~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_free': bz2.c:287:1: warning: old-style function definition [-Wold-style-definition] 287 | bz_writer_free(bzf) | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_io_data_finalize': bz2.c:295:1: warning: old-style function definition [-Wold-style-definition] 295 | bz_io_data_finalize(ptr) | ^~~~~~~~~~~~~~~~~~~ bz2.c:309:14: error: too many arguments to function 'bziv->finalize'; expected 0, have 1 309 | (*bziv->finalize)(ptr); | ~^~~~~~~~~~~~~~~~ ~~~ bz2.c:41:12: note: declared here 41 | void (*finalize)(); | ^~~~~~~~ bz2.c:323:13: warning: 'fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations] 323 | if (file->fd) { | ^~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here 154 | int fd; | ^~ bz2.c:324:17: warning: 'fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations] 324 | close(file->fd); | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here 154 | int fd; | ^~ bz2.c:325:17: warning: 'fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations] 325 | file->fd = -1; | ^~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here 154 | int fd; | ^~ bz2.c:327:13: warning: 'stdio_file' is deprecated: with no replacement [-Wdeprecated-declarations] 327 | if (file->stdio_file) { | ^~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:150:11: note: declared here 150 | FILE *stdio_file; | ^~~~~~~~~~ bz2.c:328:17: warning: 'stdio_file' is deprecated: with no replacement [-Wdeprecated-declarations] 328 | fclose(file->stdio_file); | ^~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:150:11: note: declared here 150 | FILE *stdio_file; | ^~~~~~~~~~ bz2.c:329:17: warning: 'stdio_file' is deprecated: with no replacement [-Wdeprecated-declarations] 329 | file->stdio_file = 0; | ^~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:150:11: note: declared here 150 | FILE *stdio_file; | ^~~~~~~~~~ bz2.c: In function 'bz_malloc': bz2.c:337:1: warning: old-style function definition [-Wold-style-definition] 337 | bz_malloc(opaque, m, n) | ^~~~~~~~~ bz2.c: In function 'bz_free': bz2.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | bz_free(opaque, p) | ^~~~~~~ bz2.c: In function 'bz_writer_s_alloc': bz2.c:354:1: warning: old-style function definition [-Wold-style-definition] 354 | bz_writer_s_alloc(obj) | ^~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_flush': bz2.c:369:1: warning: old-style function definition [-Wold-style-definition] 369 | bz_writer_flush(obj) | ^~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_s_open': bz2.c:383:1: warning: old-style function definition [-Wold-style-definition] 383 | bz_writer_s_open(argc, argv, obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_str_write': bz2.c:412:1: warning: old-style function definition [-Wold-style-definition] 412 | bz_str_write(obj, str) | ^~~~~~~~~~~~ bz2.c: In function 'bz_str_closed': bz2.c:425:1: warning: old-style function definition [-Wold-style-definition] 425 | bz_str_closed(obj) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_writer_init': bz2.c:432:1: warning: old-style function definition [-Wold-style-definition] 432 | bz_writer_init(argc, argv, obj) | ^~~~~~~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rfile.h:50:40: warning: 'finalize' is deprecated: with no replacement [-Wdeprecated-declarations] 50 | #define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj)) | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST' 31 | # define RBIMPL_CAST(expr) (expr) | ^~~~ bz2.c:489:30: note: in expansion of macro 'RFILE' 489 | bziv->finalize = RFILE(a)->fptr->finalize; | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:174:12: note: declared here 174 | void (*finalize)(struct rb_io*,int); | ^~~~~~~~ bz2.c:489:28: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(struct rb_io *, int)' [-Wincompatible-pointer-types] 489 | bziv->finalize = RFILE(a)->fptr->finalize; | ^ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rfile.h:50:40: warning: 'finalize' is deprecated: with no replacement [-Wdeprecated-declarations] 50 | #define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj)) | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST' 31 | # define RBIMPL_CAST(expr) (expr) | ^~~~ bz2.c:490:13: note: in expansion of macro 'RFILE' 490 | RFILE(a)->fptr->finalize = bz_io_data_finalize; | ^~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/io.h:174:12: note: declared here 174 | void (*finalize)(struct rb_io*,int); | ^~~~~~~~ bz2.c:493:28: error: assignment to 'void (*)(void)' from incompatible pointer type 'RUBY_DATA_FUNC' {aka 'void (*)(void *)'} [-Wincompatible-pointer-types] 493 | bziv->finalize = RDATA(a)->dfree; | ^ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rdata.h:108:16: note: 'RUBY_DATA_FUNC' declared here 108 | typedef void (*RUBY_DATA_FUNC)(void*); | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_write': bz2.c:507:1: warning: old-style function definition [-Wold-style-definition] 507 | bz_writer_write(obj, a) | ^~~~~~~~~~~~~~~ bz2.c: In function 'bz_writer_putc': bz2.c:549:1: warning: old-style function definition [-Wold-style-definition] 549 | bz_writer_putc(obj, a) | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_compress': bz2.c:557:1: warning: old-style function definition [-Wold-style-definition] 557 | bz_compress(argc, argv, obj) | ^~~~~~~~~~~ bz2.c:569:5: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 569 | if (OBJ_TAINTED(str)) { | ^~ In file included from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/core/rstring.h:30, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/arithmetic.h:24, from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/ruby.h:28: /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:792:1: note: declared here 792 | RB_OBJ_TAINTED(VALUE obj) | ^~~~~~~~~~~~~~ bz2.c:572:9: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 572 | OBJ_TAINT(bzf->io); | ^~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared here 824 | RB_OBJ_TAINT(VALUE obj) | ^~~~~~~~~~~~ bz2.c: In function 'bz_reader_s_alloc': bz2.c:579:1: warning: old-style function definition [-Wold-style-definition] 579 | bz_reader_s_alloc(obj) | ^~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_s_open': bz2.c:596:1: warning: old-style function definition [-Wold-style-definition] 596 | bz_reader_s_open(argc, argv, obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_init': bz2.c:618:1: warning: old-style function definition [-Wold-style-definition] 618 | bz_reader_init(argc, argv, obj) | ^~~~~~~~~~~~~~ bz2.c:631:5: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 631 | if (OBJ_TAINTED(a)) { | ^~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:792:1: note: declared here 792 | RB_OBJ_TAINTED(VALUE obj) | ^~~~~~~~~~~~~~ bz2.c:632:9: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 632 | OBJ_TAINT(obj); | ^~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared here 824 | RB_OBJ_TAINT(VALUE obj) | ^~~~~~~~~~~~ bz2.c: In function 'bz_get_bzf': bz2.c:673:1: warning: old-style function definition [-Wold-style-definition] 673 | bz_get_bzf(obj) | ^~~~~~~~~~ bz2.c: In function 'bz_next_available': bz2.c:702:1: warning: old-style function definition [-Wold-style-definition] 702 | bz_next_available(bzf, in) | ^~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_read_until': bz2.c:745:1: warning: old-style function definition [-Wold-style-definition] 745 | bz_read_until(bzf, str, len, td1) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_read_while': bz2.c:812:1: warning: old-style function definition [-Wold-style-definition] 812 | bz_read_while(bzf, c) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_reader_read': bz2.c:835:1: warning: old-style function definition [-Wold-style-definition] 835 | bz_reader_read(argc, argv, obj) | ^~~~~~~~~~~~~~ bz2.c:859:5: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 859 | if (OBJ_TAINTED(obj)) { | ^~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:792:1: note: declared here 792 | RB_OBJ_TAINTED(VALUE obj) | ^~~~~~~~~~~~~~ bz2.c:860:9: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 860 | OBJ_TAINT(res); | ^~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared here 824 | RB_OBJ_TAINT(VALUE obj) | ^~~~~~~~~~~~ bz2.c: In function 'bz_getc': bz2.c:885:1: warning: old-style function definition [-Wold-style-definition] 885 | bz_getc(obj) | ^~~~~~~ bz2.c: In function 'bz_reader_ungetc': bz2.c:897:1: warning: old-style function definition [-Wold-style-definition] 897 | bz_reader_ungetc(obj, a) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_ungets': bz2.c:923:1: warning: old-style function definition [-Wold-style-definition] 923 | bz_reader_ungets(obj, a) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_gets': bz2.c:950:1: warning: old-style function definition [-Wold-style-definition] 950 | bz_reader_gets(obj) | ^~~~~~~~~~~~~~ bz2.c:961:13: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 961 | OBJ_TAINT(str); | ^~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared here 824 | RB_OBJ_TAINT(VALUE obj) | ^~~~~~~~~~~~ bz2.c: In function 'bz_reader_gets_internal': bz2.c:968:1: warning: old-style function definition [-Wold-style-definition] 968 | bz_reader_gets_internal(argc, argv, obj, td, init) | ^~~~~~~~~~~~~~~~~~~~~~~ bz2.c:1032:9: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations] 1032 | OBJ_TAINT(res); | ^~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared here 824 | RB_OBJ_TAINT(VALUE obj) | ^~~~~~~~~~~~ bz2.c: In function 'bz_reader_set_unused': bz2.c:1038:1: warning: old-style function definition [-Wold-style-definition] 1038 | bz_reader_set_unused(obj, a) | ^~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_getc': bz2.c:1057:1: warning: old-style function definition [-Wold-style-definition] 1057 | bz_reader_getc(obj) | ^~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_readchar': bz2.c:1077:1: warning: old-style function definition [-Wold-style-definition] 1077 | bz_reader_readchar(obj) | ^~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_gets_m': bz2.c:1089:1: warning: old-style function definition [-Wold-style-definition] 1089 | bz_reader_gets_m(argc, argv, obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_readline': bz2.c:1103:1: warning: old-style function definition [-Wold-style-definition] 1103 | bz_reader_readline(argc, argv, obj) | ^~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_readlines': bz2.c:1116:1: warning: old-style function definition [-Wold-style-definition] 1116 | bz_reader_readlines(argc, argv, obj) | ^~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_each_line': bz2.c:1133:1: warning: old-style function definition [-Wold-style-definition] 1133 | bz_reader_each_line(argc, argv, obj) | ^~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_each_byte': bz2.c:1149:1: warning: old-style function definition [-Wold-style-definition] 1149 | bz_reader_each_byte(obj) | ^~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_unused': bz2.c:1161:1: warning: old-style function definition [-Wold-style-definition] 1161 | bz_reader_unused(obj) | ^~~~~~~~~~~~~~~~ bz2.c:1172:15: error: implicit declaration of function 'rb_tainted_str_new'; did you mean 'rb_enc_str_new'? [-Wimplicit-function-declaration] 1172 | res = rb_tainted_str_new(bzf->bzs.next_in, bzf->bzs.avail_in); | ^~~~~~~~~~~~~~~~~~ | rb_enc_str_new bz2.c: In function 'bz_reader_eoz': bz2.c:1182:1: warning: old-style function definition [-Wold-style-definition] 1182 | bz_reader_eoz(obj) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_reader_eof': bz2.c:1198:1: warning: old-style function definition [-Wold-style-definition] 1198 | bz_reader_eof(obj) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_reader_closed': bz2.c:1225:1: warning: old-style function definition [-Wold-style-definition] 1225 | bz_reader_closed(obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_close': bz2.c:1235:1: warning: old-style function definition [-Wold-style-definition] 1235 | bz_reader_close(obj) | ^~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_finish': bz2.c:1270:1: warning: old-style function definition [-Wold-style-definition] 1270 | bz_reader_finish(obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_close_bang': bz2.c:1286:1: warning: old-style function definition [-Wold-style-definition] 1286 | bz_reader_close_bang(obj) | ^~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_foreach_line': bz2.c:1313:1: warning: old-style function definition [-Wold-style-definition] 1313 | bz_reader_foreach_line(arg) | ^~~~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_s_foreach': bz2.c:1329:1: warning: old-style function definition [-Wold-style-definition] 1329 | bz_reader_s_foreach(argc, argv, obj) | ^~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_i_readlines': bz2.c:1353:1: warning: old-style function definition [-Wold-style-definition] 1353 | bz_reader_i_readlines(arg) | ^~~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_s_readlines': bz2.c:1370:1: warning: old-style function definition [-Wold-style-definition] 1370 | bz_reader_s_readlines(argc, argv, obj) | ^~~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_lineno': bz2.c:1391:1: warning: old-style function definition [-Wold-style-definition] 1391 | bz_reader_lineno(obj) | ^~~~~~~~~~~~~~~~ bz2.c: In function 'bz_reader_set_lineno': bz2.c:1401:1: warning: old-style function definition [-Wold-style-definition] 1401 | bz_reader_set_lineno(obj, lineno) | ^~~~~~~~~~~~~~~~~~~~ bz2.c: In function 'bz_to_io': bz2.c:1412:1: warning: old-style function definition [-Wold-style-definition] 1412 | bz_to_io(obj) | ^~~~~~~~ bz2.c: In function 'bz_str_read': bz2.c:1422:1: warning: old-style function definition [-Wold-style-definition] 1422 | bz_str_read(argc, argv, obj) | ^~~~~~~~~~~ bz2.c: In function 'bz_uncompress': bz2.c:1457:1: warning: old-style function definition [-Wold-style-definition] 1457 | bz_uncompress(argc, argv, obj) | ^~~~~~~~~~~~~ bz2.c: In function 'bz_s_new': bz2.c:1472:1: warning: old-style function definition [-Wold-style-definition] 1472 | bz_s_new(argc, argv, obj) | ^~~~~~~~ bz2.c: In function 'bz_proc_new': bz2.c:1482:1: warning: old-style function definition [-Wold-style-definition] 1482 | bz_proc_new(func, val) | ^~~~~~~~~~~ In file included from /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/ruby.h:27: /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/anyargs.h:311:143: error: passing argument 3 of 'rb_define_singleton_method_01' from incompatible pointer type [-Wincompatible-pointer-types] 311 | #define rb_define_singleton_method(obj, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_singleton_method((arity), (func))((obj), (mid), (func), (arity)) | ^~~~~~ | | | VALUE (*)(void) {aka long unsigned int (*)(void)} bz2.c:1487:5: note: in expansion of macro 'rb_define_singleton_method' 1487 | rb_define_singleton_method(tmp, "tmp_proc", func, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/anyargs.h:274:21: note: expected 'VALUE (*)(VALUE, VALUE)' {aka 'long unsigned int (*)(long unsigned int, long unsigned int)'} but argument is of type 'VALUE (*)(void)' {aka 'long unsigned int (*)(void)'} 274 | RBIMPL_ANYARGS_DECL(rb_define_singleton_method, VALUE, const char *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/archivers/ruby-bz2/work/.buildlink/include/ruby-3.3.0/ruby/internal/anyargs.h:259:41: note: in definition of macro 'RBIMPL_ANYARGS_DECL' 259 | RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \ | ^~~ *** [bz2.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/archivers/ruby-bz2/work/bz2-0.2.2 bmake: 1 error bmake: stopped making "all" in /home/pbulk/work/archivers/ruby-bz2/work/bz2-0.2.2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/ruby-bz2 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/ruby-bz2