+ 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/modemd-19970221nb2/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/modemd-19970221nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for modemd-19970221nb2
all ===> common
cc -pipe -O2    -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/.. -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include -c atparse.c
atparse.c: In function 'atparse':
atparse.c:57:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   57 |   int i = strlen (string);
      |           ^~~~~~
atparse.c:49:1: note: include '<string.h>' or provide a declaration of 'strlen'
   48 | #include <stdlib.h>
  +++ |+#include <string.h>
   49 | 
atparse.c:57:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   57 |   int i = strlen (string);
      |           ^~~~~~
atparse.c:57:11: note: include '<string.h>' or provide a declaration of 'strlen'
atparse.c:73:8: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
   73 |   if (!strncasecmp (s, "at", 2))
      |        ^~~~~~~~~~~
atparse.c:73:30: warning: 'strncasecmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   73 |   if (!strncasecmp (s, "at", 2))
      |                              ^
<built-in>: note: built-in 'strncasecmp' declared here
atparse.c:117:7: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  117 |       memcpy (bp, s, n - s);
      |       ^~~~~~
atparse.c:117:7: note: include '<string.h>' or provide a declaration of 'memcpy'
atparse.c:117:7: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
atparse.c:117:7: note: include '<string.h>' or provide a declaration of 'memcpy'
cc -pipe -O2    -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/.. -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include -c compat.c
cc -pipe -O2    -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/.. -I/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include -c dialog.c
In file included from dialog.c:52:
dialog.c: In function 'modemAttn':
/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include/ttio.h:171:14: error: 'TIOCCDTR' undeclared (first use in this function); did you mean 'TIOCM_DTR'?
  171 |   ioctl (fd, TIOCCDTR, 0)
      |              ^~~~~~~~
dialog.c:66:7: note: in expansion of macro 'RESET_DTR'
   66 |       RESET_DTR (tty);
      |       ^~~~~~~~~
/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include/ttio.h:171:14: note: each undeclared identifier is reported only once for each function it appears in
  171 |   ioctl (fd, TIOCCDTR, 0)
      |              ^~~~~~~~
dialog.c:66:7: note: in expansion of macro 'RESET_DTR'
   66 |       RESET_DTR (tty);
      |       ^~~~~~~~~
/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include/ttio.h:199:28: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
  199 | #define DELAY_ONE_SECOND() sleep(2)
      |                            ^~~~~
dialog.c:68:7: note: in expansion of macro 'DELAY_ONE_SECOND'
   68 |       DELAY_ONE_SECOND();
      |       ^~~~~~~~~~~~~~~~
/home/pbulk/build/comms/modemd/work/modemd-970221/common/../include/ttio.h:166:14: error: 'TIOCSDTR' undeclared (first use in this function); did you mean 'TIOCM_DTR'?
  166 |   ioctl (fd, TIOCSDTR, 0)
      |              ^~~~~~~~
dialog.c:69:7: note: in expansion of macro 'SET_DTR'
   69 |       SET_DTR (tty);
      |       ^~~~~~~
dialog.c: In function 'modemInit':
dialog.c:177:18: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  177 |         count += strlen (*pp);
      |                  ^~~~~~
dialog.c:53:1: note: include '<string.h>' or provide a declaration of 'strlen'
   52 | #include "ttio.h"
  +++ |+#include <string.h>
   53 | 
dialog.c:177:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  177 |         count += strlen (*pp);
      |                  ^~~~~~
dialog.c:177:18: note: include '<string.h>' or provide a declaration of 'strlen'
*** Error code 1

Stop.
bmake[1]: stopped in /home/pbulk/build/comms/modemd/work/modemd-970221/common
*** Error code 1

Stop.
bmake: stopped in /home/pbulk/build/comms/modemd/work/modemd-970221
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/comms/modemd
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/comms/modemd