Re: 13 stable build fail

From: Søren Schmidt <soren.schmidt_at_gmail.com>
Date: Sat, 3 Jul 2021 10:12:07 +0200
On 3 Jul 2021, at 03.33, Rozhuk Ivan <rozhuk.im_at_gmail.com> wrote:
> ...
> In file included from /usr/src/lib/libc/gen/fstab.c:38:
> In file included from /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/mount.h:38:
> /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/ucred.h:42:10: fatal error: 'bsm/audit.h' file not found
> #include <bsm/audit.h>
>         ^~~~~~~~~~~~~
> 1 error generated.
> --- fstab.o ---
> *** [fstab.o] Error code 1
> 
> make[4]: stopped in /usr/src/lib/libc
> In file included from /usr/src/lib/libc/gen/fts.c:40:
> In file included from /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/mount.h:38:
> /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/ucred.h:42:10: fatal error: 'bsm/audit.h' file not found
> #include <bsm/audit.h>
>         ^~~~~~~~~~~~~
> In file included from /usr/src/lib/libc/gen/fts-compat.c:41:
> In file included from /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/mount.h:38:
> /tmp/obj.world/usr/src/amd64.amd64/tmp/usr/include/sys/ucred.h:42:10: fatal error: 'bsm/audit.h' file not found
> #include <bsm/audit.h>
>         ^~~~~~~~~~~~~
> 1 error generated.
> --- fts.o ---
> *** [fts.o] Error code 1
> 
> make[4]: stopped in /usr/src/lib/libc
> ...
> 


The latest changes to include/Makefile broke building with "WITHOUT_AUDIT=1"

This patch works for me:

Index: stable13/include/Makefile
===================================================================
--- stable13/include/Makefile	(revision 550)
+++ stable13/include/Makefile	(revision 552)
_at__at_ -223,6 +223,7 _at__at_
 INCSGROUPS=	INCS \
 		ACPICA \
 		AGP \
+		BSM \
 		CAM \
 		CAMATA \
 		CAMMMC \
_at__at_ -240,7 +241,6 _at__at_
 		VERIEXEC
 
 .if ${MK_AUDIT} != "no"
-INCSGROUPS+=	BSM
 INCSGROUPS+=	SECAUDIT
 .endif
 

--
Søren Schmidt
sos_at_deepcore.dk / sos_at_freebsd.org
"So much code to hack, so little time"
Received on Sat Jul 03 2021 - 08:12:07 UTC

Original text of this message