Bug 249562

Summary: 12-STABLE r366067 (likely CURRENT, too) "buildworld" fails with EFI_SECUREBOOT (WITH_LOADER_EFI_SECUREBOOT=t in src.conf(5))
Product: Base System Reporter: Walter von Entferndt <walter.von.entferndt>
Component: miscAssignee: Mark Linimon <linimon>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: emaste
Priority: ---    
Version: 12.1-STABLE   
Hardware: amd64   
OS: Any   

Description Walter von Entferndt 2020-09-24 07:25:25 UTC
12-STABLE/stand/efi/loader/main.c:1104:2: error: implicit declaration of function 've_efi_init' is invalid in C99
This is a few lines off in CURRENT, but I only built STABLE, not CURRENT
13-CUR/stand/efi/loader/main.c:1135:2:

Obviously lib/libsecureboot/h/verify_file.h must be #included when EFI_SECUREBOOT is defined.  I do not have a patch because that may go into some other header file that is included anyway.

When you fix this: IMHO the coresponding comment above shold be inside the #ifdef.  Rationale: editors supporting text folding will fold the block inside the #ifdef...#endif

Thx in advance.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2021-06-30 00:56:54 UTC
^Triage: close as OBE.

I'm sorry that this PR did not get addressed in a timely fashion.  Please let us know if this still occurs on a supported OSVERSION.