+ 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.53nb4/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/unworkable-0.53nb4/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for unworkable-0.53nb4 --- announce.o --- --- bencode.o --- --- announce.o --- cc -pipe -O2 -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 -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:21: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 115 | if (strlcpy(port, "80", sizeof(port)) >= sizeof(port)) | ^~~~~~~ | strncpy announce.c:115:55: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 115 | if (strlcpy(port, "80", sizeof(port)) >= sizeof(port)) | ^~ announce.c:120:44: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 120 | if (strlcpy(path, c, sizeof(path)) >= sizeof(path)) | ^~ announce.c: In function 'handle_announce_error': announce.c:292:21: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 292 | if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { | ^ | | | u_int8_t * {aka unsigned char *} In file included from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/ec.h:23, from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/engine.h:28, from announce.c:33: /usr/include/string.h:143:33: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 143 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ announce.c:292:68: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 292 | if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { | ^ | | | u_int8_t * {aka unsigned char *} In file included from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/ec.h:23, from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/engine.h:28, from announce.c:33: /usr/include/string.h:143:33: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 143 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ announce.c:297:21: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 297 | if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { | ^ | | | u_int8_t * {aka unsigned char *} In file included from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/ec.h:23, from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/engine.h:28, from announce.c:33: /usr/include/string.h:143:33: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 143 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ announce.c:302:20: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] 302 | c = strstr(c, HTTP_END); | ^ | | | u_int8_t * {aka unsigned char *} In file included from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/ec.h:23, from /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/engine.h:28, from announce.c:33: /usr/include/string.h:334:34: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 334 | extern char *strstr (const char *__haystack, const char *__needle) | ~~~~~~~~~~~~^~~~~~~~~~ announce.c:302:11: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 302 | c = strstr(c, HTTP_END); | ^ --- buf.o --- cc -pipe -O2 -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 -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 --- network.o --- cc -pipe -O2 -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 --- ctl_server.o --- ctl_server.c: In function 'ctl_server_pieces': ctl_server.c:326:29: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration] 326 | if (strlcat(msg, piece, msglen) >= msglen) | ^~~~~~~ | strncat ctl_server.c:326:57: warning: comparison of integer expressions of different signedness: 'int' and 'u_int32_t' {aka 'unsigned int'} [-Wsign-compare] 326 | if (strlcat(msg, piece, msglen) >= msglen) | ^~ ctl_server.c: In function 'ctl_server_peers': ctl_server.c:365:56: warning: comparison of integer expressions of different signedness: 'int' and 'u_int32_t' {aka 'unsigned int'} [-Wsign-compare] 365 | if (strlcat(msg, peer, msglen) >= msglen) | ^~ --- parse.o --- yacc parse.y cc -pipe -O2 -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 --- network.o --- network.c: In function 'network_peer_process_message': network.c:631:75: warning: right-hand operand of comma expression has no effect [-Wunused-value] 631 | trace("REQUEST offset out of bounds (%u)"), off; | ^ network.c: In function 'network_crypto_dh': network.c:1287:9: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1287 | if ((dhp = DH_new()) == NULL) | ^~ In file included from includes.h:31, from network.c:40: /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/dh.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); | ^~~~~~ network.c:1294:9: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1294 | if (DH_set0_pqg(dhp, p, NULL, g) != 1) | ^~ In file included from includes.h:31, from network.c:40: /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/dh.h:266:27: note: declared here 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); | ^~~~~~~~~~~ network.c:1300:9: warning: 'DH_generate_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1300 | if (DH_generate_key(dhp) == 0) | ^~ In file included from includes.h:31, from network.c:40: /home/pbulk/build/net/unworkable/work/.buildlink/include/openssl/dh.h:234:27: note: declared here 234 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); | ^~~~~~~~~~~~~~~ --- parse.o --- parse.y: In function 'yyparse': parse.y:113:32: warning: implicit declaration of function 'strtonum'; did you mean 'strtouq'? [-Wimplicit-function-declaration] 113 | lval = strtonum($1, LLONG_MIN, LLONG_MAX, &errstr); | ^~~~~~~~ | strtouq rm -f y.tab.c --- progressmeter.o --- cc -pipe -O2 -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:9: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration] 188 | strlcat(buf, " ", win_size); | ^~~~~~~ | strncat --- scheduler.o --- cc -pipe -O2 -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 scheduler.c: In function 'scheduler': scheduler.c:678:25: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 678 | strlcpy(tbuf, " [orphaned] ", sizeof(tbuf)); | ^~~~~~~ | strncpy scheduler.c:687:25: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration] 687 | strlcat(tbuf, " [done] ", sizeof(tbuf)); | ^~~~~~~ | strncat --- torrent.o --- cc -pipe -O2 -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 --- trace.o --- cc -pipe -O2 -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 --- torrent.o --- torrent.c: In function 'torrent_parse_infohash': torrent.c:77:26: warning: pointer targets in passing argument 2 of 'SHA1Update' differ in signedness [-Wpointer-sign] 77 | SHA1Update(&sha, p, (infoend - (p - buf))); | ^ | | | char * In file included from torrent.c:27: openbsd-compat/sha1.h:25:29: note: expected 'const u_int8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 25 | void SHA1Update(SHA1_CTX *, const u_int8_t *, size_t); | ^~~~~~~~~~~~~~~~ torrent.c: In function 'torrent_parse_file': torrent.c:238:47: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 238 | ret = strlcpy(multi_file->path, | ^~~~~~~ | strncpy torrent.c: In function 'torrent_piece_checkhash': torrent.c:767:19: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 767 | s = tp->body.multifile.pieces | ^ torrent.c:770:19: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 770 | s = tp->body.singlefile.pieces | ^ --- util.o --- cc -pipe -O2 -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 --- --- sha1.o --- --- xmalloc.o --- cc -pipe -O2 -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 --- sha1.o --- cc -pipe -O2 -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 --- xmalloc.o --- xmalloc.c: In function 'xstrdup': xmalloc.c:74:13: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 74 | if (strlcpy(cp, str, len) >= len) | ^~~~~~~ | strncpy xmalloc.c:74:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 74 | if (strlcpy(cp, str, len) >= len) | ^~ --- sha1.o --- sha1.c: In function 'SHA1Update': sha1.c:134:55: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 134 | SHA1Transform(context->state, (u_int8_t *)&data[i]); | ^ --- strtonum.o --- cc -pipe -O2 -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: warning: "LLONG_MIN" redefined 30 | #define LLONG_MIN (-0x7fffffffffffffffLL-1) | In file included from strtonum.c:21: /usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h:140: note: this is the location of the previous definition 140 | # define LLONG_MIN (-LLONG_MAX - 1LL) | strtonum.c:31: warning: "LLONG_MAX" redefined 31 | #define LLONG_MAX 0x7fffffffffffffffLL | In file included from strtonum.c:21: /usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h:142: note: this is the location of the previous definition 142 | # define LLONG_MAX __LONG_LONG_MAX__ | --- main.o --- cc -pipe -O2 -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 /bin/ld: ./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' /bin/ld: ./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' /bin/ld: ./libunworkable.a(progressmeter.o): in function `refresh_progress_meter': /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:188: undefined reference to `strlcat' /bin/ld: /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:193: undefined reference to `strlcat' /bin/ld: /home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:202: undefined reference to `strlcat' /bin/ld: ./libunworkable.a(progressmeter.o):/home/pbulk/build/net/unworkable/work/unworkable/progressmeter.c:224: more undefined references to `strlcat' follow /bin/ld: ./libunworkable.a(scheduler.o): in function `scheduler': /home/pbulk/build/net/unworkable/work/unworkable/scheduler.c:678: undefined reference to `strlcpy' /bin/ld: ./libunworkable.a(torrent.o): in function `torrent_parse_file': /home/pbulk/build/net/unworkable/work/unworkable/torrent.c:238: undefined reference to `strlcpy' /bin/ld: ./libunworkable.a(xmalloc.o): in function `xstrdup': /home/pbulk/build/net/unworkable/work/unworkable/xmalloc.c:74: undefined reference to `strlcpy' /bin/ld: ./libunworkable.a(announce.o): in function `announce': /home/pbulk/build/net/unworkable/work/unworkable/announce.c:120: undefined reference to `strlcpy' /bin/ld: /home/pbulk/build/net/unworkable/work/unworkable/announce.c:145: undefined reference to `strlcpy' /bin/ld: ./libunworkable.a(announce.o):/home/pbulk/build/net/unworkable/work/unworkable/announce.c:156: more undefined references to `strlcpy' follow collect2: error: ld returned 1 exit status *** [unworkable] Error code 1 bmake: stopped making "all" in /home/pbulk/build/net/unworkable/work/unworkable bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/net/unworkable/work/unworkable *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/unworkable *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/unworkable