+ 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.24/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/newsraft-0.24/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for newsraft-0.24 cc -std=c99 -O3 `pkg-config --cflags libcurl 2>/dev/null` `pkg-config --cflags ncursesw 2>/dev/null` `pkg-config --cflags expat 2>/dev/null` `pkg-config --cflags gumbo 2>/dev/null` `pkg-config --cflags sqlite3 2>/dev/null` `pkg-config --cflags yajl 2>/dev/null` -Isrc -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -o newsraft src/newsraft.c `pkg-config --libs libcurl 2>/dev/null || echo '-lcurl'` `pkg-config --libs ncursesw 2>/dev/null || echo '-lncursesw'` `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'` `pkg-config --libs yajl 2>/dev/null || echo '-lyajl'` -lpthread In file included from src/newsraft.c:9: src/dates.c: In function 'get_cfg_date': src/dates.c:48:62: warning: implicit declaration of function 'localtime_r'; did you mean 'localtime'? [-Wimplicit-function-declaration] 48 | str->len = strftime(str->ptr, str->lim, format->ptr, localtime_r((time_t *)&date, &timedata)); | ^~~~~~~~~~~ | localtime src/dates.c:48:62: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [-Wint-conversion] 48 | 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 /home/pbulk/build/news/newsraft/work/.buildlink/include/curl/curl.h:66, from src/newsraft.c:3: /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); | ^ In file included from src/newsraft.c:4: src/db.c: In function 'db_set_download_date': src/db.c:256:49: error: expected ')' before 'PRId64' 256 | INFO("Setting download_date of %s to %" PRId64, url->ptr, download_date); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ In file included from src/newsraft.c:10: src/db.c:1:1: note: 'PRId64' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #include src/newsraft.h:21:79: note: to match this '(' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/db.c:256:9: note: in expansion of macro 'INFO' 256 | INFO("Setting download_date of %s to %" PRId64, url->ptr, download_date); | ^~~~ src/db-items.c: In function 'db_find_item_by_rowid': src/db-items.c:7:46: error: expected ')' before 'PRId64' 7 | INFO("Looking for item with rowid %" PRId64 "...", rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ In file included from src/newsraft.c:11: src/db-items.c:1:1: note: 'PRId64' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #include src/newsraft.h:21:79: note: to match this '(' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/db-items.c:7:9: note: in expansion of macro 'INFO' 7 | INFO("Looking for item with rowid %" PRId64 "...", rowid); | ^~~~ src/db-items.c:14:42: error: expected ')' before 'PRId64' 14 | WARN("Item with rowid %" PRId64 " is not found!", rowid); | ^~~~~~ src/newsraft.h:22:92: note: in definition of macro 'WARN' 22 | #define WARN(...) do { if (log_stream) { fputs("[WARN] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/db-items.c:14:42: note: 'PRId64' is defined in header ''; did you forget to '#include '? 14 | WARN("Item with rowid %" PRId64 " is not found!", rowid); | ^~~~~~ src/newsraft.h:22:92: note: in definition of macro 'WARN' 22 | #define WARN(...) do { if (log_stream) { fputs("[WARN] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/newsraft.h:22:79: note: to match this '(' 22 | #define WARN(...) do { if (log_stream) { fputs("[WARN] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/db-items.c:14:17: note: in expansion of macro 'WARN' 14 | WARN("Item with rowid %" PRId64 " is not found!", rowid); | ^~~~ src/db-items.c:18:34: error: expected ')' before 'PRId64' 18 | INFO("Item with rowid %" PRId64 " is found.", rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/db-items.c:18:34: note: 'PRId64' is defined in header ''; did you forget to '#include '? 18 | INFO("Item with rowid %" PRId64 " is found.", rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/newsraft.h:21:79: note: to match this '(' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/db-items.c:18:9: note: in expansion of macro 'INFO' 18 | INFO("Item with rowid %" PRId64 " is found.", rowid); | ^~~~ src/db-items.c: In function 'db_set_item_int': src/db-items.c:25:82: error: expected ')' before 'PRId64' 25 | INFO("Updating column \"%s\" with integer \"%d\" of item with rowid \"%" PRId64 "\".", column, value, rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/db-items.c:25:82: note: 'PRId64' is defined in header ''; did you forget to '#include '? 25 | INFO("Updating column \"%s\" with integer \"%d\" of item with rowid \"%" PRId64 "\".", column, value, rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ src/newsraft.h:21:79: note: to match this '(' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/db-items.c:25:9: note: in expansion of macro 'INFO' 25 | INFO("Updating column \"%s\" with integer \"%d\" of item with rowid \"%" PRId64 "\".", column, value, rowid); | ^~~~ In file included from src/newsraft.c:16: src/interface-input.c: At top level: src/interface-input.c:12:21: error: variable 'input_polling_period' has initializer but incomplete type 12 | static const struct timespec input_polling_period = {0, 30000000}; // 0.03 seconds | ^~~~~~~~ src/interface-input.c:12:54: warning: excess elements in struct initializer 12 | static const struct timespec input_polling_period = {0, 30000000}; // 0.03 seconds | ^ src/interface-input.c:12:54: note: (near initialization for 'input_polling_period') src/interface-input.c:12:57: warning: excess elements in struct initializer 12 | static const struct timespec input_polling_period = {0, 30000000}; // 0.03 seconds | ^~~~~~~~ src/interface-input.c:12:57: note: (near initialization for 'input_polling_period') src/interface-input.c: In function 'get_input': src/interface-input.c:79:25: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] 79 | nanosleep(&input_polling_period, NULL); | ^~~~~~~~~ src/interface-input.c:118:75: error: expected ')' before 'SCNu32' 118 | if (count != NULL && sscanf(count_buf, "%" SCNu32, count) != 1) { | ~ ^~~~~~~ | ) src/interface-input.c:1:1: note: 'SCNu32' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #include src/items-pager.c: In function 'item_pager_loop': src/items-pager.c:67:56: error: expected ')' before 'PRId64' 67 | INFO("Trying to view an item with the rowid %" PRId64 "...", item->rowid); | ^~~~~~ src/newsraft.h:21:92: note: in definition of macro 'INFO' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^~~~~~~~~~~ In file included from src/newsraft.c:27: src/items-pager.c:1:1: note: 'PRId64' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #include src/newsraft.h:21:79: note: to match this '(' 21 | #define INFO(...) do { if (log_stream) { fputs("[INFO] ", log_stream); fprintf(log_stream, __VA_ARGS__); fputc('\n', log_stream); } } while (0) | ^ src/items-pager.c:67:9: note: in expansion of macro 'INFO' 67 | INFO("Trying to view an item with the rowid %" PRId64 "...", item->rowid); | ^~~~ In file included from src/newsraft.c:29: src/load_config/config-parse.c: In function 'parse_config_file': src/load_config/config-parse.c:174:28: warning: implicit declaration of function 'getline'; did you mean 'getwin'? [-Wimplicit-function-declaration] 174 | for (ssize_t len = getline(&line, &size, f); len >= 0; len = getline(&line, &size, f)) { | ^~~~~~~ | getwin src/load_config/config-parse.c:174:9: error: declaration of non-variable 'getline' in 'for' loop initial declaration 174 | for (ssize_t len = getline(&line, &size, f); len >= 0; len = getline(&line, &size, f)) { | ^~~ In file included from src/newsraft.c:33: src/log.c: At top level: src/log.c:2:10: fatal error: expat.h: No such file or directory 2 | #include | ^~~~~~~~~ compilation terminated. *** [newsraft] Error code 1 bmake: stopped in /home/pbulk/build/news/newsraft/work/newsraft 1 error bmake: stopped in /home/pbulk/build/news/newsraft/work/newsraft *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/news/newsraft *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/news/newsraft