=> Bootstrap dependency digest>=20010302: found digest-20121220
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for nfsshell-1.0nb1
--- nfs_prot_clnt.c ---
--- nfs_prot_xdr.c ---
--- nfs_prot_clnt.c ---
rpcgen -C nfs_prot.x
--- nfs_prot_xdr.c ---
rpcgen -C nfs_prot.x
--- mount_clnt.c ---
rpcgen -C mount.x
--- mount_xdr.c ---
rpcgen -C mount.x
--- nfsbug.o ---
--- nfsshell.o ---
--- nfsbug.o ---
gcc -O2 -O2 -I.  -c nfsbug.c
--- nfsshell.o ---
gcc -O2 -O2 -I.  -c nfsshell.c
nfsshell.c:36:34: error: a parameter list without types is only allowed in a function definition
AUTH * MYauthunix_create_default(uid, gid);
                                 ^
--- nfsbug.o ---
nfsbug.c:115:9: warning: 'MOUNT_UFS' macro redefined
#define MOUNT_UFS       1
        ^
/usr/include/sys/mount.h:67:9: note: previous definition is here
#define MOUNT_UFS       MOUNT_FFS       /* for compatibility */
        ^
nfsbug.c:116:9: warning: 'MOUNT_NFS' macro redefined
#define MOUNT_NFS       2
        ^
/usr/include/sys/mount.h:68:9: note: previous definition is here
#define MOUNT_NFS       "nfs"           /* Network Filesystem */
        ^
--- nfsshell.o ---
nfsshell.c:139:7: warning: incompatible redeclaration of library function 'malloc'
char *malloc();
      ^
nfsshell.c:139:7: note: 'malloc' is a builtin with type 'void *(unsigned long)'
nfsshell.c:140:7: warning: incompatible redeclaration of library function 'calloc'
char *calloc();
      ^
nfsshell.c:140:7: note: 'calloc' is a builtin with type 'void *(unsigned long, unsigned long)'
nfsshell.c:141:7: warning: incompatible redeclaration of library function 'realloc'
char *realloc();
      ^
nfsshell.c:141:7: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)'
nfsshell.c:148:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc, argv)
^~~~
--- nfsbug.o ---
nfsbug.c:157:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc, argv)
^~~~
--- nfsshell.o ---
nfsshell.c:157:19: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]
    while ((opt = getopt(argc, argv, "vi")) != EOF) {
                  ^
--- nfsbug.o ---
nfsbug.c:165:19: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]
    while ((opt = getopt(argc, argv, "mphv")) != EOF) {
                  ^
--- nfsshell.o ---
nfsshell.c:167:6: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'
            exit(1);
            ^
nfsshell.c:167:6: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
nfsshell.c:177:13: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration]
        if ((cmd = command(argvec[0])) == CMD_QUIT)
                   ^
nfsshell.c:181:6: warning: implicit declaration of function 'do_host' is invalid in C99 [-Wimplicit-function-declaration]
            do_host(argcount, argvec);
            ^
nfsshell.c:184:6: warning: implicit declaration of function 'do_setid' is invalid in C99 [-Wimplicit-function-declaration]
            do_setid(&uid, argcount, argvec);
            ^
nfsshell.c:190:6: warning: implicit declaration of function 'do_cd' is invalid in C99 [-Wimplicit-function-declaration]
            do_cd(argcount, argvec);
            ^
nfsshell.c:193:6: warning: implicit declaration of function 'do_lcd' is invalid in C99 [-Wimplicit-function-declaration]
            do_lcd(argcount, argvec);
            ^
nfsshell.c:196:6: warning: implicit declaration of function 'do_cat' is invalid in C99 [-Wimplicit-function-declaration]
            do_cat(argcount, argvec);
            ^
nfsshell.c:199:6: warning: implicit declaration of function 'do_ls' is invalid in C99 [-Wimplicit-function-declaration]
            do_ls(argcount, argvec);
            ^
nfsshell.c:202:6: warning: implicit declaration of function 'do_get' is invalid in C99 [-Wimplicit-function-declaration]
            do_get(argcount, argvec);
            ^
nfsshell.c:205:6: warning: implicit declaration of function 'do_df' is invalid in C99 [-Wimplicit-function-declaration]
            do_df(argcount, argvec);
            ^
