+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libyang2-2.1.128/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libyang2-2.1.128/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for libyang2-2.1.128 [ 0%] Building C object CMakeFiles/yangobj.dir/src/common.c.o [ 1%] Building C object CMakeFiles/yangobj.dir/src/log.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c: In function 'ly_log_location': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c:456:19: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 456 | char *s = strdup(path); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c:456:19: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c: In function 'log_vprintf': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c:664:82: warning: pointer/integer type mismatch in conditional expression 664 | if (log_store(ctx, level, no, vecode, msg, path, apptag ? strdup(apptag) : NULL)) { | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c: In function '_lyplg_ext_compile_log_err': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c:985:107: warning: pointer/integer type mismatch in conditional expression 985 | ly_ext_log(ext->module->ctx, ext->def->plugin->id, err->level, err->no, err->path ? strdup(err->path) : NULL, "%s", ap); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c: In function '_ly_err_print': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/log.c:1008:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1008 | path_dup = strdup(eitem->path); | ^ [ 1%] Building C object CMakeFiles/yangobj.dir/src/hash_table.c.o [ 2%] Building C object CMakeFiles/yangobj.dir/src/dict.c.o [ 2%] Building C object CMakeFiles/yangobj.dir/src/set.c.o [ 2%] Building C object CMakeFiles/yangobj.dir/src/path.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/path.c: In function 'ly_path_dup_predicates': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/path.c:970:34: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 970 | (*dup)[u].variable = strdup(pred[u].variable); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/path.c:970:32: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 970 | (*dup)[u].variable = strdup(pred[u].variable); | ^ [ 3%] Building C object CMakeFiles/yangobj.dir/src/diff.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c: In function 'lyd_diff_userord_attrs': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:595:22: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 595 | *value = strdup(lyd_get_value(userord_item->inst[second_pos - 1])); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:595:20: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 595 | *value = strdup(lyd_get_value(userord_item->inst[second_pos - 1])); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:598:20: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 598 | *value = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:607:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 607 | *orig_value = strdup(lyd_get_value(userord_item->inst[first_pos - 1])); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:610:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 610 | *orig_value = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:622:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 622 | *key = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:634:23: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 634 | *orig_key = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:648:23: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 648 | *position = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:662:28: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 662 | *orig_position = strdup(""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c: In function 'lyd_diff_attrs': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:801:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 801 | *orig_value = strdup(str_val ? str_val : ""); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c: In function 'lyd_diff_reverse_value': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:2063:14: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2063 | val2 = strdup(lyd_get_value(node)); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c: In function 'lyd_diff_reverse_meta': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/diff.c:2135:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2135 | val2 = strdup(lyd_get_meta_value(meta2)); | ^ [ 3%] Building C object CMakeFiles/yangobj.dir/src/context.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c: In function 'ly_ctx_set_searchdir': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c:90:19: warning: implicit declaration of function 'realpath' [-Wimplicit-function-declaration] 90 | new_dir = realpath(search_dir, NULL); | ^~~~~~~~ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c:90:17: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 90 | new_dir = realpath(search_dir, NULL); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c: In function 'ly_ctx_new': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c:275:27: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 275 | search_dir_list = strdup(search_dir); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/context.c:275:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 275 | search_dir_list = strdup(search_dir); | ^ [ 4%] Building C object CMakeFiles/yangobj.dir/src/json.c.o [ 4%] Building C object CMakeFiles/yangobj.dir/src/tree_data.c.o [ 5%] Building C object CMakeFiles/yangobj.dir/src/tree_data_free.c.o [ 5%] Building C object CMakeFiles/yangobj.dir/src/tree_data_common.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'lyxp_vars_set': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:225:21: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 225 | var_value = strdup(value); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:225:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 225 | var_value = strdup(value); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:232:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 232 | var_name = strdup(name); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:233:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 233 | var_value = strdup(value); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'lyd_any_value_str': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1020:20: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1020 | *value_str = strdup(str); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'ly_dup_prefix_data': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1397:36: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1397 | prefixes[u].prefix = strdup(orig_pref[u].prefix); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1417:28: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1417 | ns->prefix = strdup(((struct lyxml_ns *)orig_ns->objs[i])->prefix); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1420:21: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1420 | ns->uri = strdup(((struct lyxml_ns *)orig_ns->objs[i])->uri); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'ly_store_prefix_data': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1520:25: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1520 | new_ns->uri = strdup(ns->uri); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1541:37: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1541 | new_ns->uri = strdup(ns->uri); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'ly_time_tz_offset_at': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1604:5: warning: implicit declaration of function 'tzset' [-Wimplicit-function-declaration] 1604 | tzset(); | ^~~~~ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1607:5: warning: implicit declaration of function 'localtime_r'; did you mean 'localtime'? [-Wimplicit-function-declaration] 1607 | localtime_r(&time, &tm_local); | ^~~~~~~~~~~ | localtime /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1608:5: warning: implicit declaration of function 'gmtime_r'; did you mean 'gmtime'? [-Wimplicit-function-declaration] 1608 | gmtime_r(&time, &tm_utc); | ^~~~~~~~ | gmtime /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c: In function 'ly_time_str2time': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_data_common.c:1677:9: warning: implicit declaration of function 'timegm'; did you mean 'time'? [-Wimplicit-function-declaration] 1677 | t = timegm(&tm); | ^~~~~~ | time [ 6%] Building C object CMakeFiles/yangobj.dir/src/tree_data_hash.c.o [ 6%] Building C object CMakeFiles/yangobj.dir/src/tree_data_new.c.o [ 6%] Building C object CMakeFiles/yangobj.dir/src/parser_xml.c.o [ 7%] Building C object CMakeFiles/yangobj.dir/src/parser_json.c.o [ 7%] Building C object CMakeFiles/yangobj.dir/src/parser_lyb.c.o [ 8%] Building C object CMakeFiles/yangobj.dir/src/out.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c: In function 'ly_out_fd': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:183:22: warning: implicit declaration of function 'fdopen'; did you mean 'fopen'? [-Wimplicit-function-declaration] 183 | stream = fdopen(streamfd, "a"); | ^~~~~~ | fopen /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:183:20: warning: assignment to 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 183 | stream = fdopen(streamfd, "a"); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c: In function 'ly_out_reset': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:303:45: warning: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] 303 | if ((errno != ESPIPE) && (ftruncate(fileno(out->method.f), 0) == -1)) { | ^~~~~~ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c: In function 'ly_out_new_filepath': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:339:37: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 339 | (*out)->method.fpath.filepath = strdup(filepath); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:339:35: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 339 | (*out)->method.fpath.filepath = strdup(filepath); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c: In function 'ly_out_filepath': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/out.c:364:32: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 364 | out->method.fpath.filepath = strdup(filepath); | ^ [ 8%] Building C object CMakeFiles/yangobj.dir/src/printer_data.c.o [ 9%] Building C object CMakeFiles/yangobj.dir/src/printer_xml.c.o [ 9%] Building C object CMakeFiles/yangobj.dir/src/printer_json.c.o [ 10%] Building C object CMakeFiles/yangobj.dir/src/printer_lyb.c.o [ 10%] Building C object CMakeFiles/yangobj.dir/src/schema_compile.c.o [ 10%] Building C object CMakeFiles/yangobj.dir/src/schema_compile_node.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/schema_compile_node.c: In function 'lys_compile_grouping_pathlog': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/schema_compile_node.c:4099:18: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 4099 | id = strdup(iter->name); | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/schema_compile_node.c:4099:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 4099 | id = strdup(iter->name); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/schema_compile_node.c:4118:15: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 4118 | *path = strdup("/"); | ^ [ 11%] Building C object CMakeFiles/yangobj.dir/src/schema_compile_amend.c.o [ 11%] Building C object CMakeFiles/yangobj.dir/src/schema_features.c.o [ 12%] Building C object CMakeFiles/yangobj.dir/src/tree_schema.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c: In function 'lysc_path_until': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:720:30: warning: implicit declaration of function 'strdup'; did you mean 'strndup'? [-Wimplicit-function-declaration] 720 | s = buffer ? strdup(buffer) : path; | ^~~~~~ | strndup /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:720:45: warning: pointer/integer type mismatch in conditional expression 720 | s = buffer ? strdup(buffer) : path; | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:737:37: warning: pointer/integer type mismatch in conditional expression 737 | s = buffer ? strdup(buffer) : path; | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:780:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 780 | path = strdup("/"); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c: In function 'lysp_path_until': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:1278:14: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1278 | path = strdup("/"); | ^ /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c: In function 'lys_search_localfile': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema.c:2076:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2076 | wd = strdup(searchpaths[i]); | ^ [ 12%] Building C object CMakeFiles/yangobj.dir/src/tree_schema_free.c.o [ 13%] Building C object CMakeFiles/yangobj.dir/src/tree_schema_common.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema_common.c: In function 'lysp_check_date': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema_common.c:88:9: warning: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration] 88 | r = strptime(date, "%Y-%m-%d", &tm); | ^~~~~~~~ | strftime /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/tree_schema_common.c:88:7: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 88 | r = strptime(date, "%Y-%m-%d", &tm); | ^ [ 13%] Building C object CMakeFiles/yangobj.dir/src/in.c.o [ 14%] Building C object CMakeFiles/yangobj.dir/src/lyb.c.o [ 14%] Building C object CMakeFiles/yangobj.dir/src/parser_common.c.o [ 14%] Building C object CMakeFiles/yangobj.dir/src/parser_yang.c.o [ 15%] Building C object CMakeFiles/yangobj.dir/src/parser_yin.c.o [ 15%] Building C object CMakeFiles/yangobj.dir/src/printer_schema.c.o [ 16%] Building C object CMakeFiles/yangobj.dir/src/printer_yang.c.o [ 16%] Building C object CMakeFiles/yangobj.dir/src/printer_yin.c.o [ 17%] Building C object CMakeFiles/yangobj.dir/src/printer_tree.c.o [ 17%] Building C object CMakeFiles/yangobj.dir/src/plugins.c.o /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/plugins.c: In function 'plugins_insert_dir': /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/plugins.c:415:27: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? 415 | char pathname[PATH_MAX]; | ^~~~~~~~ | AF_MAX /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/plugins.c:415:27: note: each undeclared identifier is reported only once for each function it appears in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/src/plugins.c:415:18: warning: unused variable 'pathname' [-Wunused-variable] 415 | char pathname[PATH_MAX]; | ^~~~~~~~ *** [CMakeFiles/yangobj.dir/src/plugins.c.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build 1 error bmake[2]: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build *** [CMakeFiles/yangobj.dir/all] Error code 2 bmake[1]: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build 1 error bmake[1]: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build *** [all] Error code 2 bmake: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build 1 error bmake: stopped in /home/pbulk/build/devel/libyang2/work/libyang-2.1.128/cmake-pkgsrc-build *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/devel/libyang2 *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/devel/libyang2