+ 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/skkfep-0.86cnb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/skkfep-0.86cnb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for skkfep-0.86cnb1
rm -f genMakefile
cp config.h junk.c
awk -f extrpar `cc -E junk.c | sed -n 's/^#[^"]*"\([^/][^"]*onfigs[^"]*\)".*/\1/p' | sort | uniq` > genMakefile
rm -f junk.c
awk -f extrpar config.h | cat - protoMakefile >> genMakefile
make -f genMakefile all
gcc   -DUSE_LOCALE -O  -DSKK_CONF=\"/etc/opt/pkg/skk.conf\"  -c jc.c
jc.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int]
  112 | main(argc,argv)
      | ^~~~
jc.c: In function 'main':
jc.c:129:3: warning: implicit declaration of function 'usage' [-Wimplicit-function-declaration]
  129 |   usage();
      |   ^~~~~
jc.c:130:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  130 |   exit(-1);
      |   ^~~~
jc.c:130:3: warning: incompatible implicit declaration of built-in function 'exit'
jc.c:39:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   38 | #include "config.h"
  +++ |+#include <stdlib.h>
   39 | 
jc.c:132:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  132 |  if (!strcmp(argv[1],"-c")) {
      |       ^~~~~~
jc.c:143:3: warning: incompatible implicit declaration of built-in function 'exit'
  143 |   exit(0);
      |   ^~~~
jc.c:143:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c:145:12: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  145 |  else if (!strncmp(argv[1],"-a",2)) {
      |            ^~~~~~~
jc.c:145:33: 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 (!strncmp(argv[1],"-a",2)) {
      |                                 ^
<built-in>: note: built-in 'strncmp' declared here
jc.c:148:32: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
  148 |    sprintf(tmpf,"/tmp/jctmp%d",getpid());
      |                                ^~~~~~
jc.c:151:5: warning: incompatible implicit declaration of built-in function 'exit'
  151 |     exit(1);
      |     ^~~~
jc.c:151:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c:184:2: warning: implicit declaration of function 'doConv' [-Wimplicit-function-declaration]
  184 |  doConv(nargc,nargv,cOption[1],cOption[2]);
      |  ^~~~~~
jc.c:186:3: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
  186 |   unlink(tmpf);
      |   ^~~~~~
jc.c:187:2: warning: incompatible implicit declaration of built-in function 'exit'
  187 |  exit(0);
      |  ^~~~
jc.c:187:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c: At top level:
jc.c:190:1: warning: return type defaults to 'int' [-Wimplicit-int]
  190 | doConv(argc,argv,fromCode,toCode)
      | ^~~~~~
jc.c: In function 'doConv':
jc.c:202:6: warning: incompatible implicit declaration of built-in function 'exit'
  202 |      exit(-1);
      |      ^~~~
jc.c:202:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c:208:6: warning: incompatible implicit declaration of built-in function 'exit'
  208 |      exit(-1);
      |      ^~~~
jc.c:208:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c:213:5: warning: incompatible implicit declaration of built-in function 'exit'
  213 |     exit(-1);
      |     ^~~~
jc.c:213:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c: In function 'conv':
jc.c:250:3: warning: implicit declaration of function 'n_impr' [-Wimplicit-function-declaration]
  250 |   n_impr(cOption);
      |   ^~~~~~
jc.c:253:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  253 |   strcpy(mbuf,is);
      |   ^~~~~~
jc.c:253:3: warning: incompatible implicit declaration of built-in function 'strcpy'
jc.c:39:1: note: include '<string.h>' or provide a declaration of 'strcpy'
   38 | #include "config.h"
  +++ |+#include <string.h>
   39 | 
jc.c:267:3: warning: incompatible implicit declaration of built-in function 'strcpy'
  267 |   strcpy(os,mbuf);
      |   ^~~~~~
jc.c:267:3: note: include '<string.h>' or provide a declaration of 'strcpy'
jc.c: At top level:
jc.c:270:1: warning: return type defaults to 'int' [-Wimplicit-int]
  270 | n_impr(s)
      | ^~~~~~
jc.c: In function 'n_impr':
jc.c:275:2: warning: incompatible implicit declaration of built-in function 'exit'
  275 |  exit(-1);
      |  ^~~~
jc.c:275:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c: At top level:
jc.c:278:1: warning: return type defaults to 'int' [-Wimplicit-int]
  278 | putSFT(pptr,code) /* Put Shift in/out code */
      | ^~~~~~
jc.c: In function 'cConvJS':
jc.c:410:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  410 |  int il = strlen(SIcode),
      |           ^~~~~~
jc.c:410:11: warning: incompatible implicit declaration of built-in function 'strlen'
jc.c:410:11: note: include '<string.h>' or provide a declaration of 'strlen'
jc.c:415: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]
  415 |    if (strncmp(ip,SOcode,ol) == 0) {
      |                          ^~
<built-in>: note: built-in 'strncmp' declared here
jc.c:420:5: warning: implicit declaration of function 'put_js'; did you mean 'puts'? [-Wimplicit-function-declaration]
  420 |     put_js(*ip,*(ip+1),op);
      |     ^~~~~~
      |     puts
jc.c:426: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]
  426 |    if (strncmp(ip,SIcode,il) == 0) {
      |                          ^~
<built-in>: note: built-in 'strncmp' declared here
jc.c: At top level:
jc.c:458:1: warning: return type defaults to 'int' [-Wimplicit-int]
  458 | put_js(ub,lb,op)
      | ^~~~~~
jc.c: In function 'file_open':
jc.c:483:3: warning: incompatible implicit declaration of built-in function 'exit'
  483 |   exit(-1);
      |   ^~~~
jc.c:483:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
jc.c: At top level:
jc.c:609:1: warning: return type defaults to 'int' [-Wimplicit-int]
  609 | usage()
      | ^~~~~
gcc   -DUSE_LOCALE -O  -DSKK_CONF=\"/etc/opt/pkg/skk.conf\"  -c fep.c
fep.c: In function 'guess_system_kanji_code':
fep.c:82:17: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   82 |             if (strcmp(tab->str, p)==0)
      |                 ^~~~~~
fep.c: In function 'kanjicode2string':
fep.c:93:1: warning: type of 'code' defaults to 'int' [-Wimplicit-int]
   93 | kanjicode2string(code)
      | ^~~~~~~~~~~~~~~~
fep.c: At top level:
fep.c:110:1: warning: return type defaults to 'int' [-Wimplicit-int]
  110 | main(argc,argv,envp)
      | ^~~~
fep.c: In function 'main':
fep.c:125:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  125 |   if (!strncmp(argv[i],"-o",2))
      |        ^~~~~~~
fep.c:125:29: 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]
  125 |   if (!strncmp(argv[i],"-o",2))
      |                             ^
<built-in>: note: built-in 'strncmp' declared here
fep.c:127:34: 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]
  127 |   else if (!strncmp(argv[i],"-f",2))
      |                                  ^
<built-in>: note: built-in 'strncmp' declared here
fep.c:129:34: 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]
  129 |   else if (!strncmp(argv[i],"-k",2))
      |                                  ^
