=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/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 -O2 -msave-args -fno-aggressive-loop-optimizations -DSU2LOGFILE="\"/var/log/su2.log\"" -DSUPERUSERS="\"/opt/pkg/etc/super-users\"" -DBROKENCUSERID -Wl,-R/opt/pkg/lib -o su2 su2.c -lcrypt su2.c:100:7: warning: extra tokens at end of '#else' directive [-Wendif-labels] 100 | #else DEBUG | ^~~~~ su2.c:102:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 102 | #endif DEBUG | ^~~~~ su2.c:106:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 106 | #endif SAFE | ^~~~ su2.c:110:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 110 | #endif SUPERUSERS | ^~~~~~~~~~ su2.c:115:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 115 | #endif NOSU2RC | ^~~~~~~ su2.c:123:8: warning: extra tokens at end of '#else' directive [-Wendif-labels] 123 | # else BSD | ^~~ su2.c:125:9: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 125 | # endif BSD | ^~~ su2.c:126:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 126 | #endif PATH | ^~~~ su2.c:131:8: warning: extra tokens at end of '#else' directive [-Wendif-labels] 131 | # else BSD | ^~~ su2.c:133:9: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 133 | # endif BSD | ^~~ su2.c:134:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 134 | #endif ROOTPATH | ^~~~~~~~ su2.c:139:8: warning: extra tokens at end of '#else' directive [-Wendif-labels] 139 | # else BSD | ^~~ su2.c:141:9: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 141 | # endif BSD | ^~~ su2.c:142:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 142 | #endif DEFAULTSHELL | ^~~~~~~~~~~~ su2.c:163:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 163 | #endif IOCTL | ^~~~~ su2.c:183:9: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 183 | char *malloc (); | ^~~~~~ su2.c:156:1: note: 'malloc' is declared in header '' 155 | #include +++ |+#include 156 | #ifdef IOCTL su2.c:205:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 205 | #endif BSD | ^~~ su2.c:209:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 209 | #endif NOVFORK | ^~~~~~~ su2.c:211:9: warning: conflicting types for built-in function 'strchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 211 | char *strchr (); | ^~~~~~ su2.c:156:1: note: 'strchr' is declared in header '' 155 | #include +++ |+#include 156 | #ifdef IOCTL su2.c:212:9: warning: conflicting types for built-in function 'strrchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 212 | char *strrchr (); | ^~~~~~~ su2.c:212:9: note: 'strrchr' is declared in header '' su2.c:213:9: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 213 | char *strcpy (); | ^~~~~~ su2.c:213:9: note: 'strcpy' is declared in header '' su2.c:214:9: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 214 | char *strncpy (); | ^~~~~~~ su2.c:214:9: note: 'strncpy' is declared in header '' su2.c:217:9: error: conflicting types for 'cuserid'; have 'char *(void)' 217 | char *cuserid (); | ^~~~~~~ In file included from /usr/include/pwd.h:41, from su2.c:150: /usr/include/stdio.h:334:18: note: previous declaration of 'cuserid' with type 'char *(char *)' 334 | extern char *cuserid(char *); | ^~~~~~~ su2.c:248:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 248 | #endif DEBUG | ^~~~~ su2.c:250:1: error: return type defaults to 'int' [-Wimplicit-int] 250 | main (argc, argv, envp) | ^~~~ su2.c: In function 'main': su2.c:250:1: warning: old-style function definition [-Wold-style-definition] su2.c:273:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 273 | #endif NOCHMODTTY | ^~~~~~~~~~ su2.c:284:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 284 | #endif IOCTL | ^~~~~ su2.c:301:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 301 | #endif NOSU2RC | ^~~~~~~ su2.c:334:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 334 | #endif DEBUG | ^~~~~ su2.c:340:17: error: implicit declaration of function 'getuid'; did you mean 'getutid'? [-Wimplicit-function-declaration] 340 | Uid = (int) getuid (); | ^~~~~~ | getutid su2.c:341:17: error: implicit declaration of function 'getgid'; did you mean 'getutid'? [-Wimplicit-function-declaration] 341 | Gid = (int) getgid (); | ^~~~~~ | getutid su2.c:350:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 350 | #endif SUPERDEBUG | ^~~~~~~~~~ su2.c:358:13: error: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] 358 | if (isatty (i)) { | ^~~~~~ su2.c:369:19: error: too many arguments to function 'ttyname'; expected 0, have 1 369 | FullTTY = ttyname (ValidTTY); | ^~~~~~~ ~~~~~~~~ su2.c:193:9: note: declared here 193 | char *ttyname (); | ^~~~~~~ su2.c:378:11: error: too many arguments to function 'strrchr'; expected 0, have 2 378 | TTY = strrchr (FullTTY, '/') + 1; | ^~~~~~~ ~~~~~~~ su2.c:212:9: note: declared here 212 | char *strrchr (); | ^~~~~~~ su2.c:388:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 388 | #endif FULLPATH | ^~~~~~~~ su2.c:433:8: warning: extra tokens at end of '#else' directive [-Wendif-labels] 433 | #else DEBUG | ^~~~~ su2.c:437:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 437 | #endif DEBUG | ^~~~~ su2.c:553:25: error: implicit declaration of function 'nice' [-Wimplicit-function-declaration] 553 | if (nice (NiceInc) == -1) | ^~~~ su2.c:587:24: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 587 | (void) exit (1); | ^~~~ su2.c:587:24: note: include '' or provide a declaration of 'exit' su2.c:587:24: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] su2.c:587:24: note: include '' or provide a declaration of 'exit' su2.c:593:13: error: too many arguments to function 'ModifyUtmp'; expected 0, have 1 593 | if (ModifyUtmp (FromUserName)) | ^~~~~~~~~~ ~~~~~~~~~~~~ su2.c:228:9: note: declared here 228 | int ModifyUtmp (); | ^~~~~~~~~~ su2.c:599:17: error: implicit declaration of function 'chown' [-Wimplicit-function-declaration] 599 | if (chown (FullTTY, Uid, Gid)) | ^~~~~ su2.c:610:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 610 | (void) exit (0); | ^~~~ su2.c:610:16: note: include '' or provide a declaration of 'exit' su2.c:617:19: error: too many arguments to function 'mycuserid'; expected 0, have 1 617 | OldUtmpName = mycuserid ((char *) 0); | ^~~~~~~~~ ~~~~~~~~~~ su2.c:219:9: note: declared here 219 | char *mycuserid (); | ^~~~~~~~~ su2.c:624:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 624 | (void) exit (1); | ^~~~ su2.c:624:16: note: include '' or provide a declaration of 'exit' su2.c:632:43: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 632 | FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); | ^~~~~~ su2.c:632:43: note: include '' or provide a declaration of 'strlen' su2.c:632:43: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] su2.c:632:43: note: include '' or provide a declaration of 'strlen' su2.c:632:24: error: too many arguments to function 'malloc'; expected 0, have 1 632 | FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:633:16: error: too many arguments to function 'strcpy'; expected 0, have 2 633 | (void) strcpy (FromUserName, OldUtmpName); | ^~~~~~ ~~~~~~~~~~~~ su2.c:213:9: note: declared here 213 | char *strcpy (); | ^~~~~~ su2.c:643:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 643 | (void) exit (1); | ^~~~ su2.c:643:16: note: include '' or provide a declaration of 'exit' su2.c:660:40: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 660 | MyCryptPasswd = malloc ((unsigned) strlen (pw -> pw_passwd) + 1); | ^~~~~~ su2.c:660:40: note: include '' or provide a declaration of 'strlen' su2.c:660:21: error: too many arguments to function 'malloc'; expected 0, have 1 660 | MyCryptPasswd = malloc ((unsigned) strlen (pw -> pw_passwd) + 1); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:661:12: error: too many arguments to function 'strcpy'; expected 0, have 2 661 | (void) strcpy (MyCryptPasswd, pw -> pw_passwd); | ^~~~~~ ~~~~~~~~~~~~~ su2.c:213:9: note: declared here 213 | char *strcpy (); | ^~~~~~ su2.c:672:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 672 | (void) exit (1); | ^~~~ su2.c:672:16: note: include '' or provide a declaration of 'exit' su2.c:684:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 684 | (void) exit (1); | ^~~~ su2.c:684:16: note: include '' or provide a declaration of 'exit' su2.c:687:13: error: too many arguments to function 'NameCheck'; expected 0, have 2 687 | switch (NameCheck (f, FromUserName)) { | ^~~~~~~~~ ~ su2.c:224:17: note: declared here 224 | enum NameCheck_ NameCheck (); | ^~~~~~~~~ su2.c:720:30: error: too many arguments to function 'malloc'; expected 0, have 1 720 | su2rcFile = (char *) malloc ((unsigned) strlen (pw -> pw_dir) + | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 721 | (unsigned) strlen (UsersNameFile) + 2); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:733:25: error: too many arguments to function 'NameCheck'; expected 0, have 2 733 | switch (NameCheck (f, FromUserName)) { | ^~~~~~~~~ ~ su2.c:224:17: note: declared here 224 | enum NameCheck_ NameCheck (); | ^~~~~~~~~ su2.c:767:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 767 | #endif NOSU2RC | ^~~~~~~ su2.c:768:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 768 | #endif NOUSERCHECK | ^~~~~~~~~~~ su2.c:779:20: error: too many arguments to function 'getpass'; expected 0, have 1 779 | MyPasswd = getpass (Buffer); | ^~~~~~~ ~~~~~~ su2.c:222:9: note: declared here 222 | char *getpass (); | ^~~~~~~ su2.c:786:17: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 786 | strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { | ^~~~~~ su2.c:786:17: note: include '' or provide a declaration of 'strcmp' su2.c:786:25: error: too many arguments to function 'crypt'; expected 0, have 2 786 | strcmp (crypt (MyPasswd, MyCryptPasswd), MyCryptPasswd)) { | ^~~~~ ~~~~~~~~ su2.c:221:9: note: declared here 221 | char *crypt (); | ^~~~~ su2.c:787:20: error: too many arguments to function 'AddSuLog'; expected 0, have 3 787 | (void) AddSuLog (FromUserName, NewUserName, "-"); | ^~~~~~~~ ~~~~~~~~~~~~ su2.c:227:6: note: declared here 227 | void AddSuLog (); | ^~~~~~~~ su2.c:789:20: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 789 | (void) exit (1); | ^~~~ su2.c:789:20: note: include '' or provide a declaration of 'exit' su2.c:793:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 793 | #endif NOPASSWDCHECK | ^~~~~~~~~~~~~ su2.c:797:16: error: too many arguments to function 'AddSuLog'; expected 0, have 3 797 | (void) AddSuLog (FromUserName, NewUserName, "-"); | ^~~~~~~~ ~~~~~~~~~~~~ su2.c:227:6: note: declared here 227 | void AddSuLog (); | ^~~~~~~~ su2.c:804:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 804 | (void) exit (1); | ^~~~ su2.c:804:16: note: include '' or provide a declaration of 'exit' su2.c:806:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 806 | #endif NOUSERCHECK | ^~~~~~~~~~~ su2.c:820:12: error: too many arguments to function 'AddSuLog'; expected 0, have 3 820 | (void) AddSuLog (FromUserName, NewUserName, "+"); | ^~~~~~~~ ~~~~~~~~~~~~ su2.c:227:6: note: declared here 227 | void AddSuLog (); | ^~~~~~~~ su2.c:822:13: error: too many arguments to function 'ModifyUtmp'; expected 0, have 1 822 | if (ModifyUtmp (NewUserName)) { | ^~~~~~~~~~ ~~~~~~~~~~~ su2.c:228:9: note: declared here 228 | int ModifyUtmp (); | ^~~~~~~~~~ su2.c:824:20: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 824 | (void) exit (1); | ^~~~ su2.c:824:20: note: include '' or provide a declaration of 'exit' su2.c:859:13: error: too many arguments to function 'strrchr'; expected 0, have 2 859 | if (c = strrchr (pw -> pw_shell, '/')) | ^~~~~~~ ~~~~~~~~~~~~~~ su2.c:212:9: note: declared here 212 | char *strrchr (); | ^~~~~~~ su2.c:870:17: error: too many arguments to function 'strrchr'; expected 0, have 2 870 | if (c = strrchr (pw -> pw_shell, '/')) | ^~~~~~~ ~~~~~~~~~~~~~~ su2.c:212:9: note: declared here 212 | char *strrchr (); | ^~~~~~~ su2.c:882:13: error: too many arguments to function 'malloc'; expected 0, have 1 882 | Shell = malloc ((unsigned) strlen (c) + 2); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:898:22: error: too many arguments to function 'malloc'; expected 0, have 1 898 | NewHomeDir = malloc ((unsigned) strlen (pw -> pw_dir) + 6); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:907:22: error: too many arguments to function 'malloc'; expected 0, have 1 907 | NewLogname = malloc ((unsigned) strlen (pw -> pw_name) + 9); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:909:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 909 | #endif BSD | ^~~ su2.c:911:20: error: too many arguments to function 'malloc'; expected 0, have 1 911 | NewShell = malloc ((unsigned) strlen (pw -> pw_shell) + 7); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:917:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 917 | #endif BSD | ^~~ su2.c:932:29: error: too many arguments to function 'malloc'; expected 0, have 1 932 | newenvp = (char **) malloc ((unsigned) ((i + 20) * sizeof (char *))); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:943:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 943 | #endif CHANGEHOME | ^~~~~~~~~~ su2.c:949:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 949 | #endif CHANGEUSER | ^~~~~~~~~~ su2.c:954:17: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 954 | if (strncmp (*neptr, "SHELL=", 6) == 0) { | ^~~~~~~ su2.c:954:17: note: include '' or provide a declaration of 'strncmp' su2.c:954:44: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 954 | if (strncmp (*neptr, "SHELL=", 6) == 0) { | ^ : note: built-in 'strncmp' declared here su2.c:956:30: error: too many arguments to function 'malloc'; expected 0, have 1 956 | *neptr = malloc ((unsigned) strlen (DefaultShell) + 7); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:964:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 964 | #endif CHANGESHELL | ^~~~~~~~~~~ su2.c:966:29: error: too many arguments to function 'strrchr'; expected 0, have 2 966 | if (Shell = strrchr (ShellPointer, '/')) | ^~~~~~~ ~~~~~~~~~~~~ su2.c:212:9: note: declared here 212 | char *strrchr (); | ^~~~~~~ su2.c:975:46: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 975 | if (!strncmp (*neptr, "SUPATH=", 7)) { | ^ : note: built-in 'strncmp' declared here su2.c:981:45: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 981 | if (!strncmp (*neptr, "UPATH=", 6)) { | ^ : note: built-in 'strncmp' declared here su2.c:987:44: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 987 | if (!strncmp (*neptr, "PATH=", 5)) { | ^ : note: built-in 'strncmp' declared here su2.c:997:42: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 997 | if (strncmp (*neptr, "PS1=", 4) == 0) { | ^ : note: built-in 'strncmp' declared here su2.c:1010:13: error: too many arguments to function 'ChangePS1'; expected 0, have 3 1010 | ChangePS1 (*EnvPS1, ChangeType, Shell); | ^~~~~~~~~ ~~~~~~~ su2.c:226:6: note: declared here 226 | void ChangePS1 (); | ^~~~~~~~~ su2.c:1031:32: error: too many arguments to function 'malloc'; expected 0, have 1 1031 | *EnvUserPath = malloc ((unsigned) strlen (*EnvPath) + 2); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:1042:28: error: too many arguments to function 'malloc'; expected 0, have 1 1042 | *EnvPath = malloc ((unsigned) strlen (*EnvRootPath) - 1); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:1056:13: error: too many arguments to function 'CleanPath'; expected 0, have 1 1056 | CleanPath ((*EnvPath) + 5); | ^~~~~~~~~ ~~~~~~~~~~~~~~ su2.c:225:6: note: declared here 225 | void CleanPath (); | ^~~~~~~~~ su2.c:1070:24: error: too many arguments to function 'malloc'; expected 0, have 1 1070 | *EnvPath = malloc ((unsigned) strlen (*EnvUserPath) + 0); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ su2.c:183:9: note: declared here 183 | char *malloc (); | ^~~~~~ su2.c:1105:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1105 | #endif IOCTL | ^~~~~ su2.c:1127:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1127 | #endif NOCHMODTTY | ^~~~~~~~~~ su2.c:1141:7: warning: extra tokens at end of '#else' directive [-Wendif-labels] 1141 | #else NOCHOWNTTY | ^~~~~~~~~~ su2.c:1144:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1144 | #endif NOCHOWNTTY | ^~~~~~~~~~ su2.c:1153:27: error: implicit declaration of function 'vfork' [-Wimplicit-function-declaration] 1153 | if (Flag_x || ((pid = vfork ()) == 0)) { | ^~~~~ su2.c:1162:13: error: implicit declaration of function 'setgid' [-Wimplicit-function-declaration] 1162 | if (setgid (pw -> pw_gid)) { | ^~~~~~ su2.c:1164:20: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1164 | (void) exit (1); | ^~~~ su2.c:1164:20: note: include '' or provide a declaration of 'exit' su2.c:1172:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1172 | #endif defined(BSD42) || defined(INITGROUPS) | ^~~~~~~ su2.c:1178:13: error: implicit declaration of function 'setuid'; did you mean 'getutid'? [-Wimplicit-function-declaration] 1178 | if (setuid (pw -> pw_uid)) { | ^~~~~~ | getutid su2.c:1180:20: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1180 | (void) exit (1); | ^~~~ su2.c:1180:20: note: include '' or provide a declaration of 'exit' su2.c:1192:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1192 | #endif DEBUG | ^~~~~ su2.c:1200:17: error: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] 1200 | if (chdir (NewHomeDir + 5) < 0) | ^~~~~ su2.c:1218:16: error: implicit declaration of function 'execve' [-Wimplicit-function-declaration] 1218 | (void) execve (ShellPointer, newargv, newenvp); | ^~~~~~ su2.c:1221:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1221 | (void) exit (1); | ^~~~ su2.c:1221:16: note: include '' or provide a declaration of 'exit' su2.c:1231:22: error: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 1231 | while (((i = wait (&Status)) != pid) && (i != -1)); | ^~~~ su2.c:1240:17: error: too many arguments to function 'ModifyUtmp'; expected 0, have 1 1240 | if (ModifyUtmp (OldUtmpName)) { | ^~~~~~~~~~ ~~~~~~~~~~~ su2.c:228:9: note: declared here 228 | int ModifyUtmp (); | ^~~~~~~~~~ su2.c:1262:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1262 | #endif IOCTL | ^~~~~ su2.c:1273:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1273 | #endif NOCHMODTTY | ^~~~~~~~~~ su2.c:1278:7: warning: extra tokens at end of '#else' directive [-Wendif-labels] 1278 | #else NOCHOWNTTY | ^~~~~~~~~~ su2.c:1281:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1281 | #endif NOCHOWNTTY | ^~~~~~~~~~ su2.c:1284:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1284 | (void) exit (Status != 0); | ^~~~ su2.c:1284:16: note: include '' or provide a declaration of 'exit' su2.c: In function 'mycuserid': su2.c:1336:5: error: too many arguments to function 'strncpy'; expected 0, have 3 1336 | strncpy (name, nptr, MAXNAME); | ^~~~~~~ ~~~~ su2.c:214:9: note: declared here 214 | char *strncpy (); | ^~~~~~~ su2.c: At top level: su2.c:1340:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 1340 | #endif BSD || hpux | ^~~ su2.c: In function 'NameCheck': su2.c:1362:1: warning: old-style function definition [-Wold-style-definition] 1362 | NameCheck (f, FromUserName) | ^~~~~~~~~ su2.c:1365:1: error: number of arguments doesn't match prototype 1365 | { | ^ su2.c:224:17: error: prototype declaration 224 | enum NameCheck_ NameCheck (); | ^~~~~~~~~ su2.c:1379:16: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1379 | Buffer[strlen (Buffer) - 1] = '\0'; | ^~~~~~ su2.c:1379:16: note: include '' or provide a declaration of 'strlen' su2.c: In function 'ModifyUtmp': su2.c:1424:1: warning: old-style function definition [-Wold-style-definition] 1424 | ModifyUtmp (NewUserName) | ^~~~~~~~~~ su2.c:1426:1: error: number of arguments doesn't match prototype 1426 | { | ^ su2.c:228:9: error: prototype declaration 228 | int ModifyUtmp (); | ^~~~~~~~~~ su2.c:1445:12: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 1445 | while (read (fd, (char *) & Utmp, sizeof (Utmp)) == sizeof (Utmp)) | ^~~~ | fread su2.c:1451:12: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 1451 | (void) close (fd); | ^~~~~ | pclose su2.c:1460:12: error: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] 1460 | (void) lseek (fd, (long) - sizeof (Utmp), 1); | ^~~~~ | fseek su2.c:1473:12: error: too many arguments to function 'strncpy'; expected 0, have 3 1473 | (void) strncpy (Utmp.ut_name, NewUserName, sizeof (Utmp.ut_name)); | ^~~~~~~ su2.c:214:9: note: declared here 214 | char *strncpy (); | ^~~~~~~ su2.c:1475:12: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 1475 | (void) write (fd, (char *) & Utmp, sizeof (Utmp)); | ^~~~~ | fwrite su2.c: In function 'AddSuLog': su2.c:1500:1: warning: old-style function definition [-Wold-style-definition] 1500 | AddSuLog (FromName, ToName, ChangeType) | ^~~~~~~~ su2.c:1504:1: error: number of arguments doesn't match prototype 1504 | { | ^ su2.c:227:6: error: prototype declaration 227 | void AddSuLog (); | ^~~~~~~~ su2.c:1508:17: error: conflicting types for 'localtime'; have 'struct tm *(void)' 1508 | struct tm *localtime (); | ^~~~~~~~~ In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from su2.c:148: /usr/include/iso/time_iso.h:98:19: note: previous declaration of 'localtime' with type 'struct tm *(const time_t *)' {aka 'struct tm *(const long int *)'} 98 | extern struct tm *localtime(const time_t *); | ^~~~~~~~~ su2.c:1517:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1517 | (void) exit (1); | ^~~~ su2.c:1517:16: note: include '' or provide a declaration of 'exit' su2.c:1521:11: error: too many arguments to function 'localtime'; expected 0, have 1 1521 | now = localtime (&timenow); | ^~~~~~~~~ ~~~~~~~~ su2.c:1508:17: note: declared here 1508 | struct tm *localtime (); | ^~~~~~~~~ su2.c:1527:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1527 | (void) exit (2); | ^~~~ su2.c:1527:16: note: include '' or provide a declaration of 'exit' su2.c: In function 'CleanPath': su2.c:1565:1: warning: old-style function definition [-Wold-style-definition] 1565 | CleanPath (Path) | ^~~~~~~~~ su2.c:1567:1: error: number of arguments doesn't match prototype 1567 | { | ^ su2.c:225:6: error: prototype declaration 225 | void CleanPath (); | ^~~~~~~~~ su2.c: In function 'ChangePS1': su2.c:1663:1: warning: old-style function definition [-Wold-style-definition] 1663 | ChangePS1 (PS1, ChangeType, Shell) | ^~~~~~~~~ su2.c:1667:1: error: number of arguments doesn't match prototype 1667 | { | ^ su2.c:226:6: error: prototype declaration 226 | void ChangePS1 (); | ^~~~~~~~~ su2.c: In function 'Usage': su2.c:1718:12: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1718 | (void) exit (1); | ^~~~ su2.c:1718:12: note: include '' or provide a declaration of 'exit' *** [su2] Error code 1 bmake: stopped making "all" in /tmp/work/sysutils/su2/work/su2-1.3 bmake: 1 error bmake: stopped making "all" in /tmp/work/sysutils/su2/work/su2-1.3 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/su2 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/su2