=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for su2-1.3
--- su2.1 ---
--- su2 ---
--- su2.1 ---
sed 's,/etc/super,/opt/pkg/etc/super,g' <su2.man >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]
#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'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main (argc, argv, envp)
^
int
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: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    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]
    Gid = (int) getgid ();
                ^
su2.c:350:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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]
        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 C2x [-Wdeprecated-non-prototype]
        FullTTY = ttyname (ValidTTY);
                          ^
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: call to undeclared function 'nice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                    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]
                (void) exit (1);
                       ^
su2.c:587:10: note: include the header <stdlib.h> 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 C2x [-Wdeprecated-non-prototype]
        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]
            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 C2x [-Wdeprecated-non-prototype]
    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]
        FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1);
                                          ^
su2.c:632:36: note: include the header <string.h> 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 C2x [-Wdeprecated-non-prototype]
        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 C2x [-Wdeprecated-non-prototype]
    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 C2x [-Wdeprecated-non-prototype]
    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 C2x [-Wdeprecated-non-prototype]
        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]
            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:733:21: warning: passing arguments to 'NameCheck' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                switch (NameCheck (f, FromUserName)) {
                                  ^
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:779:21: warning: passing arguments to 'getpass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        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]
                strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) {
                ^
su2.c:786:3: note: include the header <string.h> 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 C2x [-Wdeprecated-non-prototype]
                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 C2x [-Wdeprecated-non-prototype]
            (void) AddSuLog (FromUserName, NewUserName, "-");
                            ^
su2.c:793:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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 C2x [-Wdeprecated-non-prototype]
        (void) AddSuLog (FromUserName, NewUserName, "-");
                        ^
su2.c:806:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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 C2x [-Wdeprecated-non-prototype]
    (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 C2x [-Wdeprecated-non-prototype]
        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]
        (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:882:20: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    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 C2x [-Wdeprecated-non-prototype]
        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 C2x [-Wdeprecated-non-prototype]
        NewLogname = malloc ((unsigned) strlen (pw -> pw_name) + 9);
                            ^
su2.c:909:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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 C2x [-Wdeprecated-non-prototype]
        NewShell = malloc ((unsigned) strlen (pw -> pw_shell) + 7);
                          ^
su2.c:917:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#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 C2x [-Wdeprecated-non-prototype]
        newenvp = (char **) malloc ((unsigned) ((i + 20) * sizeof (char *)));
                                   ^
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: 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]
            if (strncmp (*neptr, "SHELL=", 6) == 0) {
                ^
su2.c:954:10: note: include the header <string.h> 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 C2x [-Wdeprecated-non-prototype]
                    *neptr = malloc ((unsigned) strlen (DefaultShell) + 7);
                                    ^
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:1010:16: warning: passing arguments to 'ChangePS1' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
            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 C2x [-Wdeprecated-non-prototype]
                *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 C2x [-Wdeprecated-non-prototype]
                *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 C2x [-Wdeprecated-non-prototype]
            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 C2x [-Wdeprecated-non-prototype]
            *EnvPath = malloc ((unsigned) strlen (*EnvUserPath) + 0);
                              ^
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: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared library function 'vfork' with type 'int (void)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (Flag_x || ((pid = vfork ()) == 0)) {
                          ^
su2.c:1153:27: note: include the header <unistd.h> 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]
        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: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            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]
        (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]
        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 C2x [-Wdeprecated-non-prototype]
            if (ModifyUtmp (OldUtmpName)) {
                           ^
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: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-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:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main (argc, argv, envp)
^
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/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.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/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.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:1362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
enum NameCheck_ NameCheck ();
                ^
su2.c:1432:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
    struct utmp    Utmp;  /* for /etc/utmp manipulation */
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated'
#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]
    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]
    (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]
    (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]
    (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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype]
    struct tm  *localtime ();
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/time.h:114:12: note: conflicting prototype is here
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 C2x [-Wdeprecated-non-prototype]
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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
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 in /Users/pbulk/build/sysutils/su2/work/su2-1.3
1 error

bmake: stopped in /Users/pbulk/build/sysutils/su2/work/su2-1.3
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/sysutils/su2
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/sysutils/su2