+ 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/rp-pppoe-3.8nb2/work.log + su pbulk -c '"$@"' make /opt/local/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 --- libevent/libevent.a --- --- pppoe.o --- --- if.o --- --- libevent/libevent.a --- cd libevent && /opt/local/bin/bmake --- event.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -Wall -Wstrict-prototypes -ansi -I.. -c -o event.o event.c --- pppoe.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -Wall -Wstrict-prototypes -ansi '-DPPPOE_PATH="/opt/local/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 -I/opt/local/include -I/usr/include -Wall -Wstrict-prototypes -ansi '-DPPPOE_PATH="/opt/local/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 --- libevent/libevent.a --- event.c:17:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 17 | static char const RCSID[] = | ^~~~~ --- 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 */ | ^~~~~~ 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 */ | ^~~~~~ 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.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) { | ^~~~~~~~ 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[] = | ^~~~~ --- 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 --- pppoe.o --- *** [pppoe.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- if.o --- if.c:461:23: error: 'SIOCGIFHWADDR' undeclared (first use in this function) 461 | if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) { | ^~~~~~~~~~~~~ if.c:464:27: error: 'struct ifreq' has no member named 'ifr_hwaddr' 464 | memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); | ^ if.c:466:16: error: 'struct ifreq' has no member named 'ifr_hwaddr' 466 | if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { | ^ if.c:483:19: error: 'SIOCGIFMTU' undeclared (first use in this function) 483 | if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) { | ^~~~~~~~~~ --- libevent/libevent.a --- *** [libevent/libevent.a] Error code 6 bmake: stopped making "all" in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src --- if.o --- if.c: At top level: if.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] 18 | static char const RCSID[] = | ^~~~~ *** [if.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/net/rp-pppoe/work/rp-pppoe-3.8/src bmake: 3 errors 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-trunk-x86_64/net/rp-pppoe *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/net/rp-pppoe