+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/gpart-0.1hnb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/gpart-0.1hnb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for gpart-0.1hnb1 /bin/make -C src make[1]: Entering directory `/home/pbulk/build/sysutils/gpart/work/gpart-0.1h/src' make[1]: Leaving directory `/home/pbulk/build/sysutils/gpart/work/gpart-0.1h/src' make[1]: Entering directory `/home/pbulk/build/sysutils/gpart/work/gpart-0.1h/src' gcc -pipe -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.1h\" -c -o gpart.o gpart.c gcc -pipe -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.1h\" -c -o gmodules.o gmodules.c gcc -pipe -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.1h\" -c -o disku.o disku.c disku.c: In function 'disk_geometry': disku.c:52:50: error: 'errno' undeclared (first use in this function) pr(FATAL,EM_IOCTLFAILED,"HDIO_GETGEO",strerror(errno)); ^ disku.c:52:50: note: each undeclared identifier is reported only once for each function it appears in disku.c: In function 'reread_partition_table': disku.c:94:53: error: 'errno' undeclared (first use in this function) pr(ERROR,"rereading partition table: %s",strerror(errno)); ^ make[1]: *** [disku.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /usr/include/fcntl.h:306:0, from gpart.c:52: In function 'open', inlined from 'make_mbr_backup' at gpart.c:1225:5, inlined from 'main' at gpart.c:1830:20: /usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments __open_missing_mode (); ^ make[1]: *** [gpart.o] Error 1 make[1]: Leaving directory `/home/pbulk/build/sysutils/gpart/work/gpart-0.1h/src' make: *** [gpart] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/gpart *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/gpart