+ 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:7: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
   if (strlcpy(port, "80", sizeof(port)) >= sizeof(port))
       ^~~~~~~
       strncpy
announce.c:115:41: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
   if (strlcpy(port, "80", sizeof(port)) >= sizeof(port))
                                         ^~
announce.c:120:37: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
  if (strlcpy(path, c, sizeof(path)) >= sizeof(path))
                                     ^~
announce.c:165:7: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
       sc->numwant);
       ^~
announce.c:172:7: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
       sc->key);
       ^~
announce.c:179:7: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
       params, sc->trackerid);
       ^~~~~~
announce.c: In function 'handle_announce_error':
announce.c:292:14: warning: pointer targets in passing argument 1 of 'strncmp' 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 /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:140:12: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'}
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
announce.c:292:61: warning: pointer targets in passing argument 1 of 'strncmp' 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 /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:140:12: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'}
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
announce.c:297:14: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
  if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) {
              ^
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:140:12: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'}
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
announce.c:302:13: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign]
  c = strstr(c, HTTP_END);
             ^
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:330:14: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'}
 extern char *strstr (const char *__haystack, const char *__needle)
              ^~~~~~
announce.c:302:4: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign]
  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
ctl_server.c: In function 'ctl_server_pieces':
ctl_server.c:326:8: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration]
    if (strlcat(msg, piece, msglen) >= msglen)
        ^~~~~~~
        strncat
ctl_server.c:326:36: warning: comparison of integer expressions of different signedness: 'int' and 'u_int32_t' {aka 'unsigned int'} [-Wsign-compare]
    if (strlcat(msg, piece, msglen) >= msglen)
                                    ^~
ctl_server.c: In function 'ctl_server_peers':
ctl_server.c:365:35: warning: comparison of integer expressions of different signedness: 'int' and 'u_int32_t' {aka 'unsigned int'} [-Wsign-compare]
    if (strlcat(msg, peer, msglen) >= msglen)
                                   ^~
--- 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
--- parse.o ---
yacc  parse.y
--- network.o ---
network.c: In function 'network_peer_process_message':
network.c:631:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
     trace("REQUEST offset out of bounds (%u)"), off;
                                               ^
network.c: In function 'network_crypto_dh':
network.c:1287:2: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  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
 OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
                           ^~~~~~
network.c:1294:2: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  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
 OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
                           ^~~~~~~~~~~
network.c:1300:2: warning: 'DH_generate_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  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
 OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
                           ^~~~~~~~~~~~~~~
--- parse.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 -o parse.o y.tab.c
parse.y: In function 'yyparse':
parse.y:113:11: warning: implicit declaration of function 'strtonum'; did you mean 'strtouq'? [-Wimplicit-function-declaration]
    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:2: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration]
  strlcat(buf, " ", win_size);
  ^~~~~~~
  strncat
--- scheduler.o ---
--- torrent.o ---
--- 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
--- 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
--- scheduler.o ---
scheduler.c: In function 'scheduler':
scheduler.c:678:4: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
    strlcpy(tbuf, " [orphaned] ", sizeof(tbuf));
    ^~~~~~~
    strncpy
scheduler.c:687:4: warning: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Wimplicit-function-declaration]
    strlcat(tbuf, " [done] ", sizeof(tbuf));
    ^~~~~~~
    strncat
--- torrent.o ---
torrent.c: In function 'torrent_parse_infohash':
torrent.c:77:19: 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:
openbsd-compat/sha1.h:25:6: note: expected 'const u_int8_t *' {aka 'const unsigned char *'} 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:12: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
      ret = strlcpy(multi_file->path,
            ^~~~~~~
            strncpy
torrent.c:244:29: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
      l = snprintf(multi_file->path,
                   ~~~~~~~~~~^~~~~~
torrent.c:246:10:
          multi_file->path,
          ~~~~~~~~~~~~~~~~    
torrent.c: In function 'torrent_piece_checkhash':
torrent.c:767:5: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign]
   s = tp->body.multifile.pieces
     ^
torrent.c:770:5: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign]
   s = tp->body.singlefile.pieces
     ^
--- 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
--- 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
util.c: In function 'print_len':
util.c:70:3: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
   snprintf(out, len+3, "%s%c", out, *p);
   ^~~~~~~~
--- 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
sha1.c: In function 'SHA1Update':
sha1.c:134:34: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
    SHA1Transform(context->state, (u_int8_t *)&data[i]);
                                  ^
--- xmalloc.o ---
xmalloc.c: In function 'xstrdup':
xmalloc.c:74:6: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
  if (strlcpy(cp, str, len) >= len)
      ^~~~~~~
      strncpy
xmalloc.c:74:28: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  if (strlcpy(cp, str, len) >= len)
                            ^~
--- 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
 #define LLONG_MIN     (-0x7fffffffffffffffLL-1)
 
In file included from strtonum.c:21:
/usr/lib/gcc/x86_64-redhat-linux/8/include/limits.h:140: note: this is the location of the previous definition
 # define LLONG_MIN (-LLONG_MAX - 1LL)
 
strtonum.c:31: warning: "LLONG_MAX" redefined
 #define LLONG_MAX     0x7fffffffffffffffLL
 
In file included from strtonum.c:21:
/usr/lib/gcc/x86_64-redhat-linux/8/include/limits.h:142: note: this is the location of the previous definition
 # 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
./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:202: 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:120: undefined reference to `strlcpy'
/home/pbulk/build/net/unworkable/work/unworkable/announce.c:145: undefined reference to `strlcpy'
./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-el8-trunk-x86_64/net/unworkable
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/net/unworkable