+ 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] 1566 | t = malloc(strlen(s)+1); | ^~~~~~ tar.c:260:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ 259 | #include <unistd.h> +++ |+#include <string.h> 260 | #include <fcntl.h> tar.c:1566:13: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 1566 | t = malloc(strlen(s)+1); | ^~~~~~ tar.c:1566:13: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c:1567:9: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration] 1567 | if (t) strcpy(t,s); | ^~~~~~ tar.c:1567:9: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’ tar.c:1567:9: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch] 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] 1578 | { strncpy(t,s,n); | ^~~~~~~ tar.c:1578:5: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’ tar.c:1578:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch] tar.c:1578:5: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’ tar.c: In function ‘open_or_dup’: tar.c:3449:103: warning: implicit declaration of function ‘strerror’; did you mean ‘i_strerror’? [-Wimplicit-function-declaration] 3449 | { 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] 3478 | *where = strdup(sstr); | ^~~~~~ tar.c:3478:14: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch] tar.c: In function ‘openmt’: tar.c:3530:18: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch] 3530 | omtn = strdup(tape); | ^~~~~~ tar.c:3540:18: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch] 3540 | imtn = strdup(tape); | ^~~~~~ tar.c: In function ‘scanargs’: tar.c:3640:19: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] 3640 | { if (! strcmp(av[i],"-H")) { f.how = HOW_HEAD; continue; } | ^~~~~~ tar.c:3640:19: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’ tar.c: In function ‘argmatch_wildcard’: tar.c:3952:17: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 3952 | 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’ [-Wbuiltin-declaration-mismatch] 4038 | 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’ [-Wbuiltin-declaration-mismatch] 4715 | 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’ [-Wbuiltin-declaration-mismatch] 5257 | 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:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 5371 | buf = malloc(strlen(rootname)+strlen(dirss)+1); | ^~~~~~ tar.c:5371:30: 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’ [-Wbuiltin-declaration-mismatch] 5479 | 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’ [-Wbuiltin-declaration-mismatch] 5480 | 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’ [-Wbuiltin-declaration-mismatch] 5513 | 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’ [-Wbuiltin-declaration-mismatch] 5754 | 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’ [-Wbuiltin-declaration-mismatch] 5755 | 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’ [-Wbuiltin-declaration-mismatch] 5871 | { l = strlen(tocent.xname); | ^~~~~~ tar.c:5871:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c:6000:62: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] 6000 | if (mknod(tocent.xname,(tocent.mode&07777)|S_IFCHR,makedev(otoi(&tocent.devmajor[0]),otoi(&tocent.devminor[0]))) < 0) | ^~~~~~~ tar.c: In function ‘C_aux_f’: tar.c:6539:74: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration] 6539 | Cmsg("character special device (%d,%d); comparing anyway\n",major(filestat.st_rdev),minor(filestat.st_rdev)); | ^~~~~ tar.c:6539:98: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration] 6539 | Cmsg("character special device (%d,%d); comparing anyway\n",major(filestat.st_rdev),minor(filestat.st_rdev)); | ^~~~~ tar.c: In function ‘putheaderblock’: tar.c:7166:7: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 7166 | 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’ [-Wbuiltin-declaration-mismatch] 7197 | { 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’ [-Wbuiltin-declaration-mismatch] 7210 | 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’ [-Wbuiltin-declaration-mismatch] 1895 | #define D_NAMLEN(d) (strlen(&(d)->d_name[0])) | ^~~~~~ tar.c:7284:10: note: in expansion of macro ‘D_NAMLEN’ 7284 | switch (D_NAMLEN(d)) | ^~~~~~~~ tar.c:1895:22: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ 1895 | #define D_NAMLEN(d) (strlen(&(d)->d_name[0])) | ^~~~~~ tar.c:7284:10: note: in expansion of macro ‘D_NAMLEN’ 7284 | switch (D_NAMLEN(d)) | ^~~~~~~~ tar.c: In function ‘adddir’: tar.c:7331:6: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 7331 | 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’ [-Wbuiltin-declaration-mismatch] 7467 | 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’ [-Wbuiltin-declaration-mismatch] 7490 | { 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’ [-Wbuiltin-declaration-mismatch] 8460 | 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’ [-Wbuiltin-declaration-mismatch] 8542 | 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’ [-Wbuiltin-declaration-mismatch] 8545 | 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:29: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 8621 | { write(E_listfd,fn,strlen(fn)); | ^~~~~~ tar.c:8621:29: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c: In function ‘do_retries’: tar.c:8669:33: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 8669 | { write(E_listfd,rfn,strlen(rfn)); | ^~~~~~ tar.c:8669:33: 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’ [-Wbuiltin-declaration-mismatch] 8695 | 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’ [-Wbuiltin-declaration-mismatch] 8699 | 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’ [-Wbuiltin-declaration-mismatch] 8729 | 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:11: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch] 8951 | strncpy(oheader->devmajor,&tocent.devmajor[0],NAMSIZ); | ^~~~~~~ tar.c:8951:11: 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’ [-Wbuiltin-declaration-mismatch] 9274 | 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’ [-Wbuiltin-declaration-mismatch] 9818 | 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:25: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 10072 | rootnamelen = strlen(rootname); | ^~~~~~ tar.c:10072:25: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c: In function ‘long_keys’: tar.c:10352:22: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 10352 | if (w+2+strlen(config[i]+l)+1 > 78) | ^~~~~~ tar.c:10352:22: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c:10358:23: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 10358 | w += 2 + strlen(config[i]+l); | ^~~~~~ tar.c:10358:23: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ tar.c: In function ‘addfile’: tar.c:8621:11: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8621 | { write(E_listfd,fn,strlen(fn)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:8622:11: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8622 | write(E_listfd,"",1); | ^~~~~~~~~~~~~~~~~~~~ tar.c: In function ‘do_retries’: tar.c:8669:14: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8669 | { write(E_listfd,rfn,strlen(rfn)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:8670:14: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8670 | 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] 6380 | write(ffd,"",1); | ^~~~~~~~~~~~~~~ tar.c:6388:5: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6388 | fchown(ffd,xtoce.uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6389:5: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6389 | fchown(ffd,-1,xtoce.gid); | ^~~~~~~~~~~~~~~~~~~~~~~~ tar.c: In function ‘x_aux_b’: tar.c:6239:55: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6239 | { for (;xzblocks>0;xzblocks--) write(ffd,&zblk[0],TBLOCK); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c: In function ‘x_aux_f’: tar.c:5982:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5982 | chown(tocent.xname,tocent.uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:5983:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5983 | chown(tocent.xname,-1,tocent.gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6004:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6004 | chown(tocent.xname,tocent.uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6005:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6005 | chown(tocent.xname,-1,tocent.gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6022:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6022 | chown(tocent.xname,tocent.uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6023:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6023 | chown(tocent.xname,-1,tocent.gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6039:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6039 | chown(tocent.xname,tocent.uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:6040:11: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6040 | chown(tocent.xname,-1,tocent.gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c: In function ‘dirstack_stuff’: tar.c:5394:17: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5394 | chown(pn,modes[dirsp].uid,-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tar.c:5395:17: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5395 | chown(pn,-1,modes[dirsp].gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bin/ld: /tmp/ccHkbdGM.o: in function `C_aux_f': tar.c:(.text+0x7fd6): undefined reference to `major' /bin/ld: tar.c:(.text+0x7ff4): undefined reference to `minor' /bin/ld: tar.c:(.text+0x8016): undefined reference to `minor' /bin/ld: tar.c:(.text+0x8027): undefined reference to `major' /bin/ld: tar.c:(.text+0x80ae): undefined reference to `major' /bin/ld: tar.c:(.text+0x80cc): undefined reference to `minor' /bin/ld: tar.c:(.text+0x80ee): undefined reference to `minor' /bin/ld: tar.c:(.text+0x80ff): undefined reference to `major' /bin/ld: tar.c:(.text+0x83c1): undefined reference to `minor' /bin/ld: tar.c:(.text+0x83d2): undefined reference to `major' /bin/ld: tar.c:(.text+0x8463): undefined reference to `minor' /bin/ld: tar.c:(.text+0x8474): undefined reference to `major' /bin/ld: tar.c:(.text+0x850c): undefined reference to `minor' /bin/ld: tar.c:(.text+0x851d): undefined reference to `major' /bin/ld: tar.c:(.text+0x85e2): undefined reference to `minor' /bin/ld: tar.c:(.text+0x85f3): undefined reference to `major' /bin/ld: /tmp/ccHkbdGM.o: in function `x_aux_f': tar.c:(.text+0x932f): undefined reference to `makedev' /bin/ld: tar.c:(.text+0x9477): undefined reference to `makedev' /bin/ld: /tmp/ccHkbdGM.o: in function `addit': tar.c:(.text+0xa780): undefined reference to `minor' /bin/ld: tar.c:(.text+0xa791): undefined reference to `major' collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/archivers/mousetar *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/archivers/mousetar