nfsshell.c:208:6: warning: implicit declaration of function 'do_rm' is invalid in C99 [-Wimplicit-function-declaration]
            do_rm(argcount, argvec);
            ^
nfsshell.c:211:6: warning: implicit declaration of function 'do_ln' is invalid in C99 [-Wimplicit-function-declaration]
            do_ln(argcount, argvec);
            ^
nfsshell.c:214:6: warning: implicit declaration of function 'do_mv' is invalid in C99 [-Wimplicit-function-declaration]
            do_mv(argcount, argvec);
            ^
--- nfsbug.o ---
nfsbug.c:194:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'
    exit(1);
    ^
--- nfsshell.o ---
nfsshell.c:217:6: warning: implicit declaration of function 'do_mkdir' is invalid in C99 [-Wimplicit-function-declaration]
--- nfsbug.o ---
nfsbug.c:194:5: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
--- nfsshell.o ---
            do_mkdir(argcount, argvec);
            ^
nfsshell.c:220:6: warning: implicit declaration of function 'do_rmdir' is invalid in C99 [-Wimplicit-function-declaration]
            do_rmdir(argcount, argvec);
            ^
nfsshell.c:223:6: warning: implicit declaration of function 'do_chmod' is invalid in C99 [-Wimplicit-function-declaration]
            do_chmod(argcount, argvec);
            ^
nfsshell.c:226:6: warning: implicit declaration of function 'do_chown' is invalid in C99 [-Wimplicit-function-declaration]
            do_chown(argcount, argvec);
            ^
nfsshell.c:229:6: warning: implicit declaration of function 'do_put' is invalid in C99 [-Wimplicit-function-declaration]
            do_put(argcount, argvec);
            ^
nfsshell.c:232:6: warning: implicit declaration of function 'do_handle' is invalid in C99 [-Wimplicit-function-declaration]
            do_handle(argcount, argvec);
            ^
nfsshell.c:235:6: warning: implicit declaration of function 'do_mknod' is invalid in C99 [-Wimplicit-function-declaration]
            do_mknod(argcount, argvec);
            ^
nfsshell.c:238:6: warning: implicit declaration of function 'do_mroot' is invalid in C99 [-Wimplicit-function-declaration]
            do_mroot(&uid, argcount, argvec);
            ^
nfsshell.c:241:6: warning: implicit declaration of function 'do_mount' is invalid in C99 [-Wimplicit-function-declaration]
            do_mount(argcount, argvec);
            ^
nfsshell.c:244:6: warning: implicit declaration of function 'do_umount' is invalid in C99 [-Wimplicit-function-declaration]
            do_umount(argcount, argvec);
            ^
nfsshell.c:247:6: warning: implicit declaration of function 'do_umountall' is invalid in C99 [-Wimplicit-function-declaration]
            do_umountall(argcount, argvec);
            ^
nfsshell.c:250:6: warning: implicit declaration of function 'do_export' is invalid in C99 [-Wimplicit-function-declaration]
            do_export(argcount, argvec);
            ^
nfsshell.c:253:6: warning: implicit declaration of function 'do_dump' is invalid in C99 [-Wimplicit-function-declaration]
            do_dump(argcount, argvec);
            ^
nfsshell.c:256:6: warning: implicit declaration of function 'do_status' is invalid in C99 [-Wimplicit-function-declaration]
            do_status(argcount, argvec);
            ^
nfsshell.c:259:6: warning: implicit declaration of function 'do_help' is invalid in C99 [-Wimplicit-function-declaration]
            do_help(argcount, argvec);
            ^
--- nfsbug.o ---
nfsbug.c:238:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
           close(sock);
           ^
--- nfsshell.o ---
nfsshell.c:263:3: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration]
                system(buffer + 1);
                ^
nfsshell.c:273:21: warning: implicit declaration of function 'close_mount' is invalid in C99 [-Wimplicit-function-declaration]
    if (remotehost) close_mount();
                    ^
nfsshell.c:334:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_host(argc, argv)
^~~~~~~
nfsshell.c:341:2: warning: implicit declaration of function 'open_mount' is invalid in C99 [-Wimplicit-function-declaration]
        open_mount(argv[1]);
        ^
