+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/unworkable-0.53nb3/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/unworkable-0.53nb3/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for unworkable-0.53nb3 --- announce.o --- --- bencode.o --- --- announce.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c announce.c --- bencode.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c bencode.c --- announce.o --- announce.c: In function 'announce': announce.c:115:3: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration] if (strlcpy(port, "80", sizeof(port)) >= sizeof(port)) ^ announce.c:115:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlcpy(port, "80", sizeof(port)) >= sizeof(port)) ^ announce.c:120:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlcpy(path, c, sizeof(path)) >= sizeof(path)) ^ announce.c: In function 'handle_announce_error': announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'u_int8_t *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:292:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:292:2: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'u_int8_t *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ announce.c:297:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:297:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { ^ In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:297:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { ^ announce.c:297:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:297:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'u_int8_t *' extern size_t strlen (const char *__s) ^ announce.c:297:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { ^ announce.c:297:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:297:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:297:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:297:2: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] announce.c:297:2: note: expected 'const char *' but argument is of type 'u_int8_t *' announce.c:297:2: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from announce.c:42:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'u_int8_t *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ announce.c:302:2: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] c = strstr(c, HTTP_END); ^ In file included from announce.c:42:0: /usr/include/string.h:338:14: note: expected 'const char *' but argument is of type 'u_int8_t *' extern char *strstr (const char *__haystack, const char *__needle) ^ announce.c:302:4: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] c = strstr(c, HTTP_END); ^ --- buf.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c buf.c --- ctl_server.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c ctl_server.c ctl_server.c: In function 'ctl_server_pieces': ctl_server.c:326:4: warning: implicit declaration of function 'strlcat' [-Wimplicit-function-declaration] if (strlcat(msg, piece, msglen) >= msglen) ^ ctl_server.c:326:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlcat(msg, piece, msglen) >= msglen) ^ ctl_server.c: In function 'ctl_server_peers': ctl_server.c:365:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlcat(msg, peer, msglen) >= msglen) ^ --- network.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c network.c --- parse.o --- yacc parse.y cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c -o parse.o y.tab.c parse.y: In function 'yyparse': parse.y:113:4: warning: implicit declaration of function 'strtonum' [-Wimplicit-function-declaration] lval = strtonum($1, LLONG_MIN, LLONG_MAX, &errstr); ^ rm -f y.tab.c --- progressmeter.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c progressmeter.c progressmeter.c: In function 'refresh_progress_meter': progressmeter.c:188:2: warning: implicit declaration of function 'strlcat' [-Wimplicit-function-declaration] strlcat(buf, " ", win_size); ^ --- scheduler.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c scheduler.c --- torrent.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c torrent.c torrent.c: In function 'torrent_parse_infohash': torrent.c:77:2: warning: pointer targets in passing argument 2 of 'SHA1Update' differ in signedness [-Wpointer-sign] SHA1Update(&sha, p, (infoend - (p - buf))); ^ In file included from torrent.c:27:0: openbsd-compat/sha1.h:25:6: note: expected 'const u_int8_t *' but argument is of type 'char *' void SHA1Update(SHA1_CTX *, const u_int8_t *, size_t); ^ torrent.c: In function 'torrent_parse_file': torrent.c:238:6: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration] ret = strlcpy(multi_file->path, ^ --- scheduler.o --- scheduler.c: In function 'scheduler': scheduler.c:678:4: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration] strlcpy(tbuf, " [orphaned] ", sizeof(tbuf)); ^ scheduler.c:687:4: warning: implicit declaration of function 'strlcat' [-Wimplicit-function-declaration] strlcat(tbuf, " [done] ", sizeof(tbuf)); ^ --- torrent.o --- torrent.c: In function 'torrent_piece_checkhash': torrent.c:767:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s = tp->body.multifile.pieces ^ torrent.c:770:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s = tp->body.singlefile.pieces ^ --- trace.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c trace.c --- util.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c util.c --- xmalloc.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c xmalloc.c xmalloc.c: In function 'xstrdup': xmalloc.c:74:2: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration] if (strlcpy(cp, str, len) >= len) ^ xmalloc.c:74:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlcpy(cp, str, len) >= len) ^ --- sha1.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c sha1.c --- strtonum.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c strtonum.c strtonum.c:30:0: warning: "LLONG_MIN" redefined [enabled by default] #define LLONG_MIN (-0x7fffffffffffffffLL-1) ^ In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168:0, from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7, from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34, from strtonum.c:21: /usr/include/limits.h:132:0: note: this is the location of the previous definition # define LLONG_MIN (-LLONG_MAX-1) ^ strtonum.c:31:0: warning: "LLONG_MAX" redefined [enabled by default] #define LLONG_MAX 0x7fffffffffffffffLL ^ In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168:0, from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7, from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34, from strtonum.c:21: /usr/include/limits.h:135:0: note: this is the location of the previous definition # define LLONG_MAX __LONG_LONG_MAX__ ^ --- sha1.o --- sha1.c: In function 'SHA1Update': sha1.c:134:34: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] SHA1Transform(context->state, (u_int8_t *)&data[i]); ^ --- main.o --- cc -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/pkg/include -c main.c --- unworkable.cat1 --- nroff -Tascii -mandoc unworkable.1 > unworkable.cat1 --- libunworkable.a --- ar rcs libunworkable.a announce.o bencode.o buf.o ctl_server.o network.o parse.o progressmeter.o scheduler.o torrent.o trace.o util.o xmalloc.o sha1.o strtonum.o --- unworkable --- cc -o unworkable -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L. -levent -lcrypto main.o -lunworkable ./libunworkable.a(ctl_server.o): In function `ctl_server_pieces': /home/pbulk/build/net/unworkable/work/unworkable/ctl_server.c:326: undefined reference to `strlcat' ./libunworkable.a(ctl_server.o): In function `ctl_server_peers': /home/pbulk/build/net/unworkable/work/unworkable/ctl_server.c:365: undefined reference to `strlcat' ./libunworkable.a(progressmeter.o): In function `refresh_progress_meter': /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:188: undefined reference to `strlcat' /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:193: undefined reference to `strlcat' /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:226: undefined reference to `strlcat' ./libunworkable.a(progressmeter.o):/home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:224: more undefined references to `strlcat' follow ./libunworkable.a(scheduler.o): In function `scheduler': /home/pbulk/build/net/unworkable/work/unworkable/scheduler.c:678: undefined reference to `strlcpy' ./libunworkable.a(torrent.o): In function `torrent_parse_file': /home/pbulk/build/net/unworkable/work/unworkable/torrent.c:238: undefined reference to `strlcpy' ./libunworkable.a(xmalloc.o): In function `xstrdup': /home/pbulk/build/net/unworkable/work/unworkable/xmalloc.c:74: undefined reference to `strlcpy' ./libunworkable.a(announce.o): In function `announce': /home/pbulk/build/net/unworkable/work/unworkable/announce.c:115: undefined reference to `strlcpy' /home/pbulk/build/net/unworkable/work/unworkable/announce.c:120: undefined reference to `strlcpy' ./libunworkable.a(announce.o):/home/pbulk/build/net/unworkable/work/unworkable/announce.c:145: more undefined references to `strlcpy' follow collect2: error: ld returned 1 exit status *** [unworkable] Error code 1 bmake: stopped in /home/pbulk/build/net/unworkable/work/unworkable 1 error bmake: stopped in /home/pbulk/build/net/unworkable/work/unworkable *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/net/unworkable *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/net/unworkable