+ 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/mousetar-20021217nb1/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mousetar-20021217nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for mousetar-20021217nb1
cd /home/pbulk/build/archivers/mousetar/work; cc  -DDIRENT_FIXUP  -DLINUX_NAMLEN   -pipe -O2  tar.c -o mousetar
tar.c: In function ‘copyofstr’:
tar.c:1566:13: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
  t = malloc(strlen(s)+1);
             ^~~~~~
tar.c:1566:13: warning: incompatible implicit declaration of built-in function ‘strlen’
tar.c:1566:13: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:260:1:
+#include <string.h>
 #include <fcntl.h>
tar.c:1566:13:
  t = malloc(strlen(s)+1);
             ^~~~~~
tar.c:1567:9: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
  if (t) strcpy(t,s);
         ^~~~~~
tar.c:1567:9: warning: incompatible implicit declaration of built-in function ‘strcpy’
tar.c:1567:9: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
tar.c: In function ‘copynofstr’:
tar.c:1578:5: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
   { strncpy(t,s,n);
     ^~~~~~~
tar.c:1578:5: warning: incompatible implicit declaration of built-in function ‘strncpy’
tar.c:1578:5: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘open_or_dup’:
tar.c:3449:96: warning: implicit declaration of function ‘strerror’; did you mean ‘i_strerror’? [-Wimplicit-function-declaration]
  { fprintf(stderr,"%s: can't dup %s for %s: %s\n",__progname,forwrite?"stdout":"stdin",whatfor,strerror(errno));
                                                                                                ^~~~~~~~
                                                                                                i_strerror
tar.c:3478:14: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
     *where = strdup(sstr);
              ^~~~~~
tar.c:3478:14: warning: incompatible implicit declaration of built-in function ‘strdup’
tar.c: In function ‘openmt’:
tar.c:3530:11: warning: incompatible implicit declaration of built-in function ‘strdup’
    omtn = strdup(tape);
           ^~~~~~
tar.c:3540:11: warning: incompatible implicit declaration of built-in function ‘strdup’
    imtn = strdup(tape);
           ^~~~~~
tar.c: In function ‘scanargs’:
tar.c:3640:19: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
      {      if (! strcmp(av[i],"-H")) { f.how = HOW_HEAD; continue; }
                   ^~~~~~
tar.c: In function ‘argmatch_wildcard’:
tar.c:3952:17: warning: incompatible implicit declaration of built-in function ‘strlen’
     for (t=name+strlen(name);t!=name;t--)
                 ^~~~~~
tar.c:3952:17: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘argmatch_literal’:
tar.c:4038:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  nl = strlen(name);
       ^~~~~~
tar.c:4038:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘goodheader’:
tar.c:4715:8: warning: incompatible implicit declaration of built-in function ‘strncpy’
        strncpy(&tocent.devmajor[0],h->devmajor,8);
        ^~~~~~~
tar.c:4715:8: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘check_rooted’:
tar.c:5257:33: warning: incompatible implicit declaration of built-in function ‘strlen’
        tmp = malloc(rootnamelen+strlen(tocent.xname)+1);
                                 ^~~~~~
tar.c:5257:33: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘dirstack_stuff’:
tar.c:5371:16: warning: incompatible implicit declaration of built-in function ‘strlen’
   buf = malloc(strlen(rootname)+strlen(dirss)+1);
                ^~~~~~
tar.c:5371:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘make_dir_stupid’:
tar.c:5479:15: warning: incompatible implicit declaration of built-in function ‘strlen’
  tmp = malloc(strlen(path)+1);
               ^~~~~~
tar.c:5479:15: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:5480:2: warning: incompatible implicit declaration of built-in function ‘strcpy’
  strcpy(tmp,path);
  ^~~~~~
tar.c:5480:2: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
tar.c: In function ‘rootmap’:
tar.c:5513:20: warning: incompatible implicit declaration of built-in function ‘strlen’
  l = rootnamelen + strlen(p);
                    ^~~~~~
tar.c:5513:20: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘xpath_paranoia’:
tar.c:5754:26: warning: incompatible implicit declaration of built-in function ‘strlen’
  allocbuf(&pbuf,&pbuflen,strlen(tocent.xname));
                          ^~~~~~
tar.c:5754:26: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:5755:2: warning: incompatible implicit declaration of built-in function ‘strcpy’
  strcpy(pbuf,tocent.xname);
  ^~~~~~
tar.c:5755:2: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
tar.c: In function ‘x_aux_f’:
tar.c:5871:12: warning: incompatible implicit declaration of built-in function ‘strlen’
      { l = strlen(tocent.xname);
            ^~~~~~
tar.c:5871:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:6000:55: warning: implicit declaration of function ‘makedev’; did you mean ‘makedirs’? [-Wimplicit-function-declaration]
    if (mknod(tocent.xname,(tocent.mode&07777)|S_IFCHR,makedev(otoi(&tocent.devmajor[0]),otoi(&tocent.devminor[0]))) < 0)
                                                       ^~~~~~~
                                                       makedirs
tar.c: In function ‘C_aux_f’:
tar.c:6539:67: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
       Cmsg("character special device (%d,%d); comparing anyway\n",major(filestat.st_rdev),minor(filestat.st_rdev));
                                                                   ^~~~~
tar.c:6539:91: warning: implicit declaration of function ‘minor’; did you mean ‘mknod’? [-Wimplicit-function-declaration]
       Cmsg("character special device (%d,%d); comparing anyway\n",major(filestat.st_rdev),minor(filestat.st_rdev));
                                                                                           ^~~~~
                                                                                           mknod
tar.c: In function ‘putheaderblock’:
tar.c:7166:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  lf = strlen(fn);
       ^~~~~~
tar.c:7166:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:7197:8: warning: incompatible implicit declaration of built-in function ‘strncpy’
      { strncpy(&ohblk[0],t+o,TBLOCK);
        ^~~~~~~
tar.c:7197:8: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘adddev’:
tar.c:7210:16: warning: incompatible implicit declaration of built-in function ‘strlen’
  if (Lflag && (strlen(fn) > NAMSIZ))
                ^~~~~~
tar.c:7210:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘dirent_is_dot_or_dotdot’:
tar.c:1895:22: warning: incompatible implicit declaration of built-in function ‘strlen’
 #define D_NAMLEN(d) (strlen(&(d)->d_name[0]))
                      ^~~~~~
tar.c:7284:10: note: in expansion of macro ‘D_NAMLEN’
  switch (D_NAMLEN(d))
          ^~~~~~~~
tar.c:1895:22: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
 #define D_NAMLEN(d) (strlen(&(d)->d_name[0]))
                      ^~~~~~
tar.c:7284:10: note: in expansion of macro ‘D_NAMLEN’
  switch (D_NAMLEN(d))
          ^~~~~~~~
tar.c: In function ‘adddir’:
tar.c:7331:6: warning: incompatible implicit declaration of built-in function ‘strlen’
  l = strlen(fn);
      ^~~~~~
tar.c:7331:6: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘putheaderblocklink’:
tar.c:7467:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  lf = strlen(fn);
       ^~~~~~
tar.c:7467:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:7490:8: warning: incompatible implicit declaration of built-in function ‘strncpy’
      { strncpy(&ohblk[0],t+o,TBLOCK);
        ^~~~~~~
tar.c:7490:8: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘addfile_’:
tar.c:8460:16: warning: incompatible implicit declaration of built-in function ‘strlen’
  if (Lflag && (strlen(fn) > NAMSIZ))
                ^~~~~~
tar.c:8460:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘addfile_fake’:
tar.c:8542:2: warning: incompatible implicit declaration of built-in function ‘strcpy’
  strcpy(oheader->mode,"000600 ");
  ^~~~~~
tar.c:8542:2: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
tar.c:8545:6: warning: incompatible implicit declaration of built-in function ‘strlen’
  l = strlen(contents);
      ^~~~~~
tar.c:8545:6: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘addfile’:
tar.c:8621:22: warning: incompatible implicit declaration of built-in function ‘strlen’
  { write(E_listfd,fn,strlen(fn));
                      ^~~~~~
tar.c:8621:22: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘do_retries’:
tar.c:8669:26: warning: incompatible implicit declaration of built-in function ‘strlen’
     { write(E_listfd,rfn,strlen(rfn));
                          ^~~~~~
tar.c:8669:26: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘addsymlink’:
tar.c:8695:16: warning: incompatible implicit declaration of built-in function ‘strlen’
  if (Lflag && (strlen(fn) > NAMSIZ))
                ^~~~~~
tar.c:8695:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:8699:16: warning: incompatible implicit declaration of built-in function ‘strlen’
  if (Lflag && (strlen(slbuf) > NAMSIZ))
                ^~~~~~
tar.c:8699:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘addfifo’:
tar.c:8729:16: warning: incompatible implicit declaration of built-in function ‘strlen’
  if (Lflag && (strlen(fn) > NAMSIZ))
                ^~~~~~
tar.c:8729:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘P_aux_f’:
tar.c:8951:4: warning: incompatible implicit declaration of built-in function ‘strncpy’
    strncpy(oheader->devmajor,&tocent.devmajor[0],NAMSIZ);
    ^~~~~~~
tar.c:8951:4: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘append_synthetic’:
tar.c:9274:2: warning: incompatible implicit declaration of built-in function ‘strncpy’
  strncpy(name,vp,vl);
  ^~~~~~~
tar.c:9274:2: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘rgnu_aux_f’:
tar.c:9818:8: warning: incompatible implicit declaration of built-in function ‘strncpy’
        strncpy(oheader->devmajor,&tocent.devmajor[0],NAMSIZ);
        ^~~~~~~
tar.c:9818:8: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
tar.c: In function ‘onechar_key’:
tar.c:10072:18: warning: incompatible implicit declaration of built-in function ‘strlen’
    rootnamelen = strlen(rootname);
                  ^~~~~~
tar.c:10072:18: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘long_keys’:
tar.c:10352:15: warning: incompatible implicit declaration of built-in function ‘strlen’
       if (w+2+strlen(config[i]+l)+1 > 78)
               ^~~~~~
tar.c:10352:15: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c:10358:16: warning: incompatible implicit declaration of built-in function ‘strlen’
       w += 2 + strlen(config[i]+l);
                ^~~~~~
tar.c:10358:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
tar.c: In function ‘addfile’:
tar.c:8621:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  { write(E_listfd,fn,strlen(fn));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:8622:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write(E_listfd,"",1);
    ^~~~~~~~~~~~~~~~~~~~
tar.c: In function ‘do_retries’:
tar.c:8669:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
     { write(E_listfd,rfn,strlen(rfn));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:8670:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
       write(E_listfd,"",1);
       ^~~~~~~~~~~~~~~~~~~~
tar.c: In function ‘x_aux_e’:
tar.c:6380:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
        write(ffd,"",1);
        ^~~~~~~~~~~~~~~
tar.c:6388:5: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result]
     fchown(ffd,xtoce.uid,-1);
     ^~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6389:5: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result]
     fchown(ffd,-1,xtoce.gid);
     ^~~~~~~~~~~~~~~~~~~~~~~~
tar.c: In function ‘x_aux_b’:
tar.c:6239:41: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
          { for (;xzblocks>0;xzblocks--) write(ffd,&zblk[0],TBLOCK);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c: In function ‘x_aux_f’:
tar.c:5982:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,tocent.uid,-1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:5983:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,-1,tocent.gid);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6004:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,tocent.uid,-1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6005:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,-1,tocent.gid);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6022:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,tocent.uid,-1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6023:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,-1,tocent.gid);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6039:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,tocent.uid,-1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:6040:4: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
    chown(tocent.xname,-1,tocent.gid);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c: In function ‘dirstack_stuff’:
tar.c:5394:3: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
   chown(pn,modes[dirsp].uid,-1);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tar.c:5395:3: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
   chown(pn,-1,modes[dirsp].gid);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccM3L0zG.o: In function `C_aux_f':
tar.c:(.text+0x76bc): undefined reference to `major'
tar.c:(.text+0x76da): undefined reference to `minor'
tar.c:(.text+0x76fc): undefined reference to `minor'
tar.c:(.text+0x770c): undefined reference to `major'
tar.c:(.text+0x7793): undefined reference to `major'
tar.c:(.text+0x77b1): undefined reference to `minor'
tar.c:(.text+0x77d3): undefined reference to `minor'
tar.c:(.text+0x77e3): undefined reference to `major'
tar.c:(.text+0x7b21): undefined reference to `minor'
tar.c:(.text+0x7b31): undefined reference to `major'
tar.c:(.text+0x7b85): undefined reference to `minor'
tar.c:(.text+0x7b95): undefined reference to `major'
tar.c:(.text+0x7bda): undefined reference to `minor'
tar.c:(.text+0x7bea): undefined reference to `major'
tar.c:(.text+0x7c68): undefined reference to `minor'
tar.c:(.text+0x7c78): undefined reference to `major'
/tmp/ccM3L0zG.o: In function `addit':
tar.c:(.text+0xbadf): undefined reference to `minor'
tar.c:(.text+0xbaf0): undefined reference to `major'
/tmp/ccM3L0zG.o: In function `x_aux_f':
tar.c:(.text+0xdc4c): undefined reference to `makedev'
tar.c:(.text+0xdcf0): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/archivers/mousetar
*** Error code 1

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