+ 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/mesure-0.5nb3/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mesure-0.5nb3/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for mesure-0.5nb3 cd src && /opt/pkg/bin/gmake all gmake[1]: Entering directory '/home/pbulk/build/sysutils/mesure/work/mesure-0.5/src' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o main.o main.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o iface.o iface.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o file.o file.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o mem.o mem.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o disk.o disk.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o stdin.o stdin.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DVERSION=0.5 -DHAVE_GMP=1 -DHAVE_PCAP=1 -I/opt/pkg/include -c -o sniff.o sniff.c disk.c: In function 'disk_get_value': disk.c:29:16: error: storage size of 'sv' isn't known 29 | struct statfs sv; | ^~ disk.c:30:6: warning: implicit declaration of function 'statfs' [-Wimplicit-function-declaration] 30 | ret=statfs(name,&sv); | ^~~~~~ mem.c:6:10: fatal error: sys/sysctl.h: No such file or directory 6 | #include | ^~~~~~~~~~~~~~ compilation terminated. gmake[1]: *** [: mem.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [: disk.o] Error 1 stdin.c: In function 'stdin_get_value': stdin.c:40:16: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 40 | stdin_fork = fork(); | ^~~~ stdin.c: In function 'stdin_finalize': stdin.c:55:8: warning: passing argument 1 of 'shmdt' from incompatible pointer type [-Wincompatible-pointer-types] 55 | shmdt(nptr); | ^~~~ | | | long int * In file included from stdin.c:6: /usr/include/sys/shm.h:136:11: note: expected 'char *' but argument is of type 'long int *' 136 | int shmdt(char *); | ^~~~~~ stdin.c: In function 'stdin_do_pipe': stdin.c:68:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 68 | while((rval=read(0,buf,BSIZE)) > 0) | ^~~~ | fread stdin.c:75:17: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 75 | if ((wval = write(1,bp,n)) == -1) | ^~~~~ | fwrite main.c: In function 'mesure_signal': main.c:58:3: warning: implicit declaration of function 'stdin_finalize' [-Wimplicit-function-declaration] 58 | stdin_finalize(); | ^~~~~~~~~~~~~~ main.c:61:3: warning: implicit declaration of function 'sniff_finalize' [-Wimplicit-function-declaration] 61 | sniff_finalize(); | ^~~~~~~~~~~~~~ main.c: In function 'do_work': main.c:178:3: warning: implicit declaration of function 'file_get_value'; did you mean 'disk_get_value'? [-Wimplicit-function-declaration] 178 | file_get_value(target,&one); | ^~~~~~~~~~~~~~ | disk_get_value main.c:185:18: warning: implicit declaration of function 'mem_get_value'; did you mean 'disk_get_value'? [-Wimplicit-function-declaration] 185 | mpz_set_d(one, mem_get_value()); | ^~~~~~~~~~~~~ | disk_get_value iface.c: In function 'iface_get_value': iface.c:106:20: error: storage size of 'ifmr' isn't known 106 | struct ifmediareq ifmr; | ^~~~ main.c:199:17: warning: implicit declaration of function 'stdin_get_value'; did you mean 'disk_get_value'? [-Wimplicit-function-declaration] 199 | mpz_set_d(one,stdin_get_value()); | ^~~~~~~~~~~~~~~ | disk_get_value main.c:213:3: warning: implicit declaration of function 'sniff_get_value'; did you mean 'disk_get_value'? [-Wimplicit-function-declaration] 213 | sniff_get_value(&one); | ^~~~~~~~~~~~~~~ | disk_get_value iface.c:115:5: warning: implicit declaration of function 'getifaddrs' [-Wimplicit-function-declaration] 115 | getifaddrs(&ifa); | ^~~~~~~~~~ iface.c:118:32: error: invalid use of undefined type 'struct ifaddrs' 118 | strncpy(ifmr.ifm_name,ifa->ifa_name,sizeof(ifmr.ifm_name)); | ^~ iface.c:119:11: error: invalid use of undefined type 'struct ifaddrs' 119 | addr=ifa->ifa_addr; | ^~ iface.c:123:10: error: invalid use of undefined type 'struct ifaddrs' 123 | ifm=ifa->ifa_data; | ^~ iface.c:125:18: error: invalid use of undefined type 'struct ifaddrs' 125 | if (!strcmp(ifa->ifa_name,name)) | ^~ iface.c:151:20: error: invalid use of undefined type 'struct ifaddrs' 151 | ifa=ifa->ifa_next; | ^~ sniff.c: In function 'sniff_get_value': sniff.c:49:16: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 49 | sniff_fork = fork(); | ^~~~ gmake[1]: *** [: iface.o] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/sysutils/mesure/work/mesure-0.5/src' gmake: *** [Makefile:12: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/mesure *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/mesure