nfsshell.c:347:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_setid(var, argc, argv)
^~~~~~~~
nfsshell.c:351:24: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
    *var = argc == 2 ? atoi(argv[1]) : -2;
                       ^
nfsshell.c:361:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_cd(argc, argv)
^~~~~
nfsshell.c:373:2: error: non-void function 'do_cd' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:379:2: error: non-void function 'do_cd' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:402:6: error: non-void function 'do_cd' should return a value [-Wreturn-type]
            return;
            ^
nfsshell.c:406:6: error: non-void function 'do_cd' should return a value [-Wreturn-type]
            return;
            ^
nfsshell.c:410:6: error: non-void function 'do_cd' should return a value [-Wreturn-type]
            return;
            ^
nfsshell.c:420:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_lcd(argc, argv)
^~~~~~
nfsshell.c:427:10: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration]
            if (chdir(home) != 0) perror("lcd");
                ^
nfsshell.c:435:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_cat(argc, argv)
^~~~~~
nfsshell.c:447:2: error: non-void function 'do_cat' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:451:2: error: non-void function 'do_cat' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:459:2: error: non-void function 'do_cat' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:463:2: error: non-void function 'do_cat' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:467:2: error: non-void function 'do_cat' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:490:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_ls(argc, argv)
^~~~~
nfsshell.c:500:2: error: non-void function 'do_ls' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:507:10: warning: implicit declaration of function 'getdirentries' is invalid in C99 [-Wimplicit-function-declaration]
    if (!getdirentries(directory_handle, &table, &ptr, 20))
         ^
nfsshell.c:508:2: error: non-void function 'do_ls' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:510:7: warning: implicit declaration of function 'match' is invalid in C99 [-Wimplicit-function-declaration]
        if (!match(*p, argc, argv)) continue;
             ^
nfsshell.c:512:6: warning: implicit declaration of function 'printfilestatus' is invalid in C99 [-Wimplicit-function-declaration]
            printfilestatus(*p);
            ^
nfsshell.c:515:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
        free(*p);
        ^
nfsshell.c:523:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
printfilestatus(char *name)
^~~~~~~~~~~~~~~
nfsshell.c:534:2: error: non-void function 'printfilestatus' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:538:2: error: non-void function 'printfilestatus' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:588:5: warning: implicit declaration of function 'writefiledate' is invalid in C99 [-Wimplicit-function-declaration]
    writefiledate(res->diropres_u.diropres.attributes.ctime.seconds);
    ^
nfsshell.c:597:6: error: non-void function 'printfilestatus' should return a value [-Wreturn-type]
            return;
            ^
nfsshell.c:601:6: error: non-void function 'printfilestatus' should return a value [-Wreturn-type]
            return;
            ^
nfsshell.c:628:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_get(argc, argv)
^~~~~~
nfsshell.c:645:2: error: non-void function 'do_get' should return a value [-Wreturn-type]
        return;
        ^
nfsshell.c:653:2: error: non-void function 'do_get' should return a value [-Wreturn-type]
        return;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- nfsbug.o ---
nfsbug.c:333:27: warning: incompatible pointer types passing 'fhandle' (aka 'char [32]') to parameter of type 'nfs_fh *' (aka 'struct nfs_fh *') [-Wincompatible-pointer-types]
                res = nfsproc_getattr_2(mountpoint->fhstatus_u.fhs_fhandle,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./nfs_prot.h:555:45: note: passing argument to parameter here
extern  attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *);
                                            ^
nfsbug.c:341:7: warning: implicit declaration of function 'exercise' is invalid in C99 [-Wimplicit-function-declaration]
                    exercise(mountpoint->fhstatus_u.fhs_fhandle, nfsclient,
                    ^
nfsbug.c:344:38: warning: invalid conversion specifier '
' [-Wformat-invalid-specifier]
                    printf("Handle for %s failed: %\n",
                                                  ~^
nfsbug.c:363:27: warning: incompatible pointer types passing 'fhandle' (aka 'char [32]') to parameter of type 'nfs_fh *' (aka 'struct nfs_fh *') [-Wincompatible-pointer-types]
                res = nfsproc_getattr_2(mountpoint->fhstatus_u.fhs_fhandle,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./nfs_prot.h:555:45: note: passing argument to parameter here
extern  attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *);
                                            ^
nfsbug.c:423:3: warning: implicit declaration of function 'srandom' is invalid in C99 [-Wimplicit-function-declaration]
                srandom(1);
                ^
nfsbug.c:425:33: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration]
                for (n = frpid; n--; ) (void) random();
                                              ^
nfsbug.c:440:28: warning: incompatible pointer types passing 'fhandle' (aka 'char [32]') to parameter of type 'nfs_fh *' (aka 'struct nfs_fh *') [-Wincompatible-pointer-types]
                        res = nfsproc_getattr_2(handle, nfsclient);
                                                ^~~~~~
./nfs_prot.h:555:45: note: passing argument to parameter here
extern  attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *);
                                            ^
nfsbug.c:463:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
exercise(handle, client, host, dir)
^~~~~~~~
nfsbug.c:472:9: warning: implicit declaration of function 'uidbug' is invalid in C99 [-Wimplicit-function-declaration]
    if (uidbug(handle, client))
        ^
nfsbug.c:474:9: warning: implicit declaration of function 'mknodbug' is invalid in C99 [-Wimplicit-function-declaration]
    if (mknodbug(handle, client))
        ^
nfsbug.c:476:9: warning: implicit declaration of function 'cdbug' is invalid in C99 [-Wimplicit-function-declaration]
    if (cdbug(handle, client))
        ^
nfsbug.c:478:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
nfsbug.c:550:30: warning: incompatible pointer types passing 'fhandle *' (aka 'char (*)[32]') to parameter of type 'nfs_fh *' (aka 'struct nfs_fh *') [-Wincompatible-pointer-types]
    ares = nfsproc_getattr_2(handle, client);
                             ^~~~~~
./nfs_prot.h:555:45: note: passing argument to parameter here
extern  attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *);
                                            ^
nfsbug.c:703:7: warning: incompatible pointer types passing 'bool_t (XDR *, dirpath *)' to parameter of type 'xdrproc_t' (aka 'bool_t (*)(XDR *, const void *)') [-Wincompatible-pointer-types]
      xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) {
      ^~~~~~~~~~~
/usr/include/rpc/pmap_clnt.h:75:15: note: passing argument to parameter here
                                        xdrproc_t, caddr_t,
                                                 ^
nfsbug.c:703:20: warning: incompatible pointer types passing 'dirpath *' (aka 'char **') to parameter of type '__caddr_t' (aka 'char *'); dereference with * [-Wincompatible-pointer-types]
      xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) {
                   ^~~~
                   *
/usr/include/rpc/pmap_clnt.h:75:24: note: passing argument to parameter here
                                        xdrproc_t, caddr_t,
                                                          ^
nfsbug.c:703:26: warning: incompatible pointer types passing 'bool_t (XDR *, fhstatus *)' to parameter of type 'xdrproc_t' (aka 'bool_t (*)(XDR *, const void *)') [-Wincompatible-pointer-types]
      xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) {
                         ^~~~~~~~~~~~
/usr/include/rpc/pmap_clnt.h:76:15: note: passing argument to parameter here
                                        xdrproc_t, caddr_t,
                                                 ^
nfsbug.c:703:40: warning: incompatible pointer types passing 'fhstatus *' (aka 'struct fhstatus *') to parameter of type '__caddr_t' (aka 'char *') [-Wincompatible-pointer-types]
      xdr_dirpath, argp, xdr_fhstatus, &res, timeout, &port)) != RPC_SUCCESS) {
                                       ^~~~
/usr/include/rpc/pmap_clnt.h:76:24: note: passing argument to parameter here
                                        xdrproc_t, caddr_t,
                                                          ^
--- nfsshell.o ---
51 warnings and 20 errors generated.
--- nfsbug.o ---
nfsbug.c:800:9: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration]
    if (gethostname(machname, MAX_MACHINE_NAME) == -1) {
        ^
--- nfsshell.o ---
*** [nfsshell.o] Error code 1

make: stopped in /scratch/security/nfsbug/work/nfsbug
--- nfsbug.o ---
24 warnings generated.
1 error

make: stopped in /scratch/security/nfsbug/work/nfsbug
*** Error code 2

Stop.
make: stopped in /bulk-data/pkgsrc/security/nfsbug
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/security/nfsbug
