+ 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/ish-1.11/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ish-1.11/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for ish-1.11 --- crc.o --- --- decode.o --- --- encode.o --- --- ish.o --- --- crc.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c crc.c --- decode.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c decode.c --- encode.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c encode.c --- ish.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c ish.c --- decode.o --- decode.c:43:23: warning: conflicting types for built-in function 'index'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 43 | extern unsigned char *index(); | ^~~~~ decode.c:45:1: error: return type defaults to 'int' [-Wimplicit-int] 45 | decode() | ^~~~~~ decode.c: In function 'decode': decode.c:49:16: error: implicit declaration of function 'readln' [-Wimplicit-function-declaration] 49 | while((l = readln(ipath, buff, LBUFLEN)) > 0) { | ^~~~~~ decode.c:53:21: error: implicit declaration of function 'dec_jis7' [-Wimplicit-function-declaration] 53 | l = dec_jis7(buff, l); | ^~~~~~~~ decode.c:56:21: error: implicit declaration of function 'dec_jis8' [-Wimplicit-function-declaration] 56 | l = dec_jis8(buff, l); | ^~~~~~~~ --- jis7.o --- --- decode.o --- decode.c:59:21: error: implicit declaration of function 'dec_sjis' [-Wimplicit-function-declaration] 59 | l = dec_sjis(buff, l); | ^~~~~~~~ In file included from decode.c:31: ish.h:35:42: error: implicit declaration of function 'calcrc'; did you mean 'chkcrc'? [-Wimplicit-function-declaration] 35 | #define chkcrc(argv,len) (0x1d0f==calcrc(argv,len,0xffff)) | ^~~~~~ decode.c:66:21: note: in expansion of macro 'chkcrc' 66 | if (chkcrc(obuf, l)) { | ^~~~~~ decode.c:71:36: error: implicit declaration of function 'decish' [-Wimplicit-function-declaration] 71 | skip = decish(); | ^~~~~~ decode.c: At top level: decode.c:210:1: error: return type defaults to 'int' [-Wimplicit-int] 210 | decish() | ^~~~~~ decode.c: In function 'decish': decode.c:216:9: error: implicit declaration of function 'access' [-Wimplicit-function-declaration] 216 | if (access(name,0) == 0) { | ^~~~~~ --- jis7.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c jis7.c --- decode.o --- decode.c:221:17: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 221 | if (read(0, buff, LBUFLEN) <= 0) | ^~~~ | fread decode.c:225:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 225 | exit(0); | ^~~~ decode.c:32:1: note: include '' or provide a declaration of 'exit' 31 | #include "ish.h" +++ |+#include 32 | decode.c:225:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 225 | exit(0); | ^~~~ decode.c:225:17: note: include '' or provide a declaration of 'exit' decode.c:227:20: error: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 227 | if(unlink(name) != ERR) | ^~~~~~ decode.c:238:13: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 238 | strcpy(buff, name); | ^~~~~~ decode.c:32:1: note: include '' or provide a declaration of 'strcpy' 31 | #include "ish.h" +++ |+#include 32 | decode.c:238:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 238 | strcpy(buff, name); | ^~~~~~ decode.c:238:13: note: include '' or provide a declaration of 'strcpy' decode.c:240:20: error: assignment to 'unsigned char' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 240 | *p = NULL; | ^ decode.c:256:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 256 | exit(errno); | ^~~~ decode.c:256:9: note: include '' or provide a declaration of 'exit' decode.c:263:13: error: implicit declaration of function 'decblk' [-Wimplicit-function-declaration] 263 | if (decblk() != 0) | ^~~~~~ decode.c:274:17: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 274 | write(fp, &decbuf[i][1], j); | ^~~~~ | fwrite decode.c:304:5: error: implicit declaration of function 'utime'; did you mean 'time'? [-Wimplicit-function-declaration] 304 | utime(name, timep); | ^~~~~ | time decode.c: At top level: decode.c:309:1: error: return type defaults to 'int' [-Wimplicit-int] 309 | decblk() | ^~~~~~ decode.c: In function 'decblk': decode.c:324:18: error: implicit declaration of function 'dec_j' [-Wimplicit-function-declaration] 324 | if ((k = dec_j(buff, i)) < jis) | ^~~~~ decode.c:366:13: error: implicit declaration of function 'ecc' [-Wimplicit-function-declaration] 366 | if (ecc(err, bad[0], bad[1]) == 0){ | ^~~ decode.c: At top level: decode.c:376:1: error: return type defaults to 'int' [-Wimplicit-int] 376 | dec_j(argv, len) | ^~~~~ decode.c: In function 'dec_j': decode.c:386:16: error: implicit declaration of function 'dec_njis'; did you mean 'dec_j'? [-Wimplicit-function-declaration] 386 | return dec_njis(argv, len); | ^~~~~~~~ | dec_j decode.c: At top level: decode.c:401:1: error: return type defaults to 'int' [-Wimplicit-int] 401 | ecc(err, e1, e2) | ^~~ decode.c: In function 'readln': decode.c:490:13: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 490 | buff[i] = NULL; | ^ *** [decode.o] Error code 1 bmake: stopped making "ish" in /home/pbulk/build/converters/ish/work/ish-1.11 --- ish.o --- ish.c: In function 'main': ish.c:104:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 104 | exit(225); /* bad para err */ | ^~~~ ish.c:26:1: note: include '' or provide a declaration of 'exit' 25 | #include "ish.h" +++ |+#include 26 | ish.c:104:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 104 | exit(225); /* bad para err */ | ^~~~ ish.c:104:17: note: include '' or provide a declaration of 'exit' ish.c:133:25: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 133 | title = atoi(&argv[0][2]); | ^~~~ ish.c:147:21: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 147 | strcpy(name, &argv[0][3]); | ^~~~~~ --- jis7.o --- jis7.c:88:1: error: return type defaults to 'int' [-Wimplicit-int] 88 | dec_jis7(argv, len) | ^~~~~~~~ --- encode.o --- encode.c:20:1: error: return type defaults to 'int' [-Wimplicit-int] 20 | encode() | ^~~~~~ In file included from encode.c:12: encode.c: In function 'encode': ish.h:36:51: error: implicit declaration of function 'calcrc'; did you mean 'chkcrc'? [-Wimplicit-function-declaration] 36 | #define setcrc(argv,len) (setwrd(argv+len,~calcrc(argv,len,0xffff))) | ^~~~~~ encode.c:53:9: note: in expansion of macro 'setcrc' 53 | setcrc(buff, JIS8_L-2); | ^~~~~~ encode.c:54:9: error: implicit declaration of function 'enc_jis8' [-Wimplicit-function-declaration] 54 | enc_jis8(buff, JIS8_L); | ^~~~~~~~ encode.c:58:9: error: implicit declaration of function 'enc_jis7' [-Wimplicit-function-declaration] 58 | enc_jis7(buff, JIS7_L); | ^~~~~~~~ encode.c:80:17: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] --- ish.o --- ish.c:26:1: note: include '' or provide a declaration of 'strcpy' 25 | #include "ish.h" +++ |+#include 26 | ish.c:147:21: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 147 | strcpy(name, &argv[0][3]); | ^~~~~~ ish.c:147:21: note: include '' or provide a declaration of 'strcpy' ish.c:169:21: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 169 | strcat(name, ishargv[0]); | ^~~~~~ ish.c:169:21: note: include '' or provide a declaration of 'strcat' ish.c:169:21: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] ish.c:169:21: note: include '' or provide a declaration of 'strcat' ish.c:180:25: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] --- encode.o --- 80 | j = read(path, buff+1, jis-3); | ^~~~ | fread encode.c: In function 'encd': encode.c:144:9: error: implicit declaration of function 'enc_sjis' [-Wimplicit-function-declaration] 144 | enc_sjis(argv,jis); | ^~~~~~~~ encode.c:147:9: error: implicit declaration of function 'enc_njis' [-Wimplicit-function-declaration] 147 | enc_njis(argv,jis); | ^~~~~~~~ --- ish.o --- 180 | strcpy(p, ".ish"); | ^~~~~~ ish.c:180:25: note: include '' or provide a declaration of 'strcpy' ish.c:182:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 182 | strcat(name, ".ish"); | ^~~~~~ ish.c:182:25: note: include '' or provide a declaration of 'strcat' ish.c:189:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 189 | exit(errno); | ^~~~ ish.c:189:21: note: include '' or provide a declaration of 'exit' ish.c:201:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 201 | exit(errno); | ^~~~ ish.c:201:21: note: include '' or provide a declaration of 'exit' --- encode.o --- *** [encode.o] Error code 1 bmake: stopped making "ish" in /home/pbulk/build/converters/ish/work/ish-1.11 --- ish.o --- ish.c:208:16: error: implicit declaration of function 'encode' [-Wimplicit-function-declaration] 208 | if(encode() == ERR) | ^~~~~~ ish.c:209:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 209 | exit(errno); | ^~~~ ish.c:209:17: note: include '' or provide a declaration of 'exit' ish.c:210:13: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 210 | close(path); | ^~~~~ | pclose ish.c:218:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 218 | strcpy(name, filename); | ^~~~~~ ish.c:218:13: note: include '' or provide a declaration of 'strcpy' ish.c:219:13: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 219 | strcat(name, ".ish"); | ^~~~~~ ish.c:219:13: note: include '' or provide a declaration of 'strcat' ish.c:224:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 224 | exit(errno); | ^~~~ ish.c:224:17: note: include '' or provide a declaration of 'exit' ish.c:229:13: error: implicit declaration of function 'decode' [-Wimplicit-function-declaration] 229 | if (decode() == 0) | ^~~~~~ ish.c: In function 'help': ish.c:251:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 251 | exit(0); | ^~~~ ish.c:251:5: note: include '' or provide a declaration of 'exit' --- jis7.o --- *** [jis7.o] Error code 1 bmake: stopped making "ish" in /home/pbulk/build/converters/ish/work/ish-1.11 --- ish.o --- *** [ish.o] Error code 1 bmake: stopped making "ish" in /home/pbulk/build/converters/ish/work/ish-1.11 bmake: 4 errors bmake: stopped making "ish" in /home/pbulk/build/converters/ish/work/ish-1.11 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/converters/ish *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/converters/ish