=> Bootstrap dependency digest>=20211023: found digest-20211023 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for nfsshell-1.0nb1 --- mount.h --- --- mount_clnt.c --- --- mount_svc.c --- --- mount_xdr.c --- --- mount_clnt.c --- rpcgen -C mount.x --- mount_xdr.c --- rpcgen -C mount.x --- mount_svc.c --- rpcgen -C mount.x --- mount.h --- rpcgen -C mount.x --- nfs_prot.h --- --- nfs_prot_clnt.c --- rpcgen -C nfs_prot.x --- nfs_prot.h --- rpcgen -C nfs_prot.x --- nfs_prot_svc.c --- rpcgen -C nfs_prot.x --- nfs_prot_xdr.c --- rpcgen -C nfs_prot.x --- mount_xdr.o --- --- nfs_prot_clnt.o --- --- nfs_prot_xdr.o --- --- nfsshell.o --- --- mount_xdr.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c mount_xdr.c --- nfs_prot_clnt.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c nfs_prot_clnt.c --- nfs_prot_xdr.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c nfs_prot_xdr.c --- nfsshell.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c nfsshell.c nfsshell.c:170:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ nfsshell.c: In function 'main': nfsshell.c:179:19: warning: implicit declaration of function 'getopt'; did you mean 'getdate'? [-Wimplicit-function-declaration] while ((opt = getopt(argc, argv, "vi")) != EOF) { ^~~~~~ getdate nfsshell.c:199:13: warning: implicit declaration of function 'command'; did you mean 'do_mknod'? [-Wimplicit-function-declaration] if ((cmd = command(argvec[0])) == CMD_QUIT) ^~~~~~~ do_mknod nfsshell.c:215:6: warning: implicit declaration of function 'do_lcd'; did you mean 'do_cd'? [-Wimplicit-function-declaration] do_lcd(argcount, argvec); ^~~~~~ do_cd nfsshell.c:260:6: warning: implicit declaration of function 'do_mroot'; did you mean 'do_mount'? [-Wimplicit-function-declaration] do_mroot(&uid, argcount, argvec); ^~~~~~~~ do_mount nfsshell.c:295:21: warning: implicit declaration of function 'close_mount'; did you mean 'do_mount'? [-Wimplicit-function-declaration] if (remotehost) close_mount(); ^~~~~~~~~~~ do_mount nfsshell.c: In function 'do_host': nfsshell.c:361:2: warning: implicit declaration of function 'open_mount'; did you mean 'do_mount'? [-Wimplicit-function-declaration] open_mount(argv[1]); ^~~~~~~~~~ do_mount nfsshell.c: At top level: nfsshell.c:436:1: warning: return type defaults to 'int' [-Wimplicit-int] do_lcd(argc, argv) ^~~~~~ nfsshell.c: In function 'do_lcd': nfsshell.c:443:10: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] if (chdir(home) != 0) perror("lcd"); ^~~~~ nfsshell.c: In function 'do_ls': nfsshell.c:519:10: warning: implicit declaration of function 'getdirentries' [-Wimplicit-function-declaration] if (!getdirentries(directory_handle, &table, &ptr, 20)) ^~~~~~~~~~~~~ nfsshell.c:522:7: warning: implicit declaration of function 'match' [-Wimplicit-function-declaration] if (!match(*p, argc, argv)) continue; ^~~~~ nfsshell.c: In function 'printfilestatus': nfsshell.c:600:5: warning: implicit declaration of function 'writefiledate'; did you mean 'printfilestatus'? [-Wimplicit-function-declaration] writefiledate(res->diropres_u.diropres.attributes.ctime.seconds); ^~~~~~~~~~~~~ printfilestatus --- mount_clnt.o --- --- nfsshell.o --- nfsshell.c: In function 'do_df': nfsshell.c:733:33: warning: passing argument 1 of 'nfsproc_statfs_2' from incompatible pointer type [-Wincompatible-pointer-types] if ((res = nfsproc_statfs_2(directory_handle, nfsclient)) == NULL) { ^~~~~~~~~~~~~~~~ In file included from nfsshell.c:34:0: nfs_prot.h:353:12: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char *' statfsres *nfsproc_statfs_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~ --- mount_clnt.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c mount_clnt.c --- nfsshell.o --- nfsshell.c: In function 'do_handle': nfsshell.c:1155:12: warning: implicit declaration of function 'privileged' [-Wimplicit-function-declaration] sock = privileged(); ^~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:54:0, from nfsshell.c:22: nfsshell.c:1162:44: warning: passing argument 3 of 'nfsclient->cl_ops->cl_control' from incompatible pointer type [-Wincompatible-pointer-types] clnt_control(nfsclient, CLSET_TIMEOUT, &timeout); ^ nfsshell.c:1162:44: note: expected 'char *' but argument is of type 'struct timeval *' nfsshell.c:1174:16: warning: implicit declaration of function 'xtoa'; did you mean 'atol'? [-Wimplicit-function-declaration] *p++ = (char) xtoa(argv[i + 1]); ^~~~ atol nfsshell.c: At top level: nfsshell.c:1228:1: warning: return type defaults to 'int' [-Wimplicit-int] do_mroot(var, argc, argv) ^~~~~~~~ nfsshell.c: In function 'do_mount': nfsshell.c:1304:5: warning: implicit declaration of function 'open_nfs'; did you mean 'close_nfs'? [-Wimplicit-function-declaration] open_nfs(path, umount, portmap); ^~~~~~~~ close_nfs In file included from /usr/include/rpc/rpc.h:54:0, from nfsshell.c:22: nfsshell.c: In function 'open_mount': nfsshell.c:1479:44: warning: passing argument 3 of 'mntclient->cl_ops->cl_control' from incompatible pointer type [-Wincompatible-pointer-types] clnt_control(mntclient, CLSET_TIMEOUT, &timeout); ^ nfsshell.c:1479:44: note: expected 'char *' but argument is of type 'struct timeval *' nfsshell.c: At top level: nfsshell.c:1491:1: warning: return type defaults to 'int' [-Wimplicit-int] close_mount() ^~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:54:0, from nfsshell.c:22: nfsshell.c: In function 'open_nfs': nfsshell.c:1526:44: warning: passing argument 3 of 'nfsclient->cl_ops->cl_control' from incompatible pointer type [-Wincompatible-pointer-types] clnt_control(nfsclient, CLSET_TIMEOUT, &timeout); ^ nfsshell.c:1526:44: note: expected 'char *' but argument is of type 'struct timeval *' nfsshell.c: In function 'pmap_mnt': nfsshell.c:1582:7: warning: passing argument 5 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsshell.c:22: /usr/include/rpc/pmap_clnt.h:73:23: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *, const void *)}' but argument is of type 'bool_t (*)(XDR *, char **) {aka int (*)(struct __rpc_xdr *, char **)}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsshell.c:1582:20: warning: passing argument 6 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsshell.c:22: /usr/include/rpc/pmap_clnt.h:73:23: note: expected '__caddr_t {aka char *}' but argument is of type 'char **' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsshell.c:1582:26: warning: passing argument 7 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsshell.c:22: /usr/include/rpc/pmap_clnt.h:73:23: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *, const void *)}' but argument is of type 'bool_t (*)(XDR *, fhstatus *) {aka int (*)(struct __rpc_xdr *, struct fhstatus *)}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsshell.c:1582:40: warning: passing argument 8 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^ In file included from /usr/include/rpc/rpc.h:72:0, from nfsshell.c:22: /usr/include/rpc/pmap_clnt.h:73:23: note: expected '__caddr_t {aka char *}' but argument is of type 'fhstatus * {aka struct fhstatus *}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsshell.c: In function 'determine_transfersize': nfsshell.c:1597:33: warning: passing argument 1 of 'nfsproc_statfs_2' from incompatible pointer type [-Wincompatible-pointer-types] if ((res = nfsproc_statfs_2(directory_handle, nfsclient)) == NULL) ^~~~~~~~~~~~~~~~ In file included from nfsshell.c:34:0: nfs_prot.h:353:12: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char *' statfsres *nfsproc_statfs_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~ nfsshell.c: In function 'privileged': nfsshell.c:1621:14: warning: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types] if (bind(s, (caddr_t)&sin, sizeof (sin)/*, 0*//*HF*/) >= 0) { ^ In file included from /usr/include/netinet6/in6.h:73:0, from /usr/include/netinet/in.h:372, from /usr/include/rpc/rpc.h:45, from nfsshell.c:22: /usr/include/sys/socket.h:622:5: note: expected 'const struct sockaddr *' but argument is of type 'char *' int bind(int, const struct sockaddr *, socklen_t); ^~~~ nfsshell.c: In function 'MYauthunix_create_default': nfsshell.c:1664:9: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] if (gethostname(machname, MAX_MACHINE_NAME) == -1) { ^~~~~~~~~~~ gethostbyname nfsshell.c: At top level: nfsshell.c:1678:1: warning: return type defaults to 'int' [-Wimplicit-int] getdirentries(dirhandle, table, ptr, nentries) ^~~~~~~~~~~~~ nfsshell.c: In function 'match': nfsshell.c:1771:6: warning: implicit declaration of function 'matchpattern' [-Wimplicit-function-declaration] if (matchpattern(s, argv[i])) ^~~~~~~~~~~~ nfsshell.c: In function 'matchpattern': nfsshell.c:1782:12: warning: implicit declaration of function 'amatchpattern'; did you mean 'matchpattern'? [-Wimplicit-function-declaration] return amatchpattern(s, p); ^~~~~~~~~~~~~ matchpattern nfsshell.c: In function 'amatchpattern': nfsshell.c:1815:9: warning: implicit declaration of function 'umatchpattern'; did you mean 'amatchpattern'? [-Wimplicit-function-declaration] return umatchpattern(--s, p); ^~~~~~~~~~~~~ amatchpattern --- nfsbug.o --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -c nfsbug.c nfsbug.c:115:0: warning: "MOUNT_UFS" redefined #define MOUNT_UFS 1 In file included from nfsbug.c:31:0: /usr/include/sys/mount.h:69:0: note: this is the location of the previous definition #define MOUNT_UFS MOUNT_FFS /* for compatibility */ nfsbug.c:116:0: warning: "MOUNT_NFS" redefined #define MOUNT_NFS 2 In file included from nfsbug.c:31:0: /usr/include/sys/mount.h:70:0: note: this is the location of the previous definition #define MOUNT_NFS "nfs" /* Network Filesystem */ nfsbug.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ nfsbug.c: In function 'main': nfsbug.c:165:19: warning: implicit declaration of function 'getopt'; did you mean 'getfh'? [-Wimplicit-function-declaration] while ((opt = getopt(argc, argv, "mphv")) != EOF) { ^~~~~~ getfh nfsbug.c: In function 'usage': nfsbug.c:194:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ nfsbug.c:194:5: warning: incompatible implicit declaration of built-in function 'exit' nfsbug.c:194:5: note: include '' or provide a declaration of 'exit' nfsbug.c: In function 'nfsbug': nfsbug.c:238:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(sock); ^~~~~ pclose nfsbug.c:333:27: warning: passing argument 1 of 'nfsproc_getattr_2' from incompatible pointer type [-Wincompatible-pointer-types] res = nfsproc_getattr_2(mountpoint->fhstatus_u.fhs_fhandle, ^~~~~~~~~~ In file included from nfsbug.c:49:0: nfs_prot.h:321:11: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char *' attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~~ nfsbug.c:341:7: warning: implicit declaration of function 'exercise' [-Wimplicit-function-declaration] exercise(mountpoint->fhstatus_u.fhs_fhandle, nfsclient, ^~~~~~~~ nfsbug.c:363:27: warning: passing argument 1 of 'nfsproc_getattr_2' from incompatible pointer type [-Wincompatible-pointer-types] res = nfsproc_getattr_2(mountpoint->fhstatus_u.fhs_fhandle, ^~~~~~~~~~ In file included from nfsbug.c:49:0: nfs_prot.h:321:11: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char *' attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~~ nfsbug.c:423:3: warning: implicit declaration of function 'srandom' [-Wimplicit-function-declaration] srandom(1); ^~~~~~~ nfsbug.c:425:33: warning: implicit declaration of function 'random'; did you mean 'rindex'? [-Wimplicit-function-declaration] for (n = frpid; n--; ) (void) random(); ^~~~~~ rindex nfsbug.c:440:28: warning: passing argument 1 of 'nfsproc_getattr_2' from incompatible pointer type [-Wincompatible-pointer-types] res = nfsproc_getattr_2(handle, nfsclient); ^~~~~~ In file included from nfsbug.c:49:0: nfs_prot.h:321:11: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char *' attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~~ nfsbug.c: At top level: nfsbug.c:463:1: warning: return type defaults to 'int' [-Wimplicit-int] exercise(handle, client, host, dir) ^~~~~~~~ nfsbug.c: In function 'exercise': nfsbug.c:472:9: warning: implicit declaration of function 'uidbug'; did you mean 'nfsbug'? [-Wimplicit-function-declaration] if (uidbug(handle, client)) ^~~~~~ nfsbug nfsbug.c:474:9: warning: implicit declaration of function 'mknodbug'; did you mean 'mknodat'? [-Wimplicit-function-declaration] if (mknodbug(handle, client)) ^~~~~~~~ mknodat nfsbug.c:476:9: warning: implicit declaration of function 'cdbug'; did you mean 'nfsbug'? [-Wimplicit-function-declaration] if (cdbug(handle, client)) ^~~~~ nfsbug nfsbug.c: In function 'mknodbug': nfsbug.c:550:30: warning: passing argument 1 of 'nfsproc_getattr_2' from incompatible pointer type [-Wincompatible-pointer-types] ares = nfsproc_getattr_2(handle, client); ^~~~~~ In file included from nfsbug.c:49:0: nfs_prot.h:321:11: note: expected 'nfs_fh * {aka struct nfs_fh *}' but argument is of type 'char (*)[32]' attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *); ^~~~~~~~~~~~~~~~~ nfsbug.c: In function 'pmap_mnt': nfsbug.c:703:7: warning: passing argument 5 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsbug.c:21: /usr/include/rpc/pmap_clnt.h:73:23: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *, const void *)}' but argument is of type 'bool_t (*)(XDR *, char **) {aka int (*)(struct __rpc_xdr *, char **)}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsbug.c:703:20: warning: passing argument 6 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsbug.c:21: /usr/include/rpc/pmap_clnt.h:73:23: note: expected '__caddr_t {aka char *}' but argument is of type 'char **' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsbug.c:703:26: warning: passing argument 7 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^~~~~~~~~~~~ In file included from /usr/include/rpc/rpc.h:72:0, from nfsbug.c:21: /usr/include/rpc/pmap_clnt.h:73:23: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *, const void *)}' but argument is of type 'bool_t (*)(XDR *, fhstatus *) {aka int (*)(struct __rpc_xdr *, struct fhstatus *)}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsbug.c:703:40: warning: passing argument 8 of 'pmap_rmtcall' from incompatible pointer type [-Wincompatible-pointer-types] xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) { ^ In file included from /usr/include/rpc/rpc.h:72:0, from nfsbug.c:21: /usr/include/rpc/pmap_clnt.h:73:23: note: expected '__caddr_t {aka char *}' but argument is of type 'fhstatus * {aka struct fhstatus *}' extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, ^~~~~~~~~~~~ nfsbug.c: In function 'create_unix_auth': nfsbug.c:800:9: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] if (gethostname(machname, MAX_MACHINE_NAME) == -1) { ^~~~~~~~~~~ gethostbyname --- nfsbug --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -o nfsbug mount_clnt.o mount_xdr.o nfs_prot_clnt.o nfs_prot_xdr.o nfsbug.o ld: nfsbug.o: in function `nfsbug': nfsbug.c:(.text+0xdcf): warning: warning: reference to compatibility srandom(); include for correct reference --- nfsshell --- gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -O2 -I. -o nfsshell nfsshell.o nfs_prot_clnt.o nfs_prot_xdr.o mount_clnt.o mount_xdr.o