+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/flodo-5.0/work.log
+ su pbulk -c '"$@"' make /opt/local/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 -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/local/include -I/usr/include  -I/opt/local/include   -I/usr/include  -L/opt/local/lib   -L/opt/local/gcc13/lib/gcc/x86_64-sun-solaris2.11/13.2.0 -Wl,-R/opt/local/gcc13/lib/gcc/x86_64-sun-solaris2.11/13.2.0 -lnsl -lsocket -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o flodo flodo.c hash.c local_mac.c -lpcap
flodo.c:154:37: error: field 'ether' has incomplete type
  154 |                 struct ether_header ether;
      |                                     ^~~~~
flodo.c: In function 'pkt_handler':
flodo.c:278:33: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  278 |         if (header->len < sizeof(*ether)) {
      |                                 ^
flodo.c:283:40: error: invalid use of undefined type 'const struct ether_header'
  283 |         a.outbound = is_local_mac(ether->ether_shost);
      |                                        ^~
flodo.c:291:36: error: invalid use of undefined type 'const struct ether_header'
  291 |                 switch (ntohs(ether->ether_type)) {
      |                                    ^~
flodo.c:292:22: error: 'ETHERTYPE_IP' undeclared (first use in this function)
  292 |                 case ETHERTYPE_IP:
      |                      ^~~~~~~~~~~~
flodo.c:292:22: note: each undeclared identifier is reported only once for each function it appears in
flodo.c:294:68: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  294 |                                 (const struct ip *)(packet + sizeof(*ether)),
      |                                                                    ^
flodo.c:295:53: error: invalid application of 'sizeof' to incomplete type 'const struct ether_header'
  295 |                                 header->len - sizeof(*ether)) == 0)
      |                                                     ^
flodo.c:301:21: error: invalid use of undefined type 'const struct ether_header'
  301 |         a.x.ether = *ether;
      |                     ^
flodo.c: In function 'main':
flodo.c:567:17: 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:395:18: note: declared here
  395 | 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:116:8: note: originally defined here
  116 | struct bpf_program {
      |        ^~~~~~~~~~~
/usr/include/net/bpf.h:253:8: error: redefinition of 'struct bpf_insn'
  253 | struct bpf_insn {
      |        ^~~~~~~~
/home/pbulk/build/net/flodo/work/.buildlink/include/pcap/bpf.h:244:8: note: originally defined here
  244 | struct bpf_insn {
      |        ^~~~~~~~
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/net/flodo