=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/su2", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for su2-1.3 --- su2.1 --- --- su2 --- --- su2.1 --- sed 's,/etc/super,/opt/pkg/etc/super,g' su2.1 --- su2 --- gcc -pipe -Os -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] 100 | #else DEBUG | ^ | // su2.c:102:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 102 | #endif DEBUG | ^ | // su2.c:106:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 106 | #endif SAFE | ^ | // su2.c:110:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 110 | #endif SUPERUSERS | ^ | // su2.c:115:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 115 | #endif NOSU2RC | ^ | // su2.c:123:8: warning: extra tokens at end of #else directive [-Wextra-tokens] 123 | # else BSD | ^ | // su2.c:125:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] 125 | # endif BSD | ^ | // su2.c:126:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 126 | #endif PATH | ^ | // su2.c:131:8: warning: extra tokens at end of #else directive [-Wextra-tokens] 131 | # else BSD | ^ | // su2.c:133:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] 133 | # endif BSD | ^ | // su2.c:134:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 134 | #endif ROOTPATH | ^ | // su2.c:139:8: warning: extra tokens at end of #else directive [-Wextra-tokens] 139 | # else BSD | ^ | // su2.c:141:9: warning: extra tokens at end of #endif directive [-Wextra-tokens] 141 | # endif BSD | ^ | // su2.c:142:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 142 | #endif DEFAULTSHELL | ^ | // su2.c:163:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 163 | #endif IOCTL | ^ | // su2.c:183:9: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] 183 | 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] 205 | #endif BSD | ^ | // su2.c:209:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 209 | #endif NOVFORK | ^ | // su2.c:248:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 248 | #endif DEBUG | ^ | // su2.c:250:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 250 | main (argc, argv, envp) | ^ | int su2.c:273:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 273 | #endif NOCHMODTTY | ^ | // su2.c:284:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 284 | #endif IOCTL | ^ | // su2.c:301:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 301 | #endif NOSU2RC | ^ | // su2.c:334:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 334 | #endif DEBUG | ^ | // su2.c:340:17: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | Uid = (int) getuid (); | ^ su2.c:341:17: warning: call to undeclared function 'getgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 341 | Gid = (int) getgid (); | ^ su2.c:350:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 350 | #endif SUPERDEBUG | ^ | // su2.c:358:6: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 358 | if (isatty (i)) { | ^ su2.c:369:20: warning: passing arguments to 'ttyname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | FullTTY = ttyname (ValidTTY); | ^ su2.c:388:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 388 | #endif FULLPATH | ^ | // su2.c:433:8: warning: extra tokens at end of #else directive [-Wextra-tokens] 433 | #else DEBUG | ^ | // su2.c:437:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 437 | #endif DEBUG | ^ | // su2.c:553:11: warning: call to undeclared function 'nice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 553 | if (nice (NiceInc) == -1) | ^ su2.c:587:10: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 587 | (void) exit (1); | ^ su2.c:587:10: note: include the header or explicitly provide a declaration for 'exit' su2.c:593:17: warning: passing arguments to 'ModifyUtmp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | if (ModifyUtmp (FromUserName)) | ^ su2.c:599:10: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 599 | if (chown (FullTTY, Uid, Gid)) | ^ su2.c:617:29: warning: passing arguments to 'mycuserid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | OldUtmpName = mycuserid ((char *) 0); | ^ su2.c:632:36: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 632 | FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); | ^ su2.c:632:36: note: include the header or explicitly provide a declaration for 'strlen' su2.c:632:24: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); | ^ su2.c:660:28: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | MyCryptPasswd = malloc ((unsigned) strlen (pw -> pw_passwd) + 1); | ^ su2.c:687:23: warning: passing arguments to 'NameCheck' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | switch (NameCheck (f, FromUserName)) { | ^ su2.c:720:30: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 720 | su2rcFile = (char *) malloc ((unsigned) strlen (pw -> pw_dir) + | ^ su2.c:732:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 732 | if (f = fopen (su2rcFile, "r")) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ su2.c:732:12: note: place parentheses around the assignment to silence this warning 732 | if (f = fopen (su2rcFile, "r")) | ^ | ( ) su2.c:732:12: note: use '==' to turn this assignment into an equality comparison 732 | if (f = fopen (su2rcFile, "r")) | ^ | == su2.c:733:21: warning: passing arguments to 'NameCheck' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | switch (NameCheck (f, FromUserName)) { | ^ su2.c:767:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 767 | #endif NOSU2RC | ^ | // su2.c:768:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 768 | #endif NOUSERCHECK | ^ | // su2.c:779:21: warning: passing arguments to 'getpass' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | MyPasswd = getpass (Buffer); | ^ su2.c:786:3: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 786 | strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { | ^ su2.c:786:3: note: include the header or explicitly provide a declaration for 'strcmp' su2.c:786:17: warning: passing arguments to 'crypt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { | ^ su2.c:787:22: warning: passing arguments to 'AddSuLog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | (void) AddSuLog (FromUserName, NewUserName, "-"); | ^ su2.c:793:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 793 | #endif NOPASSWDCHECK | ^ | // su2.c:797:18: warning: passing arguments to 'AddSuLog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | (void) AddSuLog (FromUserName, NewUserName, "-"); | ^ su2.c:806:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 806 | #endif NOUSERCHECK | ^ | // su2.c:820:21: warning: passing arguments to 'AddSuLog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | (void) AddSuLog (FromUserName, NewUserName, "+"); | ^ su2.c:822:17: warning: passing arguments to 'ModifyUtmp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | if (ModifyUtmp (NewUserName)) { | ^ su2.c:850:9: warning: call to undeclared function 'nice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 850 | (void) nice (-NiceInc); | ^ su2.c:859:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 859 | if (c = strrchr (pw -> pw_shell, '/')) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:859:11: note: place parentheses around the assignment to silence this warning 859 | if (c = strrchr (pw -> pw_shell, '/')) | ^ | ( ) su2.c:859:11: note: use '==' to turn this assignment into an equality comparison 859 | if (c = strrchr (pw -> pw_shell, '/')) | ^ | == su2.c:870:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 870 | if (c = strrchr (pw -> pw_shell, '/')) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:870:8: note: place parentheses around the assignment to silence this warning 870 | if (c = strrchr (pw -> pw_shell, '/')) | ^ | ( ) su2.c:870:8: note: use '==' to turn this assignment into an equality comparison 870 | if (c = strrchr (pw -> pw_shell, '/')) | ^ | == su2.c:882:20: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | Shell = malloc ((unsigned) strlen (c) + 2); | ^ su2.c:898:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 898 | NewHomeDir = malloc ((unsigned) strlen (pw -> pw_dir) + 6); | ^ su2.c:907:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | NewLogname = malloc ((unsigned) strlen (pw -> pw_name) + 9); | ^ su2.c:909:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 909 | #endif BSD | ^ | // su2.c:911:20: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | NewShell = malloc ((unsigned) strlen (pw -> pw_shell) + 7); | ^ su2.c:917:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 917 | #endif BSD | ^ | // su2.c:932:29: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 932 | newenvp = (char **) malloc ((unsigned) ((i + 20) * sizeof (char *))); | ^ su2.c:943:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 943 | #endif CHANGEHOME | ^ | // su2.c:949:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 949 | #endif CHANGEUSER | ^ | // su2.c:954:10: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 954 | if (strncmp (*neptr, "SHELL=", 6) == 0) { | ^ su2.c:954:10: note: include the header or explicitly provide a declaration for 'strncmp' su2.c:956:23: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 956 | *neptr = malloc ((unsigned) strlen (DefaultShell) + 7); | ^ su2.c:964:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 964 | #endif CHANGESHELL | ^ | // su2.c:966:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 966 | if (Shell = strrchr (ShellPointer, '/')) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:966:13: note: place parentheses around the assignment to silence this warning 966 | if (Shell = strrchr (ShellPointer, '/')) | ^ | ( ) su2.c:966:13: note: use '==' to turn this assignment into an equality comparison 966 | if (Shell = strrchr (ShellPointer, '/')) | ^ | == su2.c:1010:16: warning: passing arguments to 'ChangePS1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1010 | ChangePS1 (*EnvPS1, ChangeType, Shell); | ^ su2.c:1031:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1031 | *EnvUserPath = malloc ((unsigned) strlen (*EnvPath) + 2); | ^ su2.c:1042:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | *EnvPath = malloc ((unsigned) strlen (*EnvRootPath) - 1); | ^ su2.c:1056:16: warning: passing arguments to 'CleanPath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | CleanPath ((*EnvPath) + 5); | ^ su2.c:1070:24: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1070 | *EnvPath = malloc ((unsigned) strlen (*EnvUserPath) + 0); | ^ su2.c:1105:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1105 | #endif IOCTL | ^ | // su2.c:1112:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1112 | if (TTYStatError = stat (FullTTY, &st)) { | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ su2.c:1112:19: note: place parentheses around the assignment to silence this warning 1112 | if (TTYStatError = stat (FullTTY, &st)) { | ^ | ( ) su2.c:1112:19: note: use '==' to turn this assignment into an equality comparison 1112 | if (TTYStatError = stat (FullTTY, &st)) { | ^ | == su2.c:1127:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1127 | #endif NOCHMODTTY | ^ | // su2.c:1141:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 1141 | #else NOCHOWNTTY | ^ | // su2.c:1142:10: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1142 | if (chown (FullTTY, pw -> pw_uid, pw -> pw_gid)) | ^ su2.c:1144:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1144 | #endif NOCHOWNTTY | ^ | // su2.c:1153:27: warning: call to undeclared library function 'vfork' with type 'int (void)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1153 | 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: call to undeclared function 'setgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1162 | if (setgid (pw -> pw_gid)) { | ^ su2.c:1172:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1172 | #endif defined(BSD42) || defined(INITGROUPS) | ^ | // su2.c:1178:6: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1178 | if (setuid (pw -> pw_uid)) { | ^ su2.c:1192:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1192 | #endif DEBUG | ^ | // su2.c:1200:10: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1200 | if (chdir (NewHomeDir + 5) < 0) | ^ su2.c:1218:9: warning: call to undeclared function 'execve'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1218 | (void) execve (ShellPointer, newargv, newenvp); | ^ su2.c:1231:15: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1231 | while (((i = wait (&Status)) != pid) && (i != -1)); | ^ su2.c:1240:21: warning: passing arguments to 'ModifyUtmp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1240 | if (ModifyUtmp (OldUtmpName)) { | ^ su2.c:1262:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1262 | #endif IOCTL | ^ | // su2.c:1273:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1273 | #endif NOCHMODTTY | ^ | // su2.c:1278:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 1278 | #else NOCHOWNTTY | ^ | // su2.c:1279:10: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1279 | if (chown (FullTTY, TTYuid, TTYgid)) | ^ su2.c:1281:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1281 | #endif NOCHOWNTTY | ^ | // su2.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | main (argc, argv, envp) | ^ su2.c:1322:22: warning: 'utmp' is deprecated [-Wdeprecated-declarations] 1322 | static char name[MAXNAME + 1]; | ^ su2.c:1310:33: note: expanded from macro 'MAXNAME' 1310 | #define MAXNAME sizeof(((struct utmp *)nptr)->ut_name) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here 97 | } __deprecated; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' 214 | #define __deprecated __attribute__((__deprecated__)) | ^ su2.c:1336:26: warning: 'utmp' is deprecated [-Wdeprecated-declarations] 1336 | strncpy (name, nptr, MAXNAME); | ^ su2.c:1310:33: note: expanded from macro 'MAXNAME' 1310 | #define MAXNAME sizeof(((struct utmp *)nptr)->ut_name) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here 97 | } __deprecated; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' 214 | #define __deprecated __attribute__((__deprecated__)) | ^ su2.c:1340:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1340 | #endif BSD || hpux | ^ | // su2.c:1362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | NameCheck (f, FromUserName) | ^ su2.c:224:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 224 | enum NameCheck_ NameCheck (); | ^ su2.c:1432:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations] 1432 | struct utmp Utmp; /* for /etc/utmp manipulation */ | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here 97 | } __deprecated; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' 214 | #define __deprecated __attribute__((__deprecated__)) | ^ su2.c:1445:12: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1445 | while (read (fd, (char *) & Utmp, sizeof (Utmp)) == sizeof (Utmp)) | ^ su2.c:1451:12: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1451 | (void) close (fd); | ^ su2.c:1460:12: warning: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1460 | (void) lseek (fd, (long) - sizeof (Utmp), 1); | ^ su2.c:1475:12: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1475 | (void) write (fd, (char *) & Utmp, sizeof (Utmp)); | ^ su2.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | ModifyUtmp (NewUserName) | ^ su2.c:228:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 228 | int ModifyUtmp (); | ^ su2.c:1508:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1508 | struct tm *localtime (); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_time.h:117:12: note: conflicting prototype is here 117 | struct tm *localtime(const time_t *); | ^ su2.c:1500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1500 | AddSuLog (FromName, ToName, ChangeType) | ^ su2.c:227:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 227 | void AddSuLog (); | ^ su2.c:1565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1565 | CleanPath (Path) | ^ su2.c:225:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 225 | void CleanPath (); | ^ su2.c:1663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1663 | ChangePS1 (PS1, ChangeType, Shell) | ^ su2.c:226:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 226 | void ChangePS1 (); | ^ 116 warnings generated. ld: library 'crypt' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [su2] Error code 1 bmake: stopped making "all" in /var/tmp/work/sysutils/su2/work/su2-1.3 bmake: 1 error bmake: stopped making "all" in /var/tmp/work/sysutils/su2/work/su2-1.3 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/su2 *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/su2