+ 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/xl2tpd-20171013/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xl2tpd-20171013/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xl2tpd-20171013
--- pfc ---
--- xl2tpd.o ---
--- pty.o ---
--- misc.o ---
--- pfc ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -Os -Wall -DSANITY -DNETBSD -DIP_ALLOCATION -c contrib/pfc.c
--- xl2tpd.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -Os -Wall -DSANITY -DNETBSD -DIP_ALLOCATION  -c xl2tpd.c
--- pty.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -Os -Wall -DSANITY -DNETBSD -DIP_ALLOCATION  -c pty.c
--- misc.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -Os -Wall -DSANITY -DNETBSD -DIP_ALLOCATION  -c misc.c
--- pfc ---
contrib/pfc.c:25:10: fatal error: pcap.h: No such file or directory
   25 | #include <pcap.h>
      |          ^~~~~~~~
compilation terminated.
*** [pfc] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/xl2tpd/work/xl2tpd-master
--- xl2tpd.o ---
In file included from xl2tpd.c:45:
l2tp.h:185:23: error: field 'my_addr' has incomplete type
  185 |     struct in_pktinfo my_addr;  /* Address of my endpoint */
      |                       ^~~~~~~
xl2tpd.c: In function 'start_pppd':
xl2tpd.c:570:13: warning: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Wimplicit-function-declaration]
  570 |             setenv( "CALLER_ID", c->dialing, 1 );
      |             ^~~~~~
      |             getenv
--- pty.o ---
In file included from l2tp.h:32,
                 from pty.c:31:
scheduler.h:27:20: error: field 'tv' has incomplete type
   27 |     struct timeval tv;          /* Scheduled time to execute */
      |                    ^~
In file included from l2tp.h:36:
call.h:90:20: error: field 'lastsent' has incomplete type
   90 |     struct timeval lastsent;    /* When did we last send something? */
      |                    ^~~~~~~~
pty.c:49:10: fatal error: util.h: No such file or directory
   49 | #include <util.h>
      |          ^~~~~~~~
compilation terminated.
*** [pty.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/xl2tpd/work/xl2tpd-master
--- xl2tpd.o ---
*** [xl2tpd.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/xl2tpd/work/xl2tpd-master
bmake: 3 errors

bmake: stopped making "all" in /home/pbulk/build/net/xl2tpd/work/xl2tpd-master
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/xl2tpd
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/xl2tpd