=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for su2-1.3 gcc -O2 -march=i586 -DSU2LOGFILE="\"/var/log/su2.log\"" -DSUPERUSERS="\"/usr/pkg/etc/super-users\"" -DBROKENCUSERID -Wl,-R/usr/pkg/lib -o su2 su2.c -lcrypt -lcompat su2.c:100:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // su2.c:123:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // su2.c:131:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // su2.c:139:8: warning: extra tokens at end of #else directive [-Wextra-tokens] # else BSD ^ // 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 int)' su2.c:250:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main (argc, argv, envp) ^~~~ 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:358:6: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] if (isatty (i)) { ^ su2.c:433:8: warning: extra tokens at end of #else directive [-Wextra-tokens] #else 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))' (void) exit (1); ^ su2.c:587:10: note: please 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 int (const char *)' FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); ^ su2.c:632:36: note: please 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:786:3: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { ^ su2.c:786:3: note: please include the header or explicitly provide a declaration for 'strcmp' 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:954:10: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned int)' if (strncmp (*neptr, "SHELL=", 6) == 0) { ^ su2.c:954:10: note: please include the header or explicitly provide a declaration for 'strncmp' 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: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:1141:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else NOCHOWNTTY ^ // su2.c:1153:27: warning: implicitly declaring library function 'vfork' with type 'int (void)' if (Flag_x || ((pid = vfork ()) == 0)) { ^ su2.c:1153:27: note: please 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:1178:6: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] if (setuid (pw -> pw_uid)) { ^ 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:1278:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else NOCHOWNTTY ^ // 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:1475:12: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] (void) write (fd, (char *) & Utmp, sizeof (Utmp)); ^ su2.c:1520:11: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] time (&timenow); ^~~~~~~~ /usr/include/time.h:97:21: note: passing argument to parameter here time_t time(time_t *) __RENAME(__time50); ^ su2.c:1521:22: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] now = localtime (&timenow); ^~~~~~~~ 34 warnings generated. /usr/bin/ld: cannot find -lcompat clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/sysutils/su2/work/su2-1.3 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/sysutils/su2 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/sysutils/su2