+ 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/flodo-5.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/flodo-5.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for flodo-5.0
cd /home/pbulk/build/net/flodo/work/flodo-v5 && gcc  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include  -I/opt/pkg/include    -L/opt/pkg/lib   -lnsl -lsocket -Wl,-R/opt/pkg/lib -o flodo flodo.c hash.c local_mac.c -lpcap
flodo.c:154:23: error: field 'ether' has incomplete type
  154 |   struct ether_header ether;
      |                       ^~~~~
flodo.c: In function 'pkt_handler':
flodo.c:278:26: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  278 |  if (header->len < sizeof(*ether)) {
      |                          ^
flodo.c:283:33: error: invalid use of undefined type 'const struct ether_header'
  283 |  a.outbound = is_local_mac(ether->ether_shost);
      |                                 ^~
flodo.c:291:22: error: invalid use of undefined type 'const struct ether_header'
  291 |   switch (ntohs(ether->ether_type)) {
      |                      ^~
flodo.c:292:8: error: 'ETHERTYPE_IP' undeclared (first use in this function)
  292 |   case ETHERTYPE_IP:
      |        ^~~~~~~~~~~~
flodo.c:292:8: note: each undeclared identifier is reported only once for each function it appears in
flodo.c:294:40: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  294 |     (const struct ip *)(packet + sizeof(*ether)),
      |                                        ^
flodo.c:295:25: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  295 |     header->len - sizeof(*ether)) == 0)
      |                         ^
flodo.c:301:14: error: invalid use of undefined type 'const struct ether_header'
  301 |  a.x.ether = *ether;
      |              ^
flodo.c: In function 'main':
flodo.c:567:3: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
  567 |   dev = pcap_lookupdev(errbuf);
      |   ^~~
In file included from /home/pbulk/build/net/flodo/work/.buildlink/include/pcap.h:43,
                 from flodo.c:55:
/home/pbulk/build/net/flodo/work/.buildlink/include/pcap/pcap.h:394:16: note: declared here
  394 | PCAP_API char *pcap_lookupdev(char *)
      |                ^~~~~~~~~~~~~~
In file included from /usr/include/netpacket/packet.h:32,
                 from local_mac.c:44:
/usr/include/net/bpf.h:73:8: error: redefinition of 'struct bpf_program'
   73 | struct bpf_program {
      |        ^~~~~~~~~~~
In file included from /home/pbulk/build/net/flodo/work/.buildlink/include/pcap/pcap.h:133,
                 from /home/pbulk/build/net/flodo/work/.buildlink/include/pcap.h:43,
                 from local_mac.c:29:
/home/pbulk/build/net/flodo/work/.buildlink/include/pcap/bpf.h:117:8: note: originally defined here
  117 | struct bpf_program {
      |        ^~~~~~~~~~~
In file included from /usr/include/netpacket/packet.h:32,
                 from local_mac.c:44:
/usr/include/net/bpf.h:253:8: error: redefinition of 'struct bpf_insn'
  253 | struct bpf_insn {
      |        ^~~~~~~~
In file included from /home/pbulk/build/net/flodo/work/.buildlink/include/pcap/pcap.h:133,
                 from /home/pbulk/build/net/flodo/work/.buildlink/include/pcap.h:43,
                 from local_mac.c:29:
/home/pbulk/build/net/flodo/work/.buildlink/include/pcap/bpf.h:245:8: note: originally defined here
  245 | struct bpf_insn {
      |        ^~~~~~~~
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/flodo