+ 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' gcc -pipe -O2 -DVERSION=\"0.1h\" -c -o gpart.o gpart.c gcc -pipe -O2 -DVERSION=\"0.1h\" -c -o gmodules.o gmodules.c gcc -pipe -O2 -DVERSION=\"0.1h\" -c -o disku.o disku.c disku.c: In function 'disk_geometry': disku.c:52:64: error: 'errno' undeclared (first use in this function) 52 | pr(FATAL,EM_IOCTLFAILED,"HDIO_GETGEO",strerror(errno)); | ^~~~~ disku.c:27:1: note: 'errno' is defined in header ''; did you forget to '#include '? 26 | #include +++ |+#include 27 | #endif disku.c:52:64: note: each undeclared identifier is reported only once for each function it appears in 52 | pr(FATAL,EM_IOCTLFAILED,"HDIO_GETGEO",strerror(errno)); | ^~~~~ disku.c: In function 'reread_partition_table': disku.c:94:67: error: 'errno' undeclared (first use in this function) 94 | pr(ERROR,"rereading partition table: %s",strerror(errno)); | ^~~~~ disku.c:94:67: note: 'errno' is defined in header ''; did you forget to '#include '? make[1]: *** [: disku.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /usr/include/fcntl.h:342, from gpart.c:52: In function 'open', inlined from 'make_mbr_backup' at gpart.c:1225:12, inlined from 'main' at gpart.c:1830:5: /usr/include/bits/fcntl2.h:50:11: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments 50 | __open_missing_mode (); | ^~~~~~~~~~~~~~~~~~~~~~ In function 'make_mbr_backup', inlined from 'main' at gpart.c:1830:5: gpart.c:1228:13: warning: 'write' reading 512 bytes from a region of size 446 [-Wstringop-overread] 1228 | if (write(fd,d->d_pt.t_boot,512) == 512) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gpart.c:59: gpart.c: In function 'main': gpart.h:124:25: note: source object 't_boot' of size 446 124 | byte_t t_boot[DOSPARTOFF]; | ^~~~~~ In file included from gpart.c:53: /usr/include/unistd.h:378:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)' 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ make[1]: *** [: gpart.o] Error 1 make[1]: Leaving directory '/home/pbulk/build/sysutils/gpart/work/gpart-0.1h/src' make: *** [Makefile:10: gpart] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/sysutils/gpart *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/sysutils/gpart