+ 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/newsraft-0.32/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/newsraft-0.32/work.log ===> Building for newsraft-0.32 --- newsraft --- cc -std=c99 -O3 `pkg-config --cflags libcurl 2>/dev/null` `pkg-config --cflags expat 2>/dev/null` `pkg-config --cflags gumbo 2>/dev/null` `pkg-config --cflags sqlite3 2>/dev/null` -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE -D_DARWIN_C_SOURCE -Isrc -o newsraft src/newsraft.c `pkg-config --libs libcurl 2>/dev/null || echo '-lcurl'` `pkg-config --libs expat 2>/dev/null || echo '-lexpat'` `pkg-config --libs gumbo 2>/dev/null || echo '-lgumbo'` `pkg-config --libs sqlite3 2>/dev/null || echo '-lsqlite3'` -lpthread In file included from src/curses.c:3, from src/newsraft.c:9: src/termbox2.h: In function 'tb_strerror': src/termbox2.h:2085:17: error: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration] 2085 | if (strerror_r(global.last_errno, global.errbuf, sizeof(global.errbuf)) != 0) { | ^~~~~~~~~~ | strerror src/termbox2.h: In function 'init_term_attrs': src/termbox2.h:2154:5: error: implicit declaration of function 'cfmakeraw' [-Wimplicit-function-declaration] 2154 | cfmakeraw(&tios); | ^~~~~~~~~ src/termbox2.h: In function 'init_resize_handler': src/termbox2.h:2305:22: error: storage size of 'sa' isn't known 2305 | struct sigaction sa; | ^~ src/termbox2.h:2308:9: error: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration] 2308 | if (sigaction(SIGWINCH, &sa, NULL) != 0) { | ^~~~~~~~~ src/termbox2.h: In function 'tb_deinit': src/termbox2.h:2439:22: error: storage size of 'sa' isn't known 2439 | struct sigaction sa; | ^~ src/termbox2.h: In function 'read_terminfo_path': src/termbox2.h:2538:15: error: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] 2538 | if (fstat(fileno(fp), &st) != 0) { | ^~~~~~ src/termbox2.h: In function 'tb_wcwidth': src/termbox2.h:3521:12: error: implicit declaration of function 'wcwidth'; did you mean 'tb_wcwidth'? [-Wimplicit-function-declaration] 3521 | return wcwidth((wchar_t)ch); | ^~~~~~~ | tb_wcwidth In file included from src/newsraft.c:12: src/commands.c: In function 'copy_string_to_clipboard': src/commands.c:45:35: error: implicit declaration of function 'popen'; did you mean 'open'? [-Wimplicit-function-declaration] 45 | FILE *p = popen(cmd->ptr, "w"); | ^~~~~ | open src/commands.c:45:35: error: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] src/commands.c:51:25: error: implicit declaration of function 'pclose'; did you mean 'fclose'? [-Wimplicit-function-declaration] 51 | pclose(p); | ^~~~~~ | fclose In file included from src/newsraft.c:13: src/dates.c: In function 'parse_date_rfc3339': src/dates.c:21:27: error: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration] 21 | const char *rem = strptime(src, "%Y-%m-%dT%H:%M:%S", &t); | ^~~~~~~~ | strftime src/dates.c:21:27: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] src/dates.c: In function 'get_cfg_date': src/dates.c:84:62: error: implicit declaration of function 'localtime_r'; did you mean 'localtime'? [-Wimplicit-function-declaration] 84 | str->len = strftime(str->ptr, str->lim, format->ptr, localtime_r((time_t *)&date, &timedata)); | ^~~~~~~~~~~ | localtime src/dates.c:84:62: error: passing argument 4 of 'strftime' makes pointer from integer without a cast [-Wint-conversion] 84 | str->len = strftime(str->ptr, str->lim, format->ptr, localtime_r((time_t *)&date, &timedata)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from /usr/include/unistd.h:41, from src/newsraft.c:2: /usr/include/iso/time_iso.h:102:9: note: expected 'const struct tm * restrict' but argument is of type 'int' 102 | const struct tm *_RESTRICT_KYWD); | ^ src/dates.c: In function 'newsraft_get_monotonic_time': src/dates.c:96:9: error: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration] 96 | clock_gettime(CLOCK_MONOTONIC, &t); | ^~~~~~~~~~~~~ In file included from src/newsraft.c:16: src/downloader.c: In function 'header_callback': src/downloader.c:126:13: error: implicit declaration of function 'strcasecmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 126 | if (strcasecmp(header_name->ptr, "ETag") == 0) { | ^~~~~~~~~~ | strncmp In file included from src/newsraft.c:18: src/executor.c: In function 'execute_feed': src/executor.c:8:19: error: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 8 | FILE *p = popen(real_cmd->ptr, "r"); | ^~~~~ In file included from src/newsraft.c:25: src/interface.c: In function 'run_menu_loop': src/interface.c:93:25: error: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] 93 | nanosleep(&idling, NULL); // Avoids CPU cycles waste while awaiting termination | ^~~~~~~~~ In file included from src/newsraft.c:34: src/items-metadata-links.c: In function 'complete_url': src/items-metadata-links.c:51:24: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 51 | return strdup(rel); | ^~~~~~ | strcmp src/items-metadata-links.c:51:24: error: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion] 51 | return strdup(rel); | ^~~~~~~~~~~ src/items-metadata-links.c:71:26: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 71 | char *complete = strdup(new_url); | ^~~~~~ In file included from src/newsraft.c:38: src/load_config/config-parse.c: In function 'parse_config_file': src/load_config/config-parse.c:165:28: error: implicit declaration of function 'getline' [-Wimplicit-function-declaration] 165 | for (ssize_t len = getline(&line, &size, f); len >= 0; len = getline(&line, &size, f)) { | ^~~~~~~ In file included from src/newsraft.c:55: src/render_data/line.c: In function 'line_char': src/render_data/line.c:109:21: error: implicit declaration of function 'wcswidth' [-Wimplicit-function-declaration] 109 | if ((size_t)wcswidth(line->head->ws->ptr, line->head->ws->len) + c_width <= line->lim - line->head->indent) { | ^~~~~~~~ In file included from src/newsraft.c:60: src/signal.c: In function 'register_signal_handlers': src/signal.c:14:16: error: variable 's' has initializer but incomplete type 14 | struct sigaction s = {0}; | ^~~~~~~~~ src/signal.c:14:31: warning: excess elements in struct initializer 14 | struct sigaction s = {0}; | ^ src/signal.c:14:31: note: (near initialization for 's') src/signal.c:14:26: error: storage size of 's' isn't known 14 | struct sigaction s = {0}; | ^ src/newsraft.c: In function 'main': src/newsraft.c:177:23: error: implicit declaration of function 'getopt'; did you mean 'gettxt'? [-Wimplicit-function-declaration] 177 | while ((opt = getopt(argc, argv, "f:c:d:l:e:vh")) != -1) { | ^~~~~~ | gettxt src/newsraft.c:179:44: error: 'optarg' undeclared (first use in this function) 179 | if (set_feeds_path(optarg) == false) { | ^~~~~~ src/newsraft.c:179:44: note: each undeclared identifier is reported only once for each function it appears in *** [newsraft] Error code 1 bmake: stopped making "all" in /home/pbulk/build/news/newsraft/work/newsraft bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/news/newsraft/work/newsraft *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/news/newsraft *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/news/newsraft