+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mle-1.8.1/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mle-1.8.1/work.log ===> Building for mle-1.8.1 => rewrite lua directory directives => remove -v flag from install(1) command gcc -c -std=c99 -Wall -Wextra -pedantic -Wno-pointer-arith -Wno-unused-result -Wno-unused-parameter -g -O0 -D_GNU_SOURCE -DPCRE2_CODE_UNIT_WIDTH=8 -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include buffer.c -o buffer.o buffer.c: In function 'buffer_open': buffer.c:123:18: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 123 | self->path = strdup(path); | ^~~~~~ | strcmp buffer.c:123:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 123 | self->path = strdup(path); | ^ buffer.c: In function 'buffer_save_as': buffer.c:164:20: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 164 | self->path = strdup(path); | ^ buffer.c: In function 'buffer_write_to_file': buffer.c:176:37: warning: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] 176 | return buffer_write_to_fd(self, fileno(fp), optret_nbytes); | ^~~~~~ buffer.c: In function 'buffer_replace_w_bline': buffer.c:679:24: warning: implicit declaration of function 'strndup'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 679 | action->data = strndup(data, action->byte_delta); | ^~~~~~~ | strncmp buffer.c:679:22: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 679 | action->data = strndup(data, action->byte_delta); | ^ buffer.c: In function 'buffer_register_get': buffer.c:1044:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1044 | *ret_data = strndup(sreg->data, sreg->len); | ^ buffer.c: In function 'bline_count_chars': buffer.c:1112:26: warning: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration] 1112 | char_w = wcwidth(ch); | ^~~~~~~ gcc -c -std=c99 -Wall -Wextra -pedantic -Wno-pointer-arith -Wno-unused-result -Wno-unused-parameter -g -O0 -D_GNU_SOURCE -DPCRE2_CODE_UNIT_WIDTH=8 -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include bview.c -o bview.o bview.c: In function 'bview_new': bview.c:39:32: warning: implicit declaration of function 'strndup'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 39 | if (opt_path) self->path = strndup(opt_path, opt_path_len); | ^~~~~~~ | strncmp bview.c:39:30: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 39 | if (opt_path) self->path = strndup(opt_path, opt_path_len); | ^ bview.c: In function 'bview_open': bview.c:70:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 70 | self->path = strndup(path, path_len); | ^ bview.c: In function '_bview_fix_path': bview.c:739:13: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 739 | tmp = strndup(path, tmp_len); | ^ bview.c:755:13: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 755 | tmp = strndup(path+2, tmp_len); | ^ bview.c:767:15: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 767 | *ret_path = strndup(path + fix_nudge, fix_len); | ^ bview.c: In function '_bview_open_buffer': bview.c:793:36: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 793 | if (has_path) buffer->path = strndup(opt_path, opt_path_len); | ^ gcc -c -std=c99 -Wall -Wextra -pedantic -Wno-pointer-arith -Wno-unused-result -Wno-unused-parameter -g -O0 -D_GNU_SOURCE -DPCRE2_CODE_UNIT_WIDTH=8 -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include cmd.c -o cmd.o cmd.c: In function 'cmd_goto': cmd.c:735:25: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 735 | bview_num_str = strdup(ctx->static_param); | ^~~~~~ | strcmp cmd.c:735:23: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 735 | bview_num_str = strdup(ctx->static_param); | ^ cmd.c: In function 'cmd_grep': cmd.c:835:5: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] 835 | asprintf(&cmd, grep_fmt, path_arg); | ^~~~~~~~ | vsprintf cmd.c: In function 'cmd_shell': cmd.c:1220:13: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1220 | cmd = strdup(ctx->static_param); | ^ cmd.c: In function 'cmd_perl': cmd.c:1241:14: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1241 | code = strdup(ctx->static_param); | ^ cmd.c: In function 'cmd_push_kmap': cmd.c:1344:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1344 | kmap_name = strdup(ctx->static_param); | ^ cmd.c: In function '_cmd_apply_macro_set': cmd.c:1517:29: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1517 | ctx->editor->macro_last = strdup(macro->name); | ^ cmd.c: In function '_cmd_save': cmd.c:1663:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1663 | path = strdup(bview->buffer->path); | ^ cmd.c: In function '_cmd_menu_grep_cb': cmd.c:1878:12: warning: implicit declaration of function 'strndup'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 1878 | line = strndup(ctx->bview->active_cursor->mark->bline->data, ctx->bview->active_cursor->mark->bline->data_len); | ^~~~~~~ | strncmp cmd.c:1878:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1878 | line = strndup(ctx->bview->active_cursor->mark->bline->data, ctx->bview->active_cursor->mark->bline->data_len); | ^ cmd.c: In function '_cmd_menu_ctag_cb': cmd.c:1907:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1907 | line = strndup(ctx->bview->active_cursor->mark->bline->data, ctx->bview->active_cursor->mark->bline->data_len); | ^ cmd.c: In function '_cmd_menu_browse_cb': cmd.c:1954:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1954 | line = strndup(ctx->bview->active_cursor->mark->bline->data, ctx->bview->active_cursor->mark->bline->data_len); | ^ cmd.c: In function '_cmd_insert_auto_indent_newline': cmd.c:2053:15: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2053 | prev_line = strndup(prev_bline->data, prev_bline->data_len); | ^ cmd.c: In function '_cmd_insert_auto_indent_closing_bracket': cmd.c:2100:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2100 | this_line = strndup(ctx->cursor->mark->bline->data, ctx->cursor->mark->bline->data_len); | ^ cmd.c:2101:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2101 | prev_line = strndup(ctx->cursor->mark->bline->prev->data, ctx->cursor->mark->bline->prev->data_len); | ^ gcc -c -std=c99 -Wall -Wextra -pedantic -Wno-pointer-arith -Wno-unused-result -Wno-unused-parameter -g -O0 -D_GNU_SOURCE -DPCRE2_CODE_UNIT_WIDTH=8 -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include cursor.c -o cursor.o cursor.c: In function 'cursor_cut_copy': cursor.c:254:41: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 254 | cursor->bview->editor->cut_buffer = strdup(cursor->cut_buffer); | ^~~~~~ | strcmp cursor.c:254:39: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 254 | cursor->bview->editor->cut_buffer = strdup(cursor->cut_buffer); | ^ cursor.c: In function 'cursor_replace_ex': cursor.c:328:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 328 | regex = strdup(opt_regex); | ^ cursor.c:329:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 329 | replacement = strdup(opt_replacement); | ^ gcc -c -std=c99 -Wall -Wextra -pedantic -Wno-pointer-arith -Wno-unused-result -Wno-unused-parameter -g -O0 -D_GNU_SOURCE -DPCRE2_CODE_UNIT_WIDTH=8 -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include -I/opt/local/include -I/opt/local/include/lua-5.4 -I/opt/local/include/ncurses -I/usr/include editor.c -o editor.o In file included from editor.c:8: termbox2.h: In function 'tb_strerror': termbox2.h:2839:13: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration] 2839 | strerror_r(global.last_errno, global.errbuf, sizeof(global.errbuf)); | ^~~~~~~~~~ | strerror termbox2.h: In function 'init_term_attrs': termbox2.h:2904:5: warning: implicit declaration of function 'cfmakeraw' [-Wimplicit-function-declaration] 2904 | cfmakeraw(&tios); | ^~~~~~~~~ termbox2.h: In function 'init_resize_handler': termbox2.h:3055:22: error: storage size of 'sa' isn't known 3055 | struct sigaction sa; | ^~ termbox2.h:3058:9: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration] 3058 | if (sigaction(SIGWINCH, &sa, NULL) != 0) { | ^~~~~~~~~ termbox2.h:3055:22: warning: unused variable 'sa' [-Wunused-variable] 3055 | struct sigaction sa; | ^~ termbox2.h: In function 'tb_deinit': termbox2.h:3189:22: error: storage size of 'sa' isn't known 3189 | struct sigaction sa; | ^~ termbox2.h:3189:22: warning: unused variable 'sa' [-Wunused-variable] termbox2.h: In function 'read_terminfo_path': termbox2.h:3287:15: warning: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] 3287 | if (fstat(fileno(fp), &st) != 0) { | ^~~~~~ editor.c: In function 'editor_init': editor.c:131:17: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] 131 | asprintf(&home_rc, "%s/%s", getenv("HOME"), ".mlerc"); | ^~~~~~~~ | vsprintf editor.c: In function 'editor_register_cmd': editor.c:540:21: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 540 | new_cmd->name = strdup(new_cmd->name); | ^~~~~~ | strcmp editor.c:540:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 540 | new_cmd->name = strdup(new_cmd->name); | ^ editor.c: In function 'editor_register_observer': editor.c:600:26: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 600 | observer->event_patt = strdup(event_patt); | ^ editor.c: In function '_editor_prompt_input_submit': editor.c:660:36: warning: implicit declaration of function 'strndup'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 660 | ctx->loop_ctx->prompt_answer = strndup(answer, answer_len); | ^~~~~~~ | strncmp editor.c:660:34: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 660 | ctx->loop_ctx->prompt_answer = strndup(answer, answer_len); | ^ editor.c: In function '_editor_prompt_find_or_add_history': editor.c:750:36: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 750 | prompt_history->prompt_str = strdup(ctx->bview->prompt_str); | ^ editor.c: In function '_editor_prompt_history_append': editor.c:792:24: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 792 | prompt_hnode->data = strdup(data); | ^ editor.c: In function '_editor_init_signal_handlers': editor.c:1639:22: error: storage size of 'action' isn't known 1639 | struct sigaction action; | ^~~~~~ editor.c:1642:31: error: invalid application of 'sizeof' to incomplete type 'struct sigaction' 1642 | memset(&action, 0, sizeof(struct sigaction)); | ^~~~~~ editor.c:1639:22: warning: unused variable 'action' [-Wunused-variable] 1639 | struct sigaction action; | ^~~~~~ editor.c: In function '_editor_init_kmap': editor.c:2016:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2016 | kmap->name = strdup(name); | ^ editor.c:2020:32: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2020 | kmap->default_cmd_name = strdup(default_cmd_name); | ^ editor.c: In function '_editor_init_kmap_add_binding': editor.c:2035:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2035 | cur_key_patt = strdup(binding_def->key_patt); | ^ editor.c: In function '_editor_init_kmap_add_binding_to_trie': editor.c:2088:66: warning: pointer/integer type mismatch in conditional expression 2088 | node->static_param = static_param ? strdup(static_param) : NULL; | ^ editor.c:2089:24: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2089 | node->key_patt = strdup(full_key_patt); | ^ editor.c:2090:24: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2090 | node->cmd_name = strdup(cmd_name); | ^ editor.c: In function '_editor_add_macro_by_str': editor.c:2155:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2155 | macro->name = strdup(token); | ^ editor.c: In function '_editor_init_syntax': editor.c:2235:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2235 | syntax->name = strdup(name); | ^ editor.c:2236:26: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2236 | syntax->path_pattern = strdup(path_pattern); | ^ editor.c: In function '_editor_init_from_args': editor.c:2533:40: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2533 | editor->kmap_init_name = strdup(optarg); | ^ editor.c:2537:44: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2537 | editor->startup_macro_name = strdup(optarg); | ^ gmake: *** [Makefile:40: editor.o] Error 1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/editors/mle *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/editors/mle