<built-in>: note: built-in 'strncmp' declared here
fep.c:132:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  132 |    strcpy(UserDicName,argv[++i]);
      |    ^~~~~~
fep.c:132:4: warning: incompatible implicit declaration of built-in function 'strcpy'
fep.c:11:1: note: include '<string.h>' or provide a declaration of 'strcpy'
   10 | #include <locale.h>
  +++ |+#include <string.h>
   11 | #endif
fep.c:138:4: warning: incompatible implicit declaration of built-in function 'strcpy'
  138 |    strcpy(ShellName,argv[++i]);
      |    ^~~~~~
fep.c:138:4: note: include '<string.h>' or provide a declaration of 'strcpy'
fep.c:221:2: warning: implicit declaration of function 'setKanaKey' [-Wimplicit-function-declaration]
  221 |  setKanaKey();
      |  ^~~~~~~~~~
fep.c:222:2: warning: implicit declaration of function 'getTCstr' [-Wimplicit-function-declaration]
  222 |  getTCstr();
      |  ^~~~~~~~
fep.c:223:2: warning: implicit declaration of function 'get_winsize' [-Wimplicit-function-declaration]
  223 |  get_winsize();
      |  ^~~~~~~~~~~
fep.c:224:2: warning: implicit declaration of function 'set_tty' [-Wimplicit-function-declaration]
  224 |  set_tty();
      |  ^~~~~~~
fep.c:225:2: warning: implicit declaration of function 'set_int' [-Wimplicit-function-declaration]
  225 |  set_int();
      |  ^~~~~~~
fep.c:228:3: warning: incompatible implicit declaration of built-in function 'strcpy'
  228 |   strcpy(UserDicName,getenv("HOME"));
      |   ^~~~~~
fep.c:228:3: note: include '<string.h>' or provide a declaration of 'strcpy'
fep.c:229:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
  229 |   strcat(UserDicName,"/");
      |   ^~~~~~
fep.c:229:3: warning: incompatible implicit declaration of built-in function 'strcat'
fep.c:229:3: note: include '<string.h>' or provide a declaration of 'strcat'
fep.c:242:6: warning: implicit declaration of function 'openSKKserv'; did you mean 'openSKK'? [-Wimplicit-function-declaration]
  242 |  if (openSKKserv() != -1)
      |      ^~~~~~~~~~~
      |      openSKK
fep.c:247:2: warning: implicit declaration of function 'establishShell' [-Wimplicit-function-declaration]
  247 |  establishShell();
      |  ^~~~~~~~~~~~~~
fep.c:263:13: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  263 |    if ((i = read(Shellfd,shellBuf,SH_BUF_SIZ)) > 0)
      |             ^~~~
      |             fread
fep.c:264:5: warning: implicit declaration of function 'writeShTty' [-Wimplicit-function-declaration]
  264 |     writeShTty(shellBuf,i);
      |     ^~~~~~~~~~
fep.c:270:7: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  270 |   if (ioctl(0,FIONREAD,&i) == 0) {
      |       ^~~~~
fep.c: In function 'decideCode':
fep.c:293:28: 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]
  293 |  else if (!strncmp(s,"jis",3)) {
      |                            ^
<built-in>: note: built-in 'strncmp' declared here
fep.c: At top level:
fep.c:314:1: warning: return type defaults to 'int' [-Wimplicit-int]
  314 | flushOut(minchar)
      | ^~~~~~~~
fep.c: In function 'thru':
fep.c:353:2: warning: implicit declaration of function 'writeTtyShell1' [-Wimplicit-function-declaration]
  353 |  writeTtyShell1(c);
      |  ^~~~~~~~~~~~~~
fep.c: In function 'toAsc':
fep.c:361:2: warning: implicit declaration of function 'flushKana' [-Wimplicit-function-declaration]
  361 |  flushKana();
      |  ^~~~~~~~~
fep.c:362:2: warning: implicit declaration of function 'setKeymap' [-Wimplicit-function-declaration]
  362 |  setKeymap(&CurrentKeymap,convertKeymap(&NormalKeymap));
      |  ^~~~~~~~~
fep.c:363:2: warning: implicit declaration of function 'showmode' [-Wimplicit-function-declaration]
  363 |  showmode(SKK_MODE);
      |  ^~~~~~~~
fep.c: In function 'thruToAsc':
fep.c:376:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
  376 | thruToAsc(c)
      | ^~~~~~~~~
fep.c: In function 'toEsc':
fep.c:383:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
  383 | toEsc(c)
      | ^~~~~
fep.c: In function 'thru1':
fep.c:411:2: warning: implicit declaration of function 'restoreKeymap' [-Wimplicit-function-declaration]
  411 |  restoreKeymap(&CurrentKeymap);
      |  ^~~~~~~~~~~~~
fep.c:412:2: warning: implicit declaration of function 'showlastmode' [-Wimplicit-function-declaration]
  412 |  showlastmode();
      |  ^~~~~~~~~~~~
gcc   -DUSE_LOCALE -O  -DSKK_CONF=\"/etc/opt/pkg/skk.conf\"  -c connsh.c
connsh.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int]
  113 | establishShell()
      | ^~~~~~~~~~~~~~
connsh.c: In function 'establishShell':
connsh.c:123:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  123 |    strcpy(ShellName,p);
      |    ^~~~~~
connsh.c:123:4: warning: incompatible implicit declaration of built-in function 'strcpy'
connsh.c:18:1: note: include '<string.h>' or provide a declaration of 'strcpy'
   17 | #include <sys/stropts.h>
  +++ |+#include <string.h>
   18 | #endif
connsh.c:127:21: warning: implicit declaration of function 'getuid'; did you mean 'getcwd'? [-Wimplicit-function-declaration]
  127 |    pwent = getpwuid(getuid());
      |                     ^~~~~~
      |                     getcwd
connsh.c:129:5: warning: incompatible implicit declaration of built-in function 'strcpy'
  129 |     strcpy(ShellName,pwent->pw_shell);
      |     ^~~~~~
connsh.c:129:5: note: include '<string.h>' or provide a declaration of 'strcpy'
connsh.c:131:5: warning: incompatible implicit declaration of built-in function 'strcpy'
  131 |     strcpy(ShellName,DEFAULT_SHELL);
      |     ^~~~~~
connsh.c:131:5: note: include '<string.h>' or provide a declaration of 'strcpy'
connsh.c:135:2: warning: implicit declaration of function 'getDevice' [-Wimplicit-function-declaration]
  135 |  getDevice(&master,&slave);
      |  ^~~~~~~~~
connsh.c:137:15: warning: implicit declaration of function 'getpid'; did you mean 'getpw'? [-Wimplicit-function-declaration]
  137 |  currentPid = getpid();
      |               ^~~~~~
      |               getpw
connsh.c:139:2: warning: implicit declaration of function 'set_winsize' [-Wimplicit-function-declaration]
  139 |  set_winsize(master);
      |  ^~~~~~~~~~~
connsh.c:140:2: warning: implicit declaration of function 'setEnvirons' [-Wimplicit-function-declaration]
  140 |  setEnvirons();
      |  ^~~~~~~~~~~
connsh.c:175:10: warning: implicit declaration of function 'vfork' [-Wimplicit-function-declaration]
  175 |  if((i = vfork()) < 0) {
      |          ^~~~~
connsh.c:177:3: warning: implicit declaration of function 'reset_tty' [-Wimplicit-function-declaration]
  177 |   reset_tty();
      |   ^~~~~~~~~
connsh.c:178:3: warning: implicit declaration of function 'Exit'; did you mean 'exit'? [-Wimplicit-function-declaration]
  178 |   Exit(1);
      |   ^~~~
      |   exit
connsh.c:191:10: warning: implicit declaration of function 'setsid'; did you mean 'tcgetsid'? [-Wimplicit-function-declaration]
  191 |   (void) setsid();
      |          ^~~~~~
      |          tcgetsid
connsh.c:219:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  219 |   close(slave);
      |   ^~~~~
      |   pclose
connsh.c:223:4: warning: implicit declaration of function '_exit' [-Wimplicit-function-declaration]
  223 |    _exit(1);
      |    ^~~~~
connsh.c:223:4: warning: incompatible implicit declaration of built-in function '_exit'
connsh.c:227:3: warning: implicit declaration of function 'set_tty_sane' [-Wimplicit-function-declaration]
  227 |   set_tty_sane(slave);
      |   ^~~~~~~~~~~~
connsh.c:237:3: warning: implicit declaration of function 'seteuid' [-Wimplicit-function-declaration]
  237 |   seteuid(getuid());
      |   ^~~~~~~
connsh.c:238:18: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  238 |   p = &ShellName[strlen(ShellName)];
      |                  ^~~~~~
connsh.c:238:18: warning: incompatible implicit declaration of built-in function 'strlen'
connsh.c:238:18: note: include '<string.h>' or provide a declaration of 'strlen'
connsh.c:242:3: warning: incompatible implicit declaration of built-in function 'strcpy'
  242 |   strcpy(procName,p);
      |   ^~~~~~
connsh.c:242:3: note: include '<string.h>' or provide a declaration of 'strcpy'
connsh.c:244:7: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration]
  244 |       execl(ShellName, procName, 0);
      |       ^~~~~
connsh.c:244:7: warning: incompatible implicit declaration of built-in function 'execl'
connsh.c:246:7: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
  246 |       execvp(ShellName, ShellArg);
      |       ^~~~~~
connsh.c:249:3: warning: incompatible implicit declaration of built-in function '_exit'
  249 |   _exit(127);
      |   ^~~~~
connsh.c: At top level:
connsh.c:290:1: warning: return type defaults to 'int' [-Wimplicit-int]
  290 | getDevice(master,slave)
      | ^~~~~~~~~
connsh.c: In function 'getDevice':
connsh.c:310:11: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  310 |        if(ioctl(j, I_PUSH, "ptem") != -1) {
      |           ^~~~~
connsh.c:314:9: warning: incompatible implicit declaration of built-in function 'strcpy'
  314 |         strcpy(SlaveName, pn);
      |         ^~~~~~
connsh.c:314:9: note: include '<string.h>' or provide a declaration of 'strcpy'
connsh.c:315:9: warning: 'return' with no value, in function returning non-void
  315 |         return;
      |         ^~~~~~
connsh.c:290:1: note: declared here
  290 | getDevice(master,slave)
      | ^~~~~~~~~
connsh.c: At top level:
connsh.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int]
  346 | freeDevice()
      | ^~~~~~~~~~
connsh.c: In function 'freeDevice':
connsh.c:348:2: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration]
  348 |  chmod(SlaveName, 0666);
      |  ^~~~~
connsh.c:349:2: warning: implicit declaration of function 'chown' [-Wimplicit-function-declaration]
  349 |  chown(SlaveName, 0, 0);
      |  ^~~~~
gcc   -DUSE_LOCALE -O  -DSKK_CONF=\"/etc/opt/pkg/skk.conf\"  -c readwrite.c
readwrite.c: In function 'read1':
readwrite.c:46:6: warning: implicit declaration of function 'read'; did you mean 'read1'? [-Wimplicit-function-declaration]
   46 |  if (read(STDIN_FILENO,&c,1) != 0)
      |      ^~~~
      |      read1
readwrite.c: In function 'checkStatusAndConvCode':
readwrite.c:109:6: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
  109 |      strncpy(buf,codeMode[oc].socode,codeMode[oc].so_len);
      |      ^~~~~~~
readwrite.c:109:6: warning: incompatible implicit declaration of built-in function 'strncpy'
readwrite.c:6:1: note: include '<string.h>' or provide a declaration of 'strncpy'
    5 | #include "ctrlcode.h"
  +++ |+#include <string.h>
    6 | 
readwrite.c:150:5: warning: incompatible implicit declaration of built-in function 'strncpy'
  150 |     strncpy(buf,codeMode[oc].socode,codeMode[oc].so_len);
      |     ^~~~~~~
readwrite.c:150:5: note: include '<string.h>' or provide a declaration of 'strncpy'
readwrite.c: In function 'syncStatus':
readwrite.c:227:4: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  227 |    write(ttyno,codeMode[oc].socode,codeMode[oc].so_len);
      |    ^~~~~
      |    fwrite
readwrite.c: At top level:
readwrite.c:249:1: warning: return type defaults to 'int' [-Wimplicit-int]
  249 | writeTTYorg(ttyno,s,l,ic,oc,istatus,ostatus)
      | ^~~~~~~~~~~
readwrite.c:322:1: warning: return type defaults to 'int' [-Wimplicit-int]
  322 | writes(s)
      | ^~~~~~
readwrite.c: In function 'writes':
readwrite.c:324:20: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  324 | {       int    l = strlen(s);
      |                    ^~~~~~
readwrite.c:324:20: warning: incompatible implicit declaration of built-in function 'strlen'
readwrite.c:324:20: note: include '<string.h>' or provide a declaration of 'strlen'
readwrite.c: At top level:
readwrite.c:329:1: warning: return type defaults to 'int' [-Wimplicit-int]
  329 | write1(c)
      | ^~~~~~
readwrite.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int]
  335 | writeShTty(s,l)
      | ^~~~~~~~~~
readwrite.c:343:1: warning: return type defaults to 'int' [-Wimplicit-int]
  343 | writeTty(s,l)
      | ^~~~~~~~
readwrite.c:351:1: warning: return type defaults to 'int' [-Wimplicit-int]
  351 | writeShell1(c)
      | ^~~~~~~~~~~
readwrite.c:357:1: warning: return type defaults to 'int' [-Wimplicit-int]
  357 | writeShells(s)
      | ^~~~~~~~~~~
readwrite.c: In function 'writeShells':
readwrite.c:360:10: warning: incompatible implicit declaration of built-in function 'strlen'
  360 |  int l = strlen(s);
      |          ^~~~~~
readwrite.c:360:10: note: include '<string.h>' or provide a declaration of 'strlen'
readwrite.c: At top level:
readwrite.c:364:1: warning: return type defaults to 'int' [-Wimplicit-int]
  364 | writeTtyShell1(c)
      | ^~~~~~~~~~~~~~
readwrite.c:370:1: warning: return type defaults to 'int' [-Wimplicit-int]
  370 | writeTtyShells(s)
      | ^~~~~~~~~~~~~~
readwrite.c: In function 'writeTtyShells':
readwrite.c:373:10: warning: incompatible implicit declaration of built-in function 'strlen'
  373 |  int l = strlen(s);
      |          ^~~~~~
readwrite.c:373:10: note: include '<string.h>' or provide a declaration of 'strlen'
readwrite.c: At top level:
readwrite.c:377:1: warning: return type defaults to 'int' [-Wimplicit-int]
  377 | bell()
      | ^~~~
gcc   -DUSE_LOCALE -O  -DSKK_CONF=\"/etc/opt/pkg/skk.conf\"  -c terms.c
terms.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int]
   48 | getTCstr()
      | ^~~~~~~~
terms.c: In function 'getTCstr':
terms.c:52:2: warning: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration]
   52 |  tgetent(bp,getenv("TERM"));
      |  ^~~~~~~
      |  getenv
terms.c:45:52: warning: implicit declaration of function 'adjstr' [-Wimplicit-function-declaration]
   45 | #define GETSTR(v,s) {v = pt; suc = tgetstr(s,&pt); adjstr(&v,&pt);}
      |                                                    ^~~~~~
terms.c:54:2: note: in expansion of macro 'GETSTR'
   54 |  GETSTR(T_ce,"ce");   /* clear to the end of line */
      |  ^~~~~~
terms.c:58:6: warning: implicit declaration of function 'tgetflag' [-Wimplicit-function-declaration]
   58 |  if (tgetflag("bs")) T_kl = "\b"; /* cursor left */
      |      ^~~~~~~~
terms.c:78:3: warning: implicit declaration of function 'Exit'; did you mean 'exit'? [-Wimplicit-function-declaration]
   78 |   Exit(-1);
      |   ^~~~
      |   exit
terms.c:117:10: warning: implicit declaration of function 'tgetnum' [-Wimplicit-function-declaration]
  117 |  lines = tgetnum("li");
      |          ^~~~~~~
terms.c: In function 'setEnvirons':
terms.c:133:21: warning: implicit declaration of function 'getpid'; did you mean 'getpw'? [-Wimplicit-function-declaration]
  133 |  sprintf(buf, "%d", getpid());
      |                     ^~~~~~
      |                     getpw
terms.c:138:6: warning: implicit declaration of function 'msgLine' [-Wimplicit-function-declaration]
  138 |  if (msgLine() != (int)UseBottomLine) {
      |      ^~~~~~~
terms.c:182:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  182 |  q += strlen(q);
      |       ^~~~~~
terms.c:182:7: warning: incompatible implicit declaration of built-in function 'strlen'
terms.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include "fep.h"
  +++ |+#include <string.h>
    3 | 
terms.c: At top level:
terms.c:192:1: warning: return type defaults to 'int' [-Wimplicit-int]
  192 | setenv(key, value, flag)
      | ^~~~~~
terms.c: In function 'setenv':
terms.c:193:7: error: argument 'key' doesn't match prototype
  193 | char *key, *value;
      |       ^~~
In file included from skklib.h:10,
                 from fep.h:9,
                 from terms.c:2:
/usr/include/stdlib.h:249:12: error: prototype declaration
  249 | extern int setenv(const char *, const char *, int);
      |            ^~~~~~
terms.c:193:13: error: argument 'value' doesn't match prototype
  193 | char *key, *value;
      |             ^~~~~
In file included from skklib.h:10,
                 from fep.h:9,
                 from terms.c:2:
/usr/include/stdlib.h:249:12: error: prototype declaration
  249 | extern int setenv(const char *, const char *, int);
      |            ^~~~~~
terms.c:206:21: warning: incompatible implicit declaration of built-in function 'strlen'
  206 |  p = (char *)malloc(strlen(key)+strlen(value)+2);
      |                     ^~~~~~
terms.c:206:21: note: include '<string.h>' or provide a declaration of 'strlen'
terms.c: At top level:
terms.c:243:1: warning: return type defaults to 'int' [-Wimplicit-int]
  243 | adjstr(buf,ptr)
      | ^~~~~~
terms.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int]
  259 | msgLine()
      | ^~~~~~~
terms.c:264:1: warning: return type defaults to 'int' [-Wimplicit-int]
  264 | toMsg()
      | ^~~~~
terms.c: In function 'toMsg':
terms.c:267:3: warning: implicit declaration of function 'standout'; did you mean 'stdout'? [-Wimplicit-function-declaration]
  267 |   standout(1);
      |   ^~~~~~~~
      |   stdout
terms.c:269:3: warning: implicit declaration of function 'writes'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  269 |   writes(tgoto(T_TS,0,0));
      |   ^~~~~~
      |   fwrite
terms.c: At top level:
terms.c:276:1: warning: return type defaults to 'int' [-Wimplicit-int]
  276 | fromMsg()
      | ^~~~~~~
terms.c:287:1: warning: return type defaults to 'int' [-Wimplicit-int]
  287 | initFep()
      | ^~~~~~~
terms.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int]
  300 | termFep()
      | ^~~~~~~
terms.c:312:1: warning: return type defaults to 'int' [-Wimplicit-int]
  312 | underline(ctl)
      | ^~~~~~~~~
terms.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int]
  321 | standout(ctl)
      | ^~~~~~~~
terms.c:330:1: warning: return type defaults to 'int' [-Wimplicit-int]
  330 | saveCsr()
      | ^~~~~~~
terms.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int]
  335 | restoreCsr()
      | ^~~~~~~~~~
terms.c:340:1: warning: return type defaults to 'int' [-Wimplicit-int]
  340 | clearToEnd()
      | ^~~~~~~~~~
terms.c:345:1: warning: return type defaults to 'int' [-Wimplicit-int]
  345 | csrLeft(n)
      | ^~~~~~~
terms.c:354:1: warning: return type defaults to 'int' [-Wimplicit-int]
  354 | csrRight(n)
      | ^~~~~~~~
terms.c:363:1: warning: return type defaults to 'int' [-Wimplicit-int]
  363 | cls()
      | ^~~
terms.c:368:1: warning: return type defaults to 'int' [-Wimplicit-int]
  368 | erase(n)
      | ^~~~~
terms.c: In function 'erase':
terms.c:372:3: warning: implicit declaration of function 'write1'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  372 |   write1(' ');
      |   ^~~~~~
      |   fwrite
terms.c: At top level:
terms.c:377:1: warning: return type defaults to 'int' [-Wimplicit-int]
  377 | rubout(n)
      | ^~~~~~
*** [terms.o] Error code 1

make[1]: stopped in /home/pbulk/build/inputmethod/skkfep/work/skkfep
1 error

make[1]: stopped in /home/pbulk/build/inputmethod/skkfep/work/skkfep
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/inputmethod/skkfep/work/skkfep
1 error

bmake: stopped in /home/pbulk/build/inputmethod/skkfep/work/skkfep
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/inputmethod/skkfep
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/inputmethod/skkfep