+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/su2-1.3/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/su2-1.3/work.log ===> Building for su2-1.3 --- 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.1 --- sed 's,/etc/super,/opt/pkg/etc/super,g' su2.1 --- su2 --- 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: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: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: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: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: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:156:1: note: include '' or provide a declaration of 'strlen' 155 | #include +++ |+#include 156 | #ifdef IOCTL su2.c:632:43: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 632 | FromUserName = malloc ((unsigned) strlen (OldUtmpName) + 1); | ^~~~~~ su2.c:632:43: note: include '' or provide a declaration of 'strlen' 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: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: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: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: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: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: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:909:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 909 | #endif BSD | ^~~ su2.c:917:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 917 | #endif BSD | ^~~ 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:964:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 964 | #endif CHANGESHELL | ^~~~~~~~~~~ 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: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: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: 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: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: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: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: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: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 '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 /home/pbulk/build/sysutils/su2/work/su2-1.3 bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/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