+ 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/unidiff-1.1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/unidiff-1.1/work.log ===> Building for unidiff-1.1 --- unify --- --- unipatch --- --- unify --- cc -O -Wl,-R/opt/pkg/lib -o unify unify.c --- unipatch --- cc -O -Wl,-R/opt/pkg/lib -o unipatch unipatch.c --- unify --- unify.c:13:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 13 | extern char *malloc(); | ^~~~~~ unify.c:12:1: note: 'malloc' is declared in header '' 11 | #include +++ |+#include 12 | unify.c: In function 'main': unify.c:101:21: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 101 | exit(1); | ^~~~ unify.c:101:21: note: include '' or provide a declaration of 'exit' unify.c:101:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] unify.c:101:21: note: include '' or provide a declaration of 'exit' unify.c:107:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 107 | exit(1); | ^~~~ --- unipatch --- unipatch.c:9:23: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | char bf[2048],*cp,ch,*malloc(); | ^~~~~~ unipatch.c:6:1: note: 'malloc' is declared in header '' 5 | #include +++ |+#include 6 | #define ERR(a) {fputs(a,stderr);exit(1);} unipatch.c:11:1: error: return type defaults to 'int' [-Wimplicit-int] 11 | main() | ^~~~ unipatch.c: In function 'main': unipatch.c:15:35: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 15 | if(!fgets(bf,sizeof bf,stdin)) exit(0); | ^~~~ unipatch.c:15:35: note: include '' or provide a declaration of 'exit' unipatch.c:15:35: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] unipatch.c:15:35: note: include '' or provide a declaration of 'exit' --- unify --- unify.c:107:17: note: include '' or provide a declaration of 'exit' unify.c:111:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 111 | exit(1); | ^~~~ unify.c:111:17: note: include '' or provide a declaration of 'exit' unify.c:25:27: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^~~~~~~ unify.c:121:35: note: in expansion of macro 'strnEQ' 121 | if (input_type < 2 && strnEQ(buf, "@@ -", 4)) { | ^~~~~~ unify.c:12:1: note: include '' or provide a declaration of 'strncmp' 11 | #include +++ |+#include 12 | --- unipatch --- unipatch.c:17:8: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 17 | if(!strncmp(bf,"@@ -",4)) break; | ^~~~~~~ unipatch.c:6:1: note: include '' or provide a declaration of 'strncmp' 5 | #include +++ |+#include 6 | #define ERR(a) {fputs(a,stderr);exit(1);} unipatch.c:17:26: 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] 17 | if(!strncmp(bf,"@@ -",4)) break; | ^ : note: built-in 'strncmp' declared here unipatch.c:6:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:31:14: note: in expansion of macro 'ERR' 31 | if(nl>2) ERR("Unexpected end of file.\n") | ^~~ --- unify --- unify.c:121:55: 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] 121 | if (input_type < 2 && strnEQ(buf, "@@ -", 4)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:130:62: 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] 130 | if (!(input_type & 1) && strnEQ(buf, "********", 8)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ --- unipatch --- unipatch.c:6:33: note: include '' or provide a declaration of 'exit' 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:31:14: note: in expansion of macro 'ERR' 31 | if(nl>2) ERR("Unexpected end of file.\n") | ^~~ unipatch.c:32:5: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 32 | strcpy(bf," \n"); | ^~~~~~ unipatch.c:32:5: note: include '' or provide a declaration of 'strcpy' unipatch.c:32:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] unipatch.c:32:5: note: include '' or provide a declaration of 'strcpy' unipatch.c:45:45: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 45 | ln = (struct Ln*)malloc(sizeof(*ln)+strlen(cp)); | ^~~~~~ --- unify --- : note: built-in 'strncmp' declared here unify.c:140:40: 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] 140 | if (strnEQ(buf, "Index: ", 7)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:143:48: 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] 143 | } else if (strnEQ(buf, "Prereq: ", 8)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ --- unipatch --- unipatch.c:45:45: note: include '' or provide a declaration of 'strlen' unipatch.c:45:45: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] unipatch.c:45:45: note: include '' or provide a declaration of 'strlen' unipatch.c:6:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:46:17: note: in expansion of macro 'ERR' 46 | if(!ln) ERR("Out of memory!\n") | ^~~ unipatch.c:6:33: note: include '' or provide a declaration of 'exit' 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:46:17: note: in expansion of macro 'ERR' 46 | if(!ln) ERR("Out of memory!\n") | ^~~ --- unify --- : note: built-in 'strncmp' declared here unify.c:145: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] 145 | } else if (strnEQ(buf, "*** ", 4) | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:146: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] 146 | || strnEQ(buf, "--- ", 4) | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ --- unipatch --- unipatch.c:47:29: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 47 | ln->lk=0, ln->t=ch, strcpy(ln->s,cp); | ^~~~~~ unipatch.c:47:29: note: include '' or provide a declaration of 'strcpy' unipatch.c:6:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:52:9: note: in expansion of macro 'ERR' 52 | ERR(bf) | ^~~ unipatch.c:6:33: note: include '' or provide a declaration of 'exit' 6 | #define ERR(a) {fputs(a,stderr);exit(1);} | ^~~~ unipatch.c:52:9: note: in expansion of macro 'ERR' 52 | ERR(bf) | ^~~ unipatch.c:58:14: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 58 | h=ln->lk; free(ln); --- unify --- : note: built-in 'strncmp' declared here unify.c:147: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] 147 | || strnEQ(buf, "+++ ", 4)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:155:41: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 155 | if (!*name || len < strlen(name)) { | ^~~~~~ unify.c:155:41: note: include '' or provide a declaration of 'strlen' unify.c:155:41: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] --- unipatch --- | ^~~~ unipatch.c:58:14: note: include '' or provide a declaration of 'free' unipatch.c:58:14: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] unipatch.c:58:14: note: include '' or provide a declaration of 'free' --- unify --- unify.c:155:41: note: include '' or provide a declaration of 'strlen' unify.c:156:25: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 156 | strncpy(name, buf+4, len); | ^~~~~~~ unify.c:156:25: note: include '' or provide a declaration of 'strncpy' unify.c:156:25: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] unify.c:156:25: note: include '' or provide a declaration of 'strncpy' unify.c:176: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] 176 | && (strnEQ(buf, "Only in ", 8) || strnEQ(buf, "Common subdir", 13) | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:176:77: 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] 176 | && (strnEQ(buf, "Only in ", 8) || strnEQ(buf, "Common subdir", 13) | ^~ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:177:40: 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] 177 | || strnEQ(buf, "diff -", 6) || strnEQ(buf, "Binary files", 12))) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:177:74: 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] 177 | || strnEQ(buf, "diff -", 6) || strnEQ(buf, "Binary files", 12))) { | ^~ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:194:37: 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] 194 | if (strnNE(buf, "@@ -", 4)) { | ^ unify.c:26:39: note: in definition of macro 'strnNE' 26 | #define strnNE(s1,s2,n) strncmp(s1,s2,n) | ^ : note: built-in 'strncmp' declared here unify.c:28:25: error: implicit declaration of function 'atol'; did you mean 'AtoL'? [-Wimplicit-function-declaration] 28 | #define AtoL(cp,n) {n = atol(cp); while (*cp <= '9' && *cp >= '0') cp++; } | ^~~~ unify.c:202:13: note: in expansion of macro 'AtoL' 202 | AtoL(cp, o_start); | ^~~~ unify.c:223:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 223 | exit(1); | ^~~~ unify.c:223:17: note: include '' or provide a declaration of 'exit' unify.c:260:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 260 | exit(1); | ^~~~ unify.c:260:17: note: include '' or provide a declaration of 'exit' unify.c:270:41: 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] 270 | if (strnNE(buf, "********", 8)) { | ^ unify.c:26:39: note: in definition of macro 'strnNE' 26 | #define strnNE(s1,s2,n) strncmp(s1,s2,n) | ^ : note: built-in 'strncmp' declared here unify.c:287:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 287 | exit(1); | ^~~~ unify.c:287:21: note: include '' or provide a declaration of 'exit' unify.c:316:37: 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] 316 | if (strnEQ(buf, "--- ", 4)) { | ^ unify.c:25:41: note: in definition of macro 'strnEQ' 25 | #define strnEQ(s1,s2,n) (!strncmp(s1,s2,n)) | ^ : note: built-in 'strncmp' declared here unify.c:325:17: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 325 | strcpy(buf, " \n"); | ^~~~~~ unify.c:325:17: note: include '' or provide a declaration of 'strcpy' unify.c:325:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] unify.c:325:17: note: include '' or provide a declaration of 'strcpy' unify.c:328:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 328 | strcpy(buf+1, " \n"); | ^~~~~~ unify.c:328:17: note: include '' or provide a declaration of 'strcpy' unify.c:333:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 333 | exit(1); | ^~~~ unify.c:333:17: note: include '' or provide a declaration of 'exit' unify.c:349:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 349 | exit(1); | ^~~~ unify.c:349:17: note: include '' or provide a declaration of 'exit' unify.c:378:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 378 | exit(1); | ^~~~ unify.c:378:21: note: include '' or provide a declaration of 'exit' unify.c:402:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 402 | strcpy(buf, " \n"); | ^~~~~~ unify.c:402:17: note: include '' or provide a declaration of 'strcpy' unify.c:405:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 405 | strcpy(buf+1, " \n"); | ^~~~~~ unify.c:405:17: note: include '' or provide a declaration of 'strcpy' unify.c:410:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 410 | exit(1); | ^~~~ unify.c:410:17: note: include '' or provide a declaration of 'exit' unify.c:426:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 426 | exit(1); | ^~~~ unify.c:426:17: note: include '' or provide a declaration of 'exit' unify.c: In function 'add_line': unify.c:482:59: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 482 | line = (struct liner *)malloc(sizeof (struct liner) + strlen(str)); | ^~~~~~ unify.c:482:59: note: include '' or provide a declaration of 'strlen' unify.c:485:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 485 | exit(1); | ^~~~ unify.c:485:9: note: include '' or provide a declaration of 'exit' unify.c:489:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 489 | strcpy(line->str, str); | ^~~~~~ unify.c:489:5: note: include '' or provide a declaration of 'strcpy' unify.c: In function 'generate_output': unify.c:506:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 506 | if (strlen(pstuff) == 0) | ^~~~~~ unify.c:506:13: note: include '' or provide a declaration of 'strlen' unify.c:515:13: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 515 | free(line); | ^~~~ unify.c:515:13: note: include '' or provide a declaration of 'free' unify.c:515:13: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] unify.c:515:13: note: include '' or provide a declaration of 'free' unify.c:580:13: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 580 | free(line); | ^~~~ unify.c:580:13: note: include '' or provide a declaration of 'free' --- unipatch --- *** [unipatch] Error code 1 bmake: stopped making "all" in /home/pbulk/build/devel/unidiff/work/unidiff-1.1 --- unify --- *** [unify] Error code 1 bmake: stopped making "all" in /home/pbulk/build/devel/unidiff/work/unidiff-1.1 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/build/devel/unidiff/work/unidiff-1.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/unidiff *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/unidiff