+ 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 => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for rp-pppoe-3.8nb2 --- libevent/libevent.a --- --- pppoe.o --- --- if.o --- --- debug.o --- --- common.o --- --- ppp.o --- --- discovery.o --- --- pppoe-server.o --- --- libevent/libevent.a --- cd libevent && /opt/pkg/bin/bmake --- pppoe.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 --- if.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 if.o if.c --- debug.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 debug.o debug.c --- common.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 common.o common.c --- ppp.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 ppp.o ppp.c --- discovery.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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 discovery.o discovery.c --- pppoe-server.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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-server.o pppoe-server.c --- libevent/libevent.a --- --- event.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -Wall -Wstrict-prototypes -ansi -I.. -c -o event.o event.c --- debug.o --- In file included from debug.c:21: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- pppoe-server.o --- In file included from pppoe-server.h:18, from pppoe-server.c:29: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- debug.o --- 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-server.o --- 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 */ | ^~~~~~~~~~~~ --- debug.o --- pppoe.h:270:25: error: 'ETH_ALEN' undeclared here (not in a function) 270 | unsigned char myEth[ETH_ALEN]; /* My MAC address */ | ^~~~~~~~ --- pppoe-server.o --- pppoe.h:270:25: error: 'ETH_ALEN' undeclared here (not in a function) 270 | unsigned char myEth[ETH_ALEN]; /* My MAC address */ | ^~~~~~~~ --- pppoe.o --- In file included from pppoe.c:19: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- discovery.o --- In file included from discovery.c:16: 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.o --- 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 */ | ^~~~~~~~ --- if.o --- In file included from if.c:21: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- ppp.o --- In file included from ppp.c:21: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- discovery.o --- pppoe.h:270:25: error: 'ETH_ALEN' undeclared here (not in a function) 270 | unsigned char myEth[ETH_ALEN]; /* My MAC address */ | ^~~~~~~~ --- ppp.o --- 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 */ | ^~~~~~~~ --- if.o --- 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 */ | ^~~~~~~~ --- common.o --- In file included from common.c:28: pppoe.h:222:19: error: field 'ethHdr' has incomplete type 222 | struct ethhdr ethHdr; /* Ethernet header */ | ^~~~~~ --- debug.o --- debug.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ --- common.o --- 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 */ | ^~~~~~~~ --- debug.o --- *** [debug.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- libevent/libevent.a --- event.c:17:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 17 | static char const RCSID[] = | ^~~~~ --- ppp.o --- ppp.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ --- pppoe-server.o --- pppoe-server.c: In function 'processPADI': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ pppoe-server.c:676:49: note: in expansion of macro 'HDR_SIZE' 676 | sendPacket(NULL, sock, &pado, (int) (plen + HDR_SIZE)); | ^~~~~~~~ pppoe-server.c: In function 'processPADR': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ pppoe-server.c:947:49: note: in expansion of macro 'HDR_SIZE' 947 | sendPacket(NULL, sock, &pads, (int) (plen + HDR_SIZE)); | ^~~~~~~~ --- ppp.o --- *** [ppp.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- pppoe-server.o --- pppoe-server.c: In function 'serverProcessPacket': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ pppoe-server.c:1532:32: note: in expansion of macro 'HDR_SIZE' 1532 | if (ntohs(packet.length) + HDR_SIZE > len) { | ^~~~~~~~ pppoe-server.c: In function 'sendErrorPADS': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ pppoe-server.c:1622:49: note: in expansion of macro 'HDR_SIZE' 1622 | sendPacket(NULL, sock, &pads, (int) (plen + HDR_SIZE)); | ^~~~~~~~ --- pppoe.o --- 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) { | ^~~~~~~~ --- common.o --- common.c: In function 'sendPADT': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ common.c:561:68: note: in expansion of macro 'HDR_SIZE' 561 | sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); | ^~~~~~~~ --- discovery.o --- discovery.c: In function 'sendPADI': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ discovery.c:299:68: note: in expansion of macro 'HDR_SIZE' 299 | sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); | ^~~~~~~~ discovery.c: In function 'waitForPADO': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ discovery.c:357:29: note: in expansion of macro 'HDR_SIZE' 357 | if (ntohs(packet.length) + HDR_SIZE > len) { | ^~~~~~~~ discovery.c: In function 'sendPADR': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ discovery.c:485:68: note: in expansion of macro 'HDR_SIZE' 485 | sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); | ^~~~~~~~ discovery.c: In function 'waitForPADS': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ discovery.c:536:29: note: in expansion of macro 'HDR_SIZE' 536 | if (ntohs(packet.length) + HDR_SIZE > len) { | ^~~~~~~~ --- pppoe-server.o --- pppoe-server.c: In function 'sendHURLorMOTM': pppoe.h:238:26: error: invalid application of 'sizeof' to incomplete type 'struct ethhdr' 238 | #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD) | ^~~~~~ pppoe-server.c:2071:68: note: in expansion of macro 'HDR_SIZE' 2071 | sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); | ^~~~~~~~ --- if.o --- if.c: In function 'openInterface': if.c:443:13: error: 'SOCK_PACKET' undeclared (first use in this function); did you mean 'SOL_PACKET'? 443 | stype = SOCK_PACKET; | ^~~~~~~~~~~ | SOL_PACKET if.c:443:13: note: each undeclared identifier is reported only once for each function it appears in --- common.o --- At top level: common.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ --- pppoe.o --- 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) { | ^~~~~~~~ --- if.o --- if.c:461:16: error: 'SIOCGIFHWADDR' undeclared (first use in this function) 461 | if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) { | ^~~~~~~~~~~~~ if.c:464:20: error: 'struct ifreq' has no member named 'ifr_hwaddr' 464 | memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); | ^ if.c:466:9: error: 'struct ifreq' has no member named 'ifr_hwaddr' 466 | if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { | ^ --- discovery.o --- At top level: discovery.c:13:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 13 | static char const RCSID[] = | ^~~~~ --- if.o --- if.c:483:19: error: 'SIOCGIFMTU' undeclared (first use in this function) 483 | if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) { | ^~~~~~~~~~ --- pppoe-server.o --- At top level: pppoe-server.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ --- pppoe.o --- At top level: pppoe.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 16 | static char const RCSID[] = | ^~~~~ --- if.o --- At top level: if.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ --- common.o --- *** [common.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- discovery.o --- *** [discovery.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- pppoe.o --- *** [pppoe.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- if.o --- *** [if.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- pppoe-server.o --- *** [pppoe-server.o] Error code 1 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- libevent/libevent.a --- A failure has been detected in another branch of the parallel make bmake[1]: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src/libevent *** [libevent/libevent.a] Error code 2 bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src 8 errors bmake: stopped in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/rp-pppoe *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/rp-pppoe