+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tirc-1.2nb4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tirc-1.2nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for tirc-1.2nb4
--- depend ---
--- main.o ---
--- depend ---
./mkdep.sh -I. *.c
--- main.o ---
cc -O2 -pipe -O2 -I/usr/pkg/include/ncurses -I. -I/usr/pkg/include/ncurses -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -D__USE_BSD -D__USE_BSD_SIGNAL -c main.c
In file included from /usr/include/time.h:25,
                 from tirc.h:29,
                 from main.c:22:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from main.c:22:
tirc.h:143:2: error: unknown type name 'FILE'
  FILE  *ch_logfile;
  ^~~~
In file included from /usr/include/features.h:438,
                 from /usr/include/time.h:25,
                 from tirc.h:29,
                 from main.c:22:
tirc.h:416:21: error: unknown type name 'fd_set'
 int dcc_fd_set __P((fd_set *));
                     ^~~~~~
tirc.h:417:18: error: unknown type name 'fd_set'
 void ctldcc __P((fd_set *));
                  ^~~~~~
main.c: In function 'main':
main.c:140:19: error: storage size of 'it' isn't known
  struct itimerval it;
                   ^~
main.c:145:19: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
                   ^~~~~~
main.c:145:19: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:145:19: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:73:1:
+#include <stdlib.h>
 
main.c:145:19:
  newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
                   ^~~~~~
main.c:145:26: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
                          ^~~~~~
main.c:145:26: warning: incompatible implicit declaration of built-in function 'strlen'
main.c:145:26: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:73:1:
+#include <string.h>
 
main.c:145:26:
  newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
                          ^~~~~~
main.c:147:2: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  sprintf(newname, "%s: %s", VERSTRING, myname);
  ^~~~~~~
main.c:147:2: warning: incompatible implicit declaration of built-in function 'sprintf'
main.c:147:2: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:73:1:
+#include <stdio.h>
 
main.c:147:2:
  sprintf(newname, "%s: %s", VERSTRING, myname);
  ^~~~~~~
main.c:154:2: warning: implicit declaration of function 'setlocale'; did you mean 'setlog'? [-Wimplicit-function-declaration]
  setlocale(LC_ALL, "");
  ^~~~~~~~~
  setlog
main.c:154:12: error: 'LC_ALL' undeclared (first use in this function); did you mean 'P_ALL'?
  setlocale(LC_ALL, "");
            ^~~~~~
            P_ALL
main.c:154:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:195:2: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
  strncpy(osstring, HOSTTYPE, 64);
  ^~~~~~~
main.c:195:2: warning: incompatible implicit declaration of built-in function 'strncpy'
main.c:195:2: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:204:2: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
  strcat(optsstring, " ansi-colours");
  ^~~~~~
main.c:204:2: warning: incompatible implicit declaration of built-in function 'strcat'
main.c:204:2: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:214:15: warning: implicit declaration of function 'getopt'; did you mean 'tgetent'? [-Wimplicit-function-declaration]
   while ((c = getopt(argc, argv, "n:h:s:p:x:dv")) != EOF)
               ^~~~~~
               tgetent
main.c:214:54: error: 'EOF' undeclared (first use in this function)
   while ((c = getopt(argc, argv, "n:h:s:p:x:dv")) != EOF)
                                                      ^~~
main.c:214:54: note: 'EOF' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:217:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("%s (%s) %s\n", version, osstring,
     ^~~~~~
main.c:217:5: warning: incompatible implicit declaration of built-in function 'printf'
main.c:217:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:219:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
     exit(0);
     ^~~~
main.c:219:5: warning: incompatible implicit declaration of built-in function 'exit'
main.c:219:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:236:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
     port = atoi(optarg);
            ^~~~
main.c:247:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
     fprintf(stderr, "%s", usage);
     ^~~~~~~
main.c:247:5: warning: incompatible implicit declaration of built-in function 'fprintf'
main.c:247:5: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:247:13: error: 'stderr' undeclared (first use in this function)
     fprintf(stderr, "%s", usage);
             ^~~~~~
main.c:247:13: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:252:13: warning: implicit declaration of function 'getpwuid' [-Wimplicit-function-declaration]
  if ((pwe = getpwuid(getuid())) == NULL) {
             ^~~~~~~~
main.c:252:22: warning: implicit declaration of function 'getuid'; did you mean 'setcmd'? [-Wimplicit-function-declaration]
  if ((pwe = getpwuid(getuid())) == NULL) {
                      ^~~~~~
                      setcmd
main.c:252:11: warning: assignment to 'struct passwd *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((pwe = getpwuid(getuid())) == NULL) {
           ^
main.c:253:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "%s: cannot getpwuid()\n", myname);
   ^~~~~~~
main.c:253:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:256:7: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]
  if (!geteuid()) {
       ^~~~~~~
main.c:257:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "%s: don't use IRC as superuser.\n", myname);
   ^~~~~~~
main.c:257:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:260:31: error: dereferencing pointer to incomplete type 'struct passwd'
  loginname = chkmem(Strdup(pwe->pw_name));
                               ^~
main.c:262:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "%s: illegal GECOS field in password file.",
   ^~~~~~~
main.c:262:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:267:11: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
  if ((t = strchr(realname, ',')) != NULL)
           ^~~~~~
main.c:267:11: warning: incompatible implicit declaration of built-in function 'strchr'
main.c:267:11: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:271:2: warning: incompatible implicit declaration of built-in function 'fprintf'
  fprintf(stderr, ">>> %s (%s) %s\n", version, osstring, optsstring);
  ^~~~~~~
main.c:271:2: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:283:14: warning: implicit declaration of function 'getenv'; did you mean 'tgetent'? [-Wimplicit-function-declaration]
  if ((home = getenv("HOME")) == NULL)
              ^~~~~~
              tgetent
main.c:283:12: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((home = getenv("HOME")) == NULL)
            ^
main.c:288:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  free(rcfn);
  ^~~~
main.c:288:2: warning: incompatible implicit declaration of built-in function 'free'
main.c:288:2: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:337:2: warning: implicit declaration of function 'setitimer'; did you mean 'stime'? [-Wimplicit-function-declaration]
  setitimer(ITIMER_REAL, &it, NULL);
  ^~~~~~~~~
  stime
main.c:337:12: error: 'ITIMER_REAL' undeclared (first use in this function)
  setitimer(ITIMER_REAL, &it, NULL);
            ^~~~~~~~~~~
main.c: In function 'readrc':
main.c:424:2: error: unknown type name 'FILE'
  FILE *rc;
  ^~~~
main.c:424:2: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:431:12: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
  if ((rc = fopen(f, "r")) == NULL) {
            ^~~~~
main.c:431:12: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:431:10: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((rc = fopen(f, "r")) == NULL) {
          ^
main.c:435:4: warning: incompatible implicit declaration of built-in function 'fprintf'
    fprintf(stderr, "Couldn't open %s\n", f);
    ^~~~~~~
main.c:435:4: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:435:12: error: 'stderr' undeclared (first use in this function)
    fprintf(stderr, "Couldn't open %s\n", f);
            ^~~~~~
main.c:435:12: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:442:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "Sourcing %s\n", f);
   ^~~~~~~
main.c:442:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:444:10: warning: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
  while (!feof(rc)) {
          ^~~~
main.c:447:8: warning: implicit declaration of function 'fgets'; did you mean 'dgets'? [-Wimplicit-function-declaration]
   if ((fgets(line, BUFSZ, rc)) == NULL)
        ^~~~~
        dgets
main.c:447:32: warning: comparison between pointer and integer
   if ((fgets(line, BUFSZ, rc)) == NULL)
                                ^~
main.c:449:12: warning: incompatible implicit declaration of built-in function 'strchr'
   if ((l = strchr(line, '\n')) != NULL)
            ^~~~~~
main.c:449:12: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:476:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
   if (!strncmp(l, "immediate", 9)) {
        ^~~~~~~
main.c:478:9: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
    if (!isspace(*l))
         ^~~~~~~
main.c:496:16: warning: incompatible implicit declaration of built-in function 'malloc'
    al = chkmem(malloc(sizeof *al));
                ^~~~~~
main.c:496:16: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:525:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:525:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:533:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:533:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:542:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:542:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:544:5: warning: incompatible implicit declaration of built-in function 'strncpy'
     strncpy(nick, right, NICKSZ);
     ^~~~~~~
main.c:544:5: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:551:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:551:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:559:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:559:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:565:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:565:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:571:10: warning: incompatible implicit declaration of built-in function 'strlen'
     if (!strlen(right))
          ^~~~~~
main.c:571:10: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:574:6: warning: incompatible implicit declaration of built-in function 'free'
      free(realname);
      ^~~~
main.c:574:6: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:578:9: warning: incompatible implicit declaration of built-in function 'strlen'
    if (!strlen(left))
         ^~~~~~
main.c:578:9: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:584:2: warning: implicit declaration of function 'fclose'; did you mean 'clock'? [-Wimplicit-function-declaration]
  fclose(rc);
  ^~~~~~
  clock
main.c: In function 'splitas':
main.c:608:13: warning: incompatible implicit declaration of built-in function 'strchr'
  if ((sep = strchr(line, '=')) == NULL) {
             ^~~~~~
main.c:608:13: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:610:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
   strcpy(left, line);
   ^~~~~~
main.c:610:3: warning: incompatible implicit declaration of built-in function 'strcpy'
main.c:610:3: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:613:2: warning: incompatible implicit declaration of built-in function 'strncpy'
  strncpy(left, line, (unsigned)(sep-line));
  ^~~~~~~
main.c:613:2: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:614:2: warning: incompatible implicit declaration of built-in function 'strcpy'
  strcpy(right, skipws(sep+1));
  ^~~~~~
main.c:614:2: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c: In function 'synterr':
main.c:628:6: warning: incompatible implicit declaration of built-in function 'fprintf'
      fprintf(stderr, "%s:%d, error: syntax error\n", f, l);
      ^~~~~~~
main.c:628:6: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:628:14: error: 'stderr' undeclared (first use in this function)
      fprintf(stderr, "%s:%d, error: syntax error\n", f, l);
              ^~~~~~
main.c:628:14: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c: In function 'linkup':
main.c:641:21: error: storage size of 'sa' isn't known
  struct sockaddr_in sa, local;
                     ^~
main.c:641:25: error: storage size of 'local' isn't known
  struct sockaddr_in sa, local;
                         ^~~~~
main.c:646:12: warning: implicit declaration of function 'gethostbyname'; did you mean 'getchanbyname'? [-Wimplicit-function-declaration]
  if ((he = gethostbyname(srvdn)) == NULL) {
            ^~~~~~~~~~~~~
            getchanbyname
main.c:646:10: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((he = gethostbyname(srvdn)) == NULL) {
          ^
main.c:651:12: warning: implicit declaration of function 'getprotobyname'; did you mean 'getcolourname'? [-Wimplicit-function-declaration]
  if ((pe = getprotobyname("tcp")) == NULL) {
            ^~~~~~~~~~~~~~
            getcolourname
main.c:651:10: warning: assignment to 'struct protoent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((pe = getprotobyname("tcp")) == NULL) {
          ^
main.c:656:11: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
  if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
           ^~~~~~
main.c:656:18: error: 'AF_INET' undeclared (first use in this function)
  if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
                  ^~~~~~~
main.c:656:27: error: 'SOCK_STREAM' undeclared (first use in this function)
  if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
                           ^~~~~~~~~~~
main.c:656:42: error: dereferencing pointer to incomplete type 'struct protoent'
  if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
                                          ^~
main.c:662:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  memset(&sa, 0, sizeof sa);
  ^~~~~~
main.c:662:2: warning: incompatible implicit declaration of built-in function 'memset'
main.c:662:2: note: include '<string.h>' or provide a declaration of 'memset'
main.c:663:16: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration]
  sa.sin_port = htons(port);
                ^~~~~
main.c:665:2: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
  memmove(&sa.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
  ^~~~~~~
main.c:665:2: warning: incompatible implicit declaration of built-in function 'memmove'
main.c:665:2: note: include '<string.h>' or provide a declaration of 'memmove'
main.c:665:26: error: dereferencing pointer to incomplete type 'struct hostent'
  memmove(&sa.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
                          ^~
main.c:670:5: warning: implicit declaration of function 'getsockname'; did you mean 'getcolourname'? [-Wimplicit-function-declaration]
     getsockname(s, (struct sockaddr *) &local, &loc_addrlen);
     ^~~~~~~~~~~
     getcolourname
main.c:672:13: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     if ((he = gethostbyname(hostname)) == NULL) {
             ^
main.c:681:9: warning: implicit declaration of function 'bind'; did you mean 'min'? [-Wimplicit-function-declaration]
     if (bind(s, (struct sockaddr *)&local, sizeof local) < 0) {
         ^~~~
         min
main.c:690:6: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration]
  if (connect(s, (struct sockaddr *)&sa, sizeof sa) < 0) {
      ^~~~~~~
main.c: In function 'sig_exit':
main.c:709:3: warning: incompatible implicit declaration of built-in function 'sprintf'
   sprintf(t, "QUIT :received signal %d\r\n", s);
   ^~~~~~~
main.c:709:3: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:710:3: warning: implicit declaration of function 'write'; did you mean 'wait4'? [-Wimplicit-function-declaration]
   write(sock, t, strlen(t));
   ^~~~~
   wait4
main.c:710:18: warning: incompatible implicit declaration of built-in function 'strlen'
   write(sock, t, strlen(t));
                  ^~~~~~
main.c:710:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:712:2: warning: implicit declaration of function '_exit' [-Wimplicit-function-declaration]
  _exit(1);
  ^~~~~
main.c:712:2: warning: incompatible implicit declaration of built-in function '_exit'
main.c: In function 'chkmem':
main.c:756:2: warning: incompatible implicit declaration of built-in function 'fprintf'
  fprintf(stderr, "\n%s: memory allocation failed, exiting\n", myname);
  ^~~~~~~
main.c:756:2: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:756:10: error: 'stderr' undeclared (first use in this function)
  fprintf(stderr, "\n%s: memory allocation failed, exiting\n", myname);
          ^~~~~~
main.c:756:10: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c: In function 'our_signal':
main.c:778:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "%s: in our_signal(): ", myname);
   ^~~~~~~
main.c:778:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:778:11: error: 'stderr' undeclared (first use in this function)
   fprintf(stderr, "%s: in our_signal(): ", myname);
           ^~~~~~
main.c:778:11: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:779:3: warning: implicit declaration of function 'perror'; did you mean 'Strerror'? [-Wimplicit-function-declaration]
   perror(NULL);
   ^~~~~~
   Strerror
main.c: In function 'sigtstp':
main.c:804:6: warning: implicit declaration of function 'getpgrp' [-Wimplicit-function-declaration]
  if (getpgrp() == getsid(getpid())) {
      ^~~~~~~
main.c:804:19: warning: implicit declaration of function 'getsid'; did you mean 'tgetstr'? [-Wimplicit-function-declaration]
  if (getpgrp() == getsid(getpid())) {
                   ^~~~~~
                   tgetstr
main.c:804:26: warning: implicit declaration of function 'getpid'; did you mean 'waitpid'? [-Wimplicit-function-declaration]
  if (getpgrp() == getsid(getpid())) {
                          ^~~~~~
                          waitpid
main.c:815:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "\n%sWarning: suspending tirc inhibits server \
   ^~~~~~~
main.c:815:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:815:11: error: 'stderr' undeclared (first use in this function)
   fprintf(stderr, "\n%sWarning: suspending tirc inhibits server \
           ^~~~~~
main.c:815:11: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:832:3: warning: incompatible implicit declaration of built-in function 'fprintf'
   fprintf(stderr, "\nPlease fix your terminal\n");
   ^~~~~~~
main.c:832:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c: In function 'rccommands':
main.c:886:3: warning: incompatible implicit declaration of built-in function 'strncpy'
   strncpy(cmdt, al->al_text, BUFSZ-1);
   ^~~~~~~
main.c:886:3: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c: In function 'pq_add':
main.c:945:15: warning: incompatible implicit declaration of built-in function 'malloc'
  pqe = chkmem(malloc(sizeof (*pqe)));
               ^~~~~~
main.c:945:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c: In function 'pq_del':
main.c:961:3: warning: incompatible implicit declaration of built-in function 'free'
   free(pqe);
   ^~~~
main.c:961:3: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c: In function 'check_mailbox':
main.c:1011:14: error: storage size of 'statbuf' isn't known
  struct stat statbuf;
              ^~~~~~~
main.c:1016:15: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  if ((mbfname = getenv("MAIL")) == NULL)
               ^
main.c:1018:6: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
  if (stat(mbfname, &statbuf) == 0) {
      ^~~~
*** [main.o] Error code 1

bmake: stopped in /home/pbulk/build/chat/tirc/work/tirc-1.2
1 error

bmake: stopped in /home/pbulk/build/chat/tirc/work/tirc-1.2
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/chat/tirc
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/chat/tirc