=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for su2-1.3 --- su2.1 --- --- su2 --- --- su2.1 --- sed 's,/etc/super,/opt/pkg/etc/super,g' su2.1 --- su2 --- gcc -O2 -DSU2LOGFILE="\"/var/log/su2.log\"" -DSUPERUSERS="\"/opt/pkg/etc/super-users\"" -DBROKENCUSERID -L/opt/pkg/lib -o su2 su2.c -lcrypt su2.c:100:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // su2.c:102:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // su2.c:106:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif SAFE ^ // su2.c:110:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif SUPERUSERS ^ // su2.c:115:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOSU2RC ^ // su2.c:123:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // su2.c:125:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] # endif BSD ^ // su2.c:126:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PATH ^ // su2.c:131:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // su2.c:133:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] # endif BSD ^ // su2.c:134:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif ROOTPATH ^ // su2.c:139:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // su2.c:141:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] # endif BSD ^ // su2.c:142:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEFAULTSHELL ^ // su2.c:163:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif IOCTL ^ // su2.c:183:9: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc (); ^ su2.c:183:9: note: 'malloc' is a builtin with type 'void *(unsigned long)' su2.c:205:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif BSD ^ // su2.c:209:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOVFORK ^ // su2.c:248:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // su2.c:250:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main (argc, argv, envp) ^ su2.c:273:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOCHMODTTY ^ // su2.c:284:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif IOCTL ^ // su2.c:301:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOSU2RC ^ // su2.c:334:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // su2.c:340:17: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] Uid = (int) getuid (); ^ su2.c:341:17: warning: implicit declaration of function 'getgid' is invalid in C99 [-Wimplicit-function-declaration] Gid = (int) getgid (); ^ su2.c:350:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif SUPERDEBUG ^ // su2.c:358:6: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] if (isatty (i)) { ^ su2.c:388:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif FULLPATH ^ // su2.c:433:8: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // su2.c:437:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // su2.c:553:11: warning: implicit declaration of function 'nice' is invalid in C99 [-Wimplicit-function-declaration] if (nice (NiceInc) == -1) ^ su2.c:587:10: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] (void) exit (1); ^ su2.c:587:10: note: include the header or explicitly provide a declaration for 'exit' su2.c:599:10: warning: implicit declaration of function 'chown' is invalid in C99 [-Wimplicit-function-declaration] if (chown (FullTTY, Uid, Gid)) ^ su2.c:632:36: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); ^ su2.c:632:36: note: include the header or explicitly provide a declaration for 'strlen' su2.c:732:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = fopen (su2rcFile, "r")) ~~^~~~~~~~~~~~~~~~~~~~~~~~ su2.c:732:12: note: place parentheses around the assignment to silence this warning if (f = fopen (su2rcFile, "r")) ^ ( ) su2.c:732:12: note: use '==' to turn this assignment into an equality comparison if (f = fopen (su2rcFile, "r")) ^ == su2.c:767:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOSU2RC ^ // su2.c:768:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOUSERCHECK ^ // su2.c:786:3: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { ^ su2.c:786:3: note: include the header or explicitly provide a declaration for 'strcmp' su2.c:793:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOPASSWDCHECK ^ // su2.c:806:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOUSERCHECK ^ // su2.c:850:9: warning: implicit declaration of function 'nice' is invalid in C99 [-Wimplicit-function-declaration] (void) nice (-NiceInc); ^ su2.c:859:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = strrchr (pw -> pw_shell, '/')) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:859:11: note: place parentheses around the assignment to silence this warning if (c = strrchr (pw -> pw_shell, '/')) ^ ( ) su2.c:859:11: note: use '==' to turn this assignment into an equality comparison if (c = strrchr (pw -> pw_shell, '/')) ^ == su2.c:870:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = strrchr (pw -> pw_shell, '/')) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:870:8: note: place parentheses around the assignment to silence this warning if (c = strrchr (pw -> pw_shell, '/')) ^ ( ) su2.c:870:8: note: use '==' to turn this assignment into an equality comparison if (c = strrchr (pw -> pw_shell, '/')) ^ == su2.c:909:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif BSD ^ // su2.c:917:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif BSD ^ // su2.c:943:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif CHANGEHOME ^ // su2.c:949:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif CHANGEUSER ^ // su2.c:954:10: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp (*neptr, "SHELL=", 6) == 0) { ^ su2.c:954:10: note: include the header or explicitly provide a declaration for 'strncmp' su2.c:964:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif CHANGESHELL ^ // su2.c:966:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (Shell = strrchr (ShellPointer, '/')) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:966:13: note: place parentheses around the assignment to silence this warning if (Shell = strrchr (ShellPointer, '/')) ^ ( ) su2.c:966:13: note: use '==' to turn this assignment into an equality comparison if (Shell = strrchr (ShellPointer, '/')) ^ == su2.c:1105:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif IOCTL ^ // su2.c:1112:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (TTYStatError = stat (FullTTY, &st)) { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ su2.c:1112:19: note: place parentheses around the assignment to silence this warning if (TTYStatError = stat (FullTTY, &st)) { ^ ( ) su2.c:1112:19: note: use '==' to turn this assignment into an equality comparison if (TTYStatError = stat (FullTTY, &st)) { ^ == su2.c:1127:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOCHMODTTY ^ // su2.c:1141:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else NOCHOWNTTY ^ // su2.c:1142:10: warning: implicit declaration of function 'chown' is invalid in C99 [-Wimplicit-function-declaration] if (chown (FullTTY, pw -> pw_uid, pw -> pw_gid)) ^ su2.c:1144:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOCHOWNTTY ^ // su2.c:1153:27: warning: implicitly declaring library function 'vfork' with type 'int (void)' [-Wimplicit-function-declaration] if (Flag_x || ((pid = vfork ()) == 0)) { ^ su2.c:1153:27: note: include the header or explicitly provide a declaration for 'vfork' su2.c:1162:6: warning: implicit declaration of function 'setgid' is invalid in C99 [-Wimplicit-function-declaration] if (setgid (pw -> pw_gid)) { ^ su2.c:1172:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif defined(BSD42) || defined(INITGROUPS) ^ // su2.c:1178:6: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] if (setuid (pw -> pw_uid)) { ^ su2.c:1192:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // su2.c:1200:10: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir (NewHomeDir + 5) < 0) ^ su2.c:1218:9: warning: implicit declaration of function 'execve' is invalid in C99 [-Wimplicit-function-declaration] (void) execve (ShellPointer, newargv, newenvp); ^ su2.c:1231:15: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration] while (((i = wait (&Status)) != pid) && (i != -1)); ^ su2.c:1262:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif IOCTL ^ // su2.c:1273:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOCHMODTTY ^ // su2.c:1278:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else NOCHOWNTTY ^ // su2.c:1279:10: warning: implicit declaration of function 'chown' is invalid in C99 [-Wimplicit-function-declaration] if (chown (FullTTY, TTYuid, TTYgid)) ^ su2.c:1281:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif NOCHOWNTTY ^ // su2.c:1322:22: warning: 'utmp' is deprecated [-Wdeprecated-declarations] static char name[MAXNAME + 1]; ^ su2.c:1310:33: note: expanded from macro 'MAXNAME' #define MAXNAME sizeof(((struct utmp *)nptr)->ut_name) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ su2.c:1336:26: warning: 'utmp' is deprecated [-Wdeprecated-declarations] strncpy (name, nptr, MAXNAME); ^ su2.c:1310:33: note: expanded from macro 'MAXNAME' #define MAXNAME sizeof(((struct utmp *)nptr)->ut_name) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ su2.c:1340:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif BSD || hpux ^ // su2.c:1432:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp Utmp; /* for /etc/utmp manipulation */ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ su2.c:1445:12: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while (read (fd, (char *) & Utmp, sizeof (Utmp)) == sizeof (Utmp)) ^ su2.c:1451:12: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close (fd); ^ su2.c:1460:12: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration] (void) lseek (fd, (long) - sizeof (Utmp), 1); ^ su2.c:1475:12: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] (void) write (fd, (char *) & Utmp, sizeof (Utmp)); ^ 78 warnings generated. ld: library not found for -lcrypt clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [su2] Error code 1 bmake: stopped in /opt/work/sysutils/su2/work/su2-1.3 1 error bmake: stopped in /opt/work/sysutils/su2/work/su2-1.3 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/sysutils/su2 *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/sysutils/su2