+ 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/rp-pppoe-3.8nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rp-pppoe-3.8nb2/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for rp-pppoe-3.8nb2
cd libevent && /opt/pkg/bin/bmake
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -Wstrict-prototypes -ansi -I.. -c -o event.o event.c
event.c:17:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   17 | static char const RCSID[] =
      |                   ^~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -Wstrict-prototypes -ansi -I.. -c -o event_tcp.o event_tcp.c
event_tcp.c:14:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   14 | static char const RCSID[] =
      |                   ^~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -Wstrict-prototypes -ansi -I.. -c -o hash.o hash.c
hash.c:17:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   17 | static char const RCSID[] =
      |                   ^~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -Wstrict-prototypes -ansi -I.. -c -o event_sig.o event_sig.c
event_sig.c:17:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   17 | static char const RCSID[] =
      |                   ^~~~~
rm -f libevent.a
ar -cq libevent.a event.o event_tcp.o hash.o event_sig.o
ranlib libevent.a
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -Wstrict-prototypes -ansi    '-DPPPOE_PATH="/opt/pkg/sbin/pppoe"' '-DPPPD_PATH="pppd"'  '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"'  '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.8"' -c -o pppoe.o pppoe.c
In file included from pppoe.c:19:
pppoe.h:222:19: error: field 'ethHdr' has incomplete type
  222 |     struct ethhdr ethHdr;       /* Ethernet header */
      |                   ^~~~~~
pppoe.h:233:27: error: 'ETH_DATA_LEN' undeclared here (not in a function)
  233 |     unsigned char payload[ETH_DATA_LEN]; /* A bit of room to spare */
      |                           ^~~~~~~~~~~~
pppoe.h:270:25: error: 'ETH_ALEN' undeclared here (not in a function)
  270 |     unsigned char myEth[ETH_ALEN]; /* My MAC address */
      |                         ^~~~~~~~
pppoe.c: In function 'sendSessionPacket':
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:92:61: note: in expansion of macro 'HDR_SIZE'
   92 |     if (sendPacket(conn, conn->sessionSocket, packet, len + HDR_SIZE) < 0) {
      |                                                             ^~~~~~~~
pppoe.c: In function 'sessionDiscoveryPacket':
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:176:32: note: in expansion of macro 'HDR_SIZE'
  176 |     if (ntohs(packet.length) + HDR_SIZE > len) {
      |                                ^~~~~~~~
pppoe.c: In function 'asyncReadFromEth':
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:738:32: note: in expansion of macro 'HDR_SIZE'
  738 |     if (ntohs(packet.length) + HDR_SIZE > len) {
      |                                ^~~~~~~~
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:789:16: note: in expansion of macro 'HDR_SIZE'
  789 |     if (plen + HDR_SIZE > len) {
      |                ^~~~~~~~
pppoe.c: In function 'syncReadFromEth':
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:867:32: note: in expansion of macro 'HDR_SIZE'
  867 |     if (ntohs(packet.length) + HDR_SIZE > len) {
      |                                ^~~~~~~~
pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr'
  238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
      |                          ^~~~~~
pppoe.c:919:16: note: in expansion of macro 'HDR_SIZE'
  919 |     if (plen + HDR_SIZE > len) {
      |                ^~~~~~~~
pppoe.c: At top level:
pppoe.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
*** [pppoe.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src
*** Error code 2

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

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