+ 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:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
In file included from main.c:22:
tirc.h:143:9: error: unknown type name 'FILE'
  143 |         FILE            *ch_logfile;
      |         ^~~~
In file included from /usr/include/features.h:490,
                 from /usr/include/time.h:25,
                 from tirc.h:29,
                 from main.c:22:
tirc.h:416:25: error: unknown type name 'fd_set'
  416 | int     dcc_fd_set __P((fd_set *));
      |                         ^~~~~~
tirc.h:417:21: error: unknown type name 'fd_set'
  417 | void    ctldcc __P((fd_set *));
      |                     ^~~~~~
main.c: In function 'main':
main.c:140:26: error: storage size of 'it' isn't known
  140 |         struct itimerval it;
      |                          ^~
main.c:145:26: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  145 |         newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
      |                          ^~~~~~
main.c:73:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   72 | #include "dl.h"
  +++ |+#include <stdlib.h>
   73 | 
main.c:145:26: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
  145 |         newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
      |                          ^~~~~~
main.c:145:26: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:145:33: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  145 |         newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
      |                                 ^~~~~~
main.c:73:1: note: include '<string.h>' or provide a declaration of 'strlen'
   72 | #include "dl.h"
  +++ |+#include <string.h>
   73 | 
main.c:145:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  145 |         newname = chkmem(malloc(strlen(VERSTRING) + strlen(": ")
      |                                 ^~~~~~
main.c:145:33: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:147:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  147 |         sprintf(newname, "%s: %s", VERSTRING, myname);
      |         ^~~~~~~
main.c:73:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   72 | #include "dl.h"
  +++ |+#include <stdio.h>
   73 | 
main.c:147:9: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  147 |         sprintf(newname, "%s: %s", VERSTRING, myname);
      |         ^~~~~~~
main.c:147:9: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:154:9: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
  154 |         setlocale(LC_ALL, "");
      |         ^~~~~~~~~
main.c:154:19: error: 'LC_ALL' undeclared (first use in this function); did you mean 'P_ALL'?
  154 |         setlocale(LC_ALL, "");
      |                   ^~~~~~
      |                   P_ALL
main.c:154:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:195:9: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
  195 |         strncpy(osstring, HOSTTYPE, 64);
      |         ^~~~~~~
main.c:195:9: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:195:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
main.c:195:9: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:204:9: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
  204 |         strcat(optsstring, " ansi-colours");
      |         ^~~~~~
main.c:204:9: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:204:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch]
main.c:204:9: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:214:29: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
  214 |                 while ((c = getopt(argc, argv, "n:h:s:p:x:dv")) != EOF)
      |                             ^~~~~~
main.c:214:68: error: 'EOF' undeclared (first use in this function)
  214 |                 while ((c = getopt(argc, argv, "n:h:s:p:x:dv")) != EOF)
      |                                                                    ^~~
main.c:214:68: note: 'EOF' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:217:33: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  217 |                                 printf("%s (%s) %s\n", version, osstring,
      |                                 ^~~~~~
main.c:217:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:217:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:217:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:219:33: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  219 |                                 exit(0);
      |                                 ^~~~
main.c:219:33: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:219:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
main.c:219:33: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:236:40: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  236 |                                 port = atoi(optarg);
      |                                        ^~~~
main.c:247:33: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
  247 |                                 fprintf(stderr, "%s", usage);
      |                                 ^~~~~~~
main.c:247:33: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:247:33: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
main.c:247:33: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:247:41: error: 'stderr' undeclared (first use in this function)
  247 |                                 fprintf(stderr, "%s", usage);
      |                                         ^~~~~~
main.c:247:41: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:252:20: warning: implicit declaration of function 'getpwuid' [-Wimplicit-function-declaration]
  252 |         if ((pwe = getpwuid(getuid())) == NULL) {
      |                    ^~~~~~~~
main.c:252:29: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
  252 |         if ((pwe = getpwuid(getuid())) == NULL) {
      |                             ^~~~~~
main.c:252:18: warning: assignment to 'struct passwd *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  252 |         if ((pwe = getpwuid(getuid())) == NULL) {
      |                  ^
main.c:253:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  253 |                 fprintf(stderr, "%s: cannot getpwuid()\n", myname);
      |                 ^~~~~~~
main.c:253:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:256:14: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]
  256 |         if (!geteuid()) {
      |              ^~~~~~~
main.c:257:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  257 |                 fprintf(stderr, "%s: don't use IRC as superuser.\n", myname);
      |                 ^~~~~~~
main.c:257:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:260:38: error: invalid use of undefined type 'struct passwd'
  260 |         loginname = chkmem(Strdup(pwe->pw_name));
      |                                      ^~
main.c:261:17: error: invalid use of undefined type 'struct passwd'
  261 |         if (!pwe->pw_gecos || !strlen(pwe->pw_gecos)) {
      |                 ^~
main.c:261:42: error: invalid use of undefined type 'struct passwd'
  261 |         if (!pwe->pw_gecos || !strlen(pwe->pw_gecos)) {
      |                                          ^~
main.c:262:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  262 |                 fprintf(stderr, "%s: illegal GECOS field in password file.",
      |                 ^~~~~~~
main.c:262:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:266:37: error: invalid use of undefined type 'struct passwd'
  266 |         realname = chkmem(Strdup(pwe->pw_gecos));
      |                                     ^~
main.c:267:18: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
  267 |         if ((t = strchr(realname, ',')) != NULL)
      |                  ^~~~~~
main.c:267:18: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:267:18: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch]
main.c:267:18: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:271:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  271 |         fprintf(stderr, ">>> %s (%s) %s\n", version, osstring, optsstring);
      |         ^~~~~~~
main.c:271:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:283:21: warning: implicit declaration of function 'getenv'; did you mean 'tgetent'? [-Wimplicit-function-declaration]
  283 |         if ((home = getenv("HOME")) == NULL)
      |                     ^~~~~~
      |                     tgetent
main.c:283:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  283 |         if ((home = getenv("HOME")) == NULL)
      |                   ^
main.c:288:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  288 |         free(rcfn);
      |         ^~~~
main.c:288:9: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:288:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
main.c:288:9: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:337:9: warning: implicit declaration of function 'setitimer' [-Wimplicit-function-declaration]
  337 |         setitimer(ITIMER_REAL, &it, NULL);
      |         ^~~~~~~~~
main.c:337:19: error: 'ITIMER_REAL' undeclared (first use in this function)
  337 |         setitimer(ITIMER_REAL, &it, NULL);
      |                   ^~~~~~~~~~~
main.c: In function 'readrc':
main.c:424:9: error: unknown type name 'FILE'
  424 |         FILE *rc;
      |         ^~~~
main.c:424:9: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:431:19: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
  431 |         if ((rc = fopen(f, "r")) == NULL) {
      |                   ^~~~~
main.c:431:19: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:431:17: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  431 |         if ((rc = fopen(f, "r")) == NULL) {
      |                 ^
main.c:435:25: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  435 |                         fprintf(stderr, "Couldn't open %s\n", f);
      |                         ^~~~~~~
main.c:435:25: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:435:33: error: 'stderr' undeclared (first use in this function)
  435 |                         fprintf(stderr, "Couldn't open %s\n", f);
      |                                 ^~~~~~
main.c:435:33: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:442:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  442 |                 fprintf(stderr, "Sourcing %s\n", f);
      |                 ^~~~~~~
main.c:442:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:444:17: warning: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
  444 |         while (!feof(rc)) {
      |                 ^~~~
main.c:447:22: warning: implicit declaration of function 'fgets'; did you mean 'dgets'? [-Wimplicit-function-declaration]
  447 |                 if ((fgets(line, BUFSZ, rc)) == NULL)
      |                      ^~~~~
      |                      dgets
main.c:447:46: warning: comparison between pointer and integer
  447 |                 if ((fgets(line, BUFSZ, rc)) == NULL)
      |                                              ^~
main.c:449:26: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch]
  449 |                 if ((l = strchr(line, '\n')) != NULL)
      |                          ^~~~~~
main.c:449:26: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:476:22: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  476 |                 if (!strncmp(l, "immediate", 9)) {
      |                      ^~~~~~~
main.c:476:22: note: include '<string.h>' or provide a declaration of 'strncmp'
main.c:476: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]
  476 |                 if (!strncmp(l, "immediate", 9)) {
      |                                              ^
<built-in>: note: built-in 'strncmp' declared here
main.c:478:30: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
  478 |                         if (!isspace(*l))
      |                              ^~~~~~~
main.c:73:1: note: include '<ctype.h>' or provide a declaration of 'isspace'
   72 | #include "dl.h"
  +++ |+#include <ctype.h>
   73 | 
main.c:496:37: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
  496 |                         al = chkmem(malloc(sizeof *al));
      |                                     ^~~~~~
main.c:496:37: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:522:56: 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]
  522 |                         if (!strncmp("hostname", left, 8)) {
      |                                                        ^
<built-in>: note: built-in 'strncmp' declared here
main.c:525:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  525 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:525:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:530:54: 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]
  530 |                         if (!strncmp("server", left, 6)) {
      |                                                      ^
<built-in>: note: built-in 'strncmp' declared here
main.c:533:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  533 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:533:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:539:52: 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]
  539 |                         if (!strncmp("nick", left, 4)) {
      |                                                    ^
<built-in>: note: built-in 'strncmp' declared here
main.c:542:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  542 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:542:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:544:33: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  544 |                                 strncpy(nick, right, NICKSZ);
      |                                 ^~~~~~~
main.c:544:33: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:548:52: 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]
  548 |                         if (!strncmp("port", left, 4)) {
      |                                                    ^
<built-in>: note: built-in 'strncmp' declared here
main.c:551:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  551 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:551:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:556:52: 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]
  556 |                         if (!strncmp("pass", left, 4)) {
      |                                                    ^
<built-in>: note: built-in 'strncmp' declared here
main.c:559:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  559 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:559:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:564:54: 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]
  564 |                         if (!strncmp("clname", left, 6)) {
      |                                                      ^
<built-in>: note: built-in 'strncmp' declared here
main.c:565:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  565 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:565:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:570:56: 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]
  570 |                         if (!strncmp("realname", left, 8)) {
      |                                                        ^
<built-in>: note: built-in 'strncmp' declared here
main.c:571:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  571 |                                 if (!strlen(right))
      |                                      ^~~~~~
main.c:571:38: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:574:41: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
  574 |                                         free(realname);
      |                                         ^~~~
main.c:574:41: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:578:30: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  578 |                         if (!strlen(left))
      |                              ^~~~~~
main.c:578:30: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:584:9: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
  584 |         fclose(rc);
      |         ^~~~~~
main.c: In function 'splitas':
main.c:608:20: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch]
  608 |         if ((sep = strchr(line, '=')) == NULL) {
      |                    ^~~~~~
main.c:608:20: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:610:17: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  610 |                 strcpy(left, line);
      |                 ^~~~~~
main.c:610:17: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:610:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
main.c:610:17: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:613:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  613 |         strncpy(left, line, (unsigned)(sep-line));
      |         ^~~~~~~
main.c:613:9: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:614:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
  614 |         strcpy(right, skipws(sep+1));
      |         ^~~~~~
main.c:614:9: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c: In function 'synterr':
main.c:628:13: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  628 |             fprintf(stderr, "%s:%d, error: syntax error\n", f, l);
      |             ^~~~~~~
main.c:628:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:628:21: error: 'stderr' undeclared (first use in this function)
  628 |             fprintf(stderr, "%s:%d, error: syntax error\n", f, l);
      |                     ^~~~~~
main.c:628:21: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c: In function 'linkup':
main.c:641:28: error: storage size of 'sa' isn't known
  641 |         struct sockaddr_in sa, local;
      |                            ^~
main.c:641:32: error: storage size of 'local' isn't known
  641 |         struct sockaddr_in sa, local;
      |                                ^~~~~
main.c:646:19: warning: implicit declaration of function 'gethostbyname'; did you mean 'getchanbyname'? [-Wimplicit-function-declaration]
  646 |         if ((he = gethostbyname(srvdn)) == NULL) {
      |                   ^~~~~~~~~~~~~
      |                   getchanbyname
main.c:646:17: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  646 |         if ((he = gethostbyname(srvdn)) == NULL) {
      |                 ^
main.c:651:19: warning: implicit declaration of function 'getprotobyname' [-Wimplicit-function-declaration]
  651 |         if ((pe = getprotobyname("tcp")) == NULL) {
      |                   ^~~~~~~~~~~~~~
main.c:651:17: warning: assignment to 'struct protoent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  651 |         if ((pe = getprotobyname("tcp")) == NULL) {
      |                 ^
main.c:656:18: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
  656 |         if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
      |                  ^~~~~~
main.c:656:25: error: 'AF_INET' undeclared (first use in this function)
  656 |         if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
      |                         ^~~~~~~
main.c:656:34: error: 'SOCK_STREAM' undeclared (first use in this function)
  656 |         if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
      |                                  ^~~~~~~~~~~
main.c:656:49: error: invalid use of undefined type 'struct protoent'
  656 |         if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1) {
      |                                                 ^~
main.c:662:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  662 |         memset(&sa, 0, sizeof sa);
      |         ^~~~~~
main.c:662:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:662:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
main.c:662:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:663:23: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration]
  663 |         sa.sin_port = htons(port);
      |                       ^~~~~
main.c:665:9: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
  665 |         memmove(&sa.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
      |         ^~~~~~~
main.c:665:9: note: include '<string.h>' or provide a declaration of 'memmove'
main.c:665:9: warning: incompatible implicit declaration of built-in function 'memmove' [-Wbuiltin-declaration-mismatch]
main.c:665:9: note: include '<string.h>' or provide a declaration of 'memmove'
main.c:665:33: error: invalid use of undefined type 'struct hostent'
  665 |         memmove(&sa.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
      |                                 ^~
main.c:665:63: error: invalid use of undefined type 'struct hostent'
  665 |         memmove(&sa.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
      |                                                               ^~
main.c:670:12: warning: implicit declaration of function 'getsockname'; did you mean 'getcolourname'? [-Wimplicit-function-declaration]
  670 |            getsockname(s, (struct sockaddr *) &local, &loc_addrlen);
      |            ^~~~~~~~~~~
      |            getcolourname
main.c:672:20: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  672 |            if ((he = gethostbyname(hostname)) == NULL) {
      |                    ^
main.c:679:39: error: invalid use of undefined type 'struct hostent'
  679 |            memmove(&local.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
      |                                       ^~
main.c:679:69: error: invalid use of undefined type 'struct hostent'
  679 |            memmove(&local.sin_addr, he->h_addr_list[0], (unsigned)he->h_length);
      |                                                                     ^~
main.c:681:16: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration]
  681 |            if (bind(s, (struct sockaddr *)&local, sizeof local) < 0) {
      |                ^~~~
main.c:690:13: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration]
  690 |         if (connect(s, (struct sockaddr *)&sa, sizeof sa) < 0) {
      |             ^~~~~~~
main.c: In function 'sig_exit':
main.c:709:17: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  709 |                 sprintf(t, "QUIT :received signal %d\r\n", s);
      |                 ^~~~~~~
main.c:709:17: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:710:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
  710 |                 write(sock, t, strlen(t));
      |                 ^~~~~
main.c:710:32: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  710 |                 write(sock, t, strlen(t));
      |                                ^~~~~~
main.c:710:32: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:712:9: warning: implicit declaration of function '_exit' [-Wimplicit-function-declaration]
  712 |         _exit(1);
      |         ^~~~~
main.c:712:9: warning: incompatible implicit declaration of built-in function '_exit' [-Wbuiltin-declaration-mismatch]
main.c: In function 'chkmem':
main.c:756:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  756 |         fprintf(stderr, "\n%s: memory allocation failed, exiting\n", myname);
      |         ^~~~~~~
main.c:756:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:756:17: error: 'stderr' undeclared (first use in this function)
  756 |         fprintf(stderr, "\n%s: memory allocation failed, exiting\n", myname);
      |                 ^~~~~~
main.c:756:17: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c: In function 'our_signal':
main.c:778:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  778 |                 fprintf(stderr, "%s: in our_signal(): ", myname);
      |                 ^~~~~~~
main.c:778:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:778:25: error: 'stderr' undeclared (first use in this function)
  778 |                 fprintf(stderr, "%s: in our_signal(): ", myname);
      |                         ^~~~~~
main.c:778:25: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:779:17: warning: implicit declaration of function 'perror'; did you mean 'Strerror'? [-Wimplicit-function-declaration]
  779 |                 perror(NULL);
      |                 ^~~~~~
      |                 Strerror
main.c: In function 'sigtstp':
main.c:804:13: warning: implicit declaration of function 'getpgrp' [-Wimplicit-function-declaration]
  804 |         if (getpgrp() == getsid(getpid())) {
      |             ^~~~~~~
main.c:804:26: warning: implicit declaration of function 'getsid' [-Wimplicit-function-declaration]
  804 |         if (getpgrp() == getsid(getpid())) {
      |                          ^~~~~~
main.c:804:33: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
  804 |         if (getpgrp() == getsid(getpid())) {
      |                                 ^~~~~~
main.c:815:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  815 |                 fprintf(stderr, "\n%sWarning: suspending tirc inhibits server \
      |                 ^~~~~~~
main.c:815:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:815:25: error: 'stderr' undeclared (first use in this function)
  815 |                 fprintf(stderr, "\n%sWarning: suspending tirc inhibits server \
      |                         ^~~~~~
main.c:815:25: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:832:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  832 |                 fprintf(stderr, "\nPlease fix your terminal\n");
      |                 ^~~~~~~
main.c:832:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c: In function 'rccommands':
main.c:886:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  886 |                 strncpy(cmdt, al->al_text, BUFSZ-1);
      |                 ^~~~~~~
main.c:886:17: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c: In function 'pq_add':
main.c:945:22: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
  945 |         pqe = chkmem(malloc(sizeof (*pqe)));
      |                      ^~~~~~
main.c:945:22: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c: In function 'pq_del':
main.c:961:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
  961 |                 free(pqe);
      |                 ^~~~
main.c:961:17: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c: In function 'check_mailbox':
main.c:1011:21: error: storage size of 'statbuf' isn't known
 1011 |         struct stat statbuf;
      |                     ^~~~~~~
main.c:1016:22: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1016 |         if ((mbfname = getenv("MAIL")) == NULL)
      |                      ^
main.c:1018:13: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
 1018 |         if (stat(mbfname, &statbuf) == 0) {
      |             ^~~~
*** [main.o] Error code 1

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

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

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

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/chat/tirc