>>> efitools: Building main/efitools 1.9.2-r5 (using abuild 3.10.0_rc1-r2) started Tue, 25 Oct 2022 11:22:50 +0000 >>> efitools: Checking sanity of /home/buildozer/aports/main/efitools/APKBUILD... >>> efitools: Analyzing dependencies... >>> efitools: Installing for build: build-base gnu-efi-dev openssl-dev>3 perl-file-slurp help2man sbsigntool (1/13) Installing gnu-efi (3.0.15-r0) (2/13) Installing gnu-efi-dev (3.0.15-r0) (3/13) Installing openssl-dev (3.0.5-r3) (4/13) Installing libbz2 (1.0.8-r3) (5/13) Installing perl (5.36.0-r0) (6/13) Installing perl-file-slurp (9999.32-r1) (7/13) Installing help2man (1.49.2-r0) (8/13) Installing libuuid (2.38.1-r0) (9/13) Installing sbsigntool (0.9.4-r4) (10/13) Installing .makedepends-efitools (20221025.112251) (11/13) Installing perl-error (0.17029-r1) (12/13) Installing perl-git (2.38.1-r0) (13/13) Installing git-perl (2.38.1-r0) Executing busybox-1.35.0-r27.trigger OK: 308 MiB in 105 packages >>> efitools: Cleaning up srcdir >>> efitools: Cleaning up pkgdir >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/efitools-1.9.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> efitools: Fetching https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/efitools-1.9.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 113k 0 113k 0 0 727k 0 --:--:-- --:--:-- --:--:-- 731k >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/efitools-1.9.2.tar.gz >>> efitools: Checking sha512sums... efitools-1.9.2.tar.gz: OK 001-datatypes.patch: OK 002-fix-parallel-make.patch: OK 003-fix-wchar_t.patch: OK 004-typo.patch: OK 005-riscv64.patch: OK >>> efitools: Unpacking /var/cache/distfiles/v3.17/efitools-1.9.2.tar.gz... >>> efitools: 001-datatypes.patch patching file lib/asn1/oid.h Hunk #1 succeeded at 10 (offset 2 lines). >>> efitools: 002-fix-parallel-make.patch patching file Make.rules >>> efitools: 003-fix-wchar_t.patch patching file Make.rules patching file cert-to-efi-hash-list.c patching file flash-var.c patching file hash-to-efi-sig-list.c patching file sign-efi-sig-list.c >>> efitools: 004-typo.patch patching file lib/console.c >>> efitools: 005-riscv64.patch patching file Make.rules make -C lib lib-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c HelloWorld.c -o HelloWorld.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB/" -keyout DB.key -out DB.crt -days 3650 -nodes -sha256 openssl req -new -x509 -newkey rsa:2048 -subj "/CN=PK/" -keyout PK.key -out PK.crt -days 3650 -nodes -sha256 gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c cert-to-efi-sig-list.c -o cert-to-efi-sig-list.o .+.........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+............+...+.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c simple_file.c -o simple_file.efi.o ..+..........+..+...+make -C lib lib.a ....+........++++++++++++.++++.+..+++.....+..+++...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*++++.+++++++++++++++++++++*...+.+.........+...........+.......+...+.........+++++++++openssl req -new -x509 -newkey rsa:2048 -subj "/CN=KEK/" -keyout KEK.key -out KEK.crt -days 3650 -nodes -sha256 +++++.+++++++++++++++++.++make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ++++++++++++++++.++++++++++++++++*...+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c pecoff.c -o pecoff.efi.o ........+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sign-efi-sig-list.c -o sign-efi-sig-list.o +......cert-to-efi-sig-list.c:9: warning: "__STDC_VERSION__" redefined 9 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition +..............++........+.+.....+.+......+..........++++++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c guid.c -o guid.efi.o +++++++++.++++++++++++.++++++++.++++++++++.++++++++++++++++++++.+*...+.........+.+...........+....+.........+.....+....+....+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c Loader.c -o Loader.o ...+....++++++++.++++++++++++++++++.+++++++++++++++++++++++++++++++.++++++++++*....+...gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c simple_file.c -o simple_file.o ...make -C lib/asn1 libasn1-efi.a .....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c sha256.c -o sha256.efi.o .+..++.......+...make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' ......sign-efi-sig-list.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ..+....+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c ReadVars.c -o ReadVars.o +.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c pecoff.c -o pecoff.o .....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c console.c -o console.efi.o ..+.............+.....+.......+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c UpdateVars.c -o UpdateVars.o .....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c guid.c -o guid.o ......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c execute.c -o execute.efi.o ..+..............+HelloWorld.c: In function 'efi_main': ..HelloWorld.c:12:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 12 | L"HelloWorld", | ^~~~~~~~~~~~~ HelloWorld.c:12:25: note: (near initialization for '(anonymous)[0]') HelloWorld.c:13:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 13 | L"", | ^~~ HelloWorld.c:13:25: note: (near initialization for '(anonymous)[1]') HelloWorld.c:14:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 14 | L"This file is used to prove you have managed", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HelloWorld.c:14:25: note: (near initialization for '(anonymous)[2]') HelloWorld.c:15:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 15 | L"To execute an unsigned binary in secure boot mode", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HelloWorld.c:15:25: note: (near initialization for '(anonymous)[3]') ....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c KeyTool.c -o KeyTool.o ......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sha256.c -o sha256.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c configtable.c -o configtable.efi.o +..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c asn1.c -o asn1.efi.o ..+...+....+..+++.+....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c HashTool.c -o HashTool.o +...gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c console.c -o console.o +...+...+...+...+...+..+.++++..+...+..++.+.+..+.++.+..+...+..++.+..+..+.++.+..+simple_file.c: In function 'simple_file_open_by_handle': .simple_file.c:31:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 31 | Print(L"Unable to find simple file protocol (%d)\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .In file included from simple_file.c:8: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c:38:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 38 | Print(L"Failed to open drive volume (%d)\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +..Loader.c:21:18: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 21 | CHAR16 *loader = L"\\linux-loader.efi"; | ^~~~~~~~~~~~~~~~~~~~~ Loader.c: In function 'ask_to_boot': Loader.c:27:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 27 | L"WARNING: This Binary is unsigned (and should be a Linux boot loader)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:27:17: note: (near initialization for '(anonymous)[0]') simple_file.c: In function 'simple_file_open': Loader.c:28:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 28 | L"", | ^~~ Loader.c:28:17: note: (near initialization for '(anonymous)[1]') simple_file.c:65:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 65 | Print(L"Unable to generate load path for %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:29:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 29 | L"Are you sure you wish to run an unsigned binary", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:29:17: note: (near initialization for '(anonymous)[2]') Loader.c:30:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 30 | L"in a secure environment?", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:30:17: note: (near initialization for '(anonymous)[3]') Loader.c:31:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 31 | L"", | ^~~ Loader.c:31:17: note: (near initialization for '(anonymous)[4]') .+Loader.c:32:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 32 | L"To avoid this question in future place the platform into setup mode", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:32:17: note: (near initialization for '(anonymous)[5]') simple_file.c: In function 'simple_dir_read_all_by_handle': Loader.c:33:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 33 | L"See http://www.linuxfoundation.org/uefi", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Loader.c:33:17: note: (near initialization for '(anonymous)[6]') simple_file.c:90:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 90 | Print(L"Failed to get file info\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:34:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 34 | L"And reboot.", | ^~~~~~~~~~~~~~ Loader.c:34:17: note: (near initialization for '(anonymous)[7]') Loader.c: In function 'ask_install_keys': simple_file.c:94:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 94 | Print(L"Not a directory %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * Loader.c:44:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 44 | L"You are in Setup Mode", | ^~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:44:17: note: (near initialization for '(anonymous)[0]') /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:45:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 45 | L"", | ^~~ Loader.c:45:17: note: (near initialization for '(anonymous)[1]') Loader.c:46:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 46 | L"Do you wish me to install the signature", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:46:17: note: (near initialization for '(anonymous)[2]') .Loader.c:47:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 47 | L"of the binary into the allowed signatures database?", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:47:17: note: (near initialization for '(anonymous)[3]') Loader.c:48:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 48 | L"", | ^~~ +Loader.c:48:17: note: (near initialization for '(anonymous)[4]') Loader.c:49:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 49 | L"If you say \"yes\" here, the platform will no longer ask permission", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:49:17: note: (near initialization for '(anonymous)[5]') Loader.c:50:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 50 | L"to run the binary on every boot", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader.c:50:17: note: (near initialization for '(anonymous)[6]') Loader.c: In function 'efi_main': Loader.c:69:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 69 | efi_status = RT->GetVariable(L"SecureBoot", &GV_GUID, NULL, &DataSize, &SecureBoot); | ^~~~~~~~~~~~~ | | | int * .Loader.c:69:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' simple_file.c: In function 'simple_dir_read_all': Loader.c:72:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 72 | Print(L"Not a Secure Boot Platform %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .+simple_file.c:140:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 140 | Print(L"failed to open file %s: %d\n", name, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, In file included from Loader.c:10: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:74:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 74 | Print(L"Secure Boot Disabled\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c: In function 'simple_file_read_all': .Loader.c:78:25: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 78 | RT->GetVariable(L"SetupMode", &GV_GUID, NULL, &DataSize, &SetupMode); | ^~~~~~~~~~~~ | | | int * simple_file.c:160:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 160 | Print(L"Failed to get file info\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * Loader.c:78:25: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:82:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 82 | Print(L"Failed to init loaded image protocol: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ++Loader.c:88:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 88 | Print(L"Unable to generate load path for %s: %d\n", loader, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c execute.c -o execute.o simple_file.c:169:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 169 | Print(L"Failed to allocate buffer of size %d\n", *size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pecoff.c: In function 'pecoff_read_header': Loader.c:98:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 98 | Print(L"Starting file via StartImage\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * pecoff.c:81:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 81 | Print(L"Unsupported image type\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +Loader.c:103:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 103 | Print(L"Failed to load the image: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, In file included from pecoff.c:52: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:110:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 110 | Print(L"Refusing to boot %s\n", loader); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pecoff.c:86:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 86 | Print(L"Unsupported image - Relocations have been stripped\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * Loader.c:113:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 113 | Print(L"Booting %s with Present User Authorisation\n", loader); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Loader.c:117:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 117 | Print(L"Failed to open %s\n", loader); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .pecoff.c:92:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 92 | Print(L"Only IA32 or X64 images supported\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * Loader.c:128:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 128 | Print(L"HASH IS "); | ^~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c shell.c -o shell.efi.o +simple_file.c: In function 'simple_volume_selector': Loader.c:130:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 130 | Print(L"%02x", hash[i]); | ^~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c:237:64: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 237 | if (!name || StrLen(name) == 0 || StrCmp(name, L" ") == 0) | ^~~~ | | | int * Loader.c:131:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 131 | Print(L"\n"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .Loader.c:133:42: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 133 | if (find_in_variable_esl(L"db", SIG_DB, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) | ^~~~~ | | | int * In file included from Loader.c:15: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .pecoff.c:120:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 120 | Print(L"Malformed security header\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * Loader.c:146:56: warning: passing argument 1 of 'SetSecureVariable' from incompatible pointer type [-Wincompatible-pointer-types] 146 | efi_status = SetSecureVariable(L"db", sig, sizeof(sig), SIG_DB, EFI_VARIABLE_APPEND_WRITE, 0); | ^~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:19:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 19 | SetSecureVariable(CHAR16 *var, UINT8 *Data, UINTN len, EFI_GUID owner, UINT32 options, int createtimebased); | ~~~~~~~~^~~ .Loader.c:148:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 148 | Print(L"Failed to add signature to db: %s\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +pecoff.c: In function 'pecoff_image_layout': +pecoff.c:145:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 145 | Print(L"Invalid section size\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +pecoff.c: In function 'pecoff_relocate': pecoff.c:178:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 178 | Print(L"pecoff_image_layout: failed to layout image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c: In function 'simple_dir_filter': simple_file.c:338:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 338 | if (StrCmp(next->FileName, L".") == 0) | ^~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .pecoff.c:189:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 189 | Print(L"Image has no relocation entry\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .+pecoff.c:197:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 197 | Print(L"Reloc table overflows binary %d %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c:361:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 361 | if (StrCmp(next->FileName, L"../") == 0) { | ^~~~~~ | | | int * +/usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .pecoff.c:210:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 210 | Print(L"Reloc entry overflows binary\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c:374:39: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 374 | (*result)[(*count)++] = L"./"; | ^ +pecoff.c:216:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 216 | Print(L"Invalid fixupbase\n"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +simple_file.c: In function 'simple_file_selector': .simple_file.c:403:22: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 403 | name = L"\\"; | ^ simple_file.c:405:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 405 | filter = L""; | ^ +.pecoff.c:265:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 265 | Print(L"Unknown relocation\n"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ..simple_file.c:443:38: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 443 | if (StrCmp(selected, L"./") == 0) { | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 +.simple_file.c:446:45: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 446 | } else if (StrCmp(selected, L"../") == 0) { | ^~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .pecoff.c: In function 'pecoff_check_mok': pecoff.c:314:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 314 | status = get_variable_attr(L"MokSBState", &data, &len, | ^~~~~~~~~~~~~ | | | int * In file included from pecoff.c:65: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ simple_file.c:459:42: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 459 | if (StrCmp(name, L"\\") != 0 | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ..simple_file.c:460:49: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 460 | && StrCmp(&name[i], L"..") != 0) { | ^~~~~ | | | int * +/usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 pecoff.c:329:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 329 | if (find_in_variable_esl(L"dbx", SIG_DB, hash, SHA256_DIGEST_SIZE) | ^~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .pecoff.c:334:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 334 | status = get_variable_attr(L"MokList", &data, &len, MOK_OWNER, &attr); | ^~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ +simple_file.c:472:41: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 472 | StrCat(newname, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src pecoff.c:342:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 342 | if (find_in_variable_esl(L"MokList", MOK_OWNER, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) | ^~~~~~~~~~ | | | int * ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +pecoff.c:346:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 346 | status = get_variable_attr(L"tmpHashList", &data, &len, MOK_OWNER, | ^~~~~~~~~~~~~~ | | | int * ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ simple_file.c:487:41: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 487 | StrCat(*result, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src pecoff.c:349:37: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 349 | && find_in_variable_esl(L"tmpHashList", MOK_OWNER, hash, | ^~~~~~~~~~~~~~ | | | int * ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .++.execute.c: In function 'generate_path': execute.c:77:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 77 | Print(L"Failed to allocate path buffer\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .pecoff.c: In function 'pecoff_execute_image': In file included from execute.c:42: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .pecoff.c:402:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 402 | Print(L"Failed to read %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * execute.c:85:35: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 85 | StrCat(*PathName, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src .pecoff.c:406:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 406 | Print(L"Read %d bytes from %s\n", DataSize, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ++.pecoff.c:409:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 409 | Print(L"Failed to read header\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pecoff.c:415:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 415 | Print(L"Failed to relocate image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +.pecoff.c:421:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 421 | Print(L"Invalid entry point\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +.....+..simple_file.c: In function 'simple_file_open_by_handle': .simple_file.c:31:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 31 | Print(L"Unable to find simple file protocol (%d)\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .In file included from simple_file.c:8: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +simple_file.c:38:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 38 | Print(L"Failed to open drive volume (%d)\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ..simple_file.c: In function 'simple_file_open': .simple_file.c:65:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 65 | Print(L"Unable to generate load path for %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .UpdateVars.c: In function 'efi_main': UpdateVars.c:35:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~ UpdateVars.c:35:43: note: (near initialization for '(anonymous)[0]') .simple_file.c: In function 'simple_dir_read_all_by_handle': UpdateVars.c:35:50: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ UpdateVars.c:35:50: note: (near initialization for '(anonymous)[1]') simple_file.c:90:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 90 | Print(L"Failed to get file info\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:35:58: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~ UpdateVars.c:35:58: note: (near initialization for '(anonymous)[2]') +UpdateVars.c:35:65: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ UpdateVars.c:35:65: note: (near initialization for '(anonymous)[3]') UpdateVars.c:35:73: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ simple_file.c:94:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 94 | Print(L"Not a directory %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * UpdateVars.c:35:73: note: (near initialization for '(anonymous)[4]') /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .UpdateVars.c:35:81: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~~~~~ UpdateVars.c:35:81: note: (near initialization for '(anonymous)[5]') +UpdateVars.c:38:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~ UpdateVars.c:38:43: note: (near initialization for '(anonymous)[0]') UpdateVars.c:38:50: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~ UpdateVars.c:38:50: note: (near initialization for '(anonymous)[1]') .UpdateVars.c:38:58: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~ UpdateVars.c:38:58: note: (near initialization for '(anonymous)[2]') UpdateVars.c:38:65: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~ UpdateVars.c:38:65: note: (near initialization for '(anonymous)[3]') UpdateVars.c:38:73: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~~~~~ UpdateVars.c:38:73: note: (near initialization for '(anonymous)[4]') .UpdateVars.c:45:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 45 | Print(L"Failed to parse arguments: %d\n", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from UpdateVars.c:11: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c: In function 'simple_dir_read_all': +simple_file.c:140:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 140 | Print(L"failed to open file %s: %d\n", name, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:51:37: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 51 | if (StrCmp(ARGV[1], L"-a") == 0) { | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 +UpdateVars.c:55:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 55 | } else if (StrCmp(ARGV[1], L"-g") == 0) { | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .simple_file.c: In function 'simple_file_read_all': UpdateVars.c:59:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 59 | } else if (StrCmp(ARGV[1], L"-e") == 0) { | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 simple_file.c:160:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 160 | Print(L"Failed to get file info\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:63:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 63 | } else if (StrCmp(ARGV[1], L"-b") == 0) { | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ReadVars.c: In function 'parse_db': ReadVars.c:36:29: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 36 | ext = L"X509"; | ^ UpdateVars.c:75:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 75 | Print(L"Usage: %s: [-g guid] [-a] [-e] [-b] var file\n", progname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ReadVars.c:38:29: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 38 | ext = L"RSA2048"; | ^ simple_file.c:169:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 169 | Print(L"Failed to allocate buffer of size %d\n", *size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .ReadVars.c:40:29: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 40 | ext = L"PKCS7"; | ^ UpdateVars.c:89:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 89 | Print(L"Invalid Variable %s\nVariable must be one of: ", var); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ReadVars.c:42:29: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 42 | ext = L"SHA256"; | ^ /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +ReadVars.c:44:29: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 44 | ext = L"Unknown"; | ^ .UpdateVars.c:91:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 91 | Print(L"%s ", variables[i]); | ^~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ReadVars.c:47:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 47 | Print(L"%s: List %d, type %s\n", name, count, ext); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * UpdateVars.c:92:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 92 | Print(L"\n"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, In file included from ReadVars.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .UpdateVars.c:98:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 98 | Print(L"MoK variables can only be updated in ESL mode\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:114:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 114 | Print(L"Failed to open file %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ReadVars.c:50:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 50 | Print(L" Signature %d, size %d, owner %g\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ReadVars.c:54:41: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 54 | if (StrCmp(ext, L"X509") == 0) { | ^~~~~~~ | | | int * UpdateVars.c:120:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 120 | Print(L"Failed to read file %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 +/usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c: In function 'simple_volume_selector': simple_file.c:237:64: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 237 | if (!name || StrLen(name) == 0 || StrCmp(name, L" ") == 0) | ^~~~ | | | int * UpdateVars.c:130:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 130 | Print(L"Failed to get hash of %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ReadVars.c:61:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 61 | Print(L" Subject: %s\n", buf1); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:145:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 145 | Print(L"Failed to update variable %s: %d\n", var, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ReadVars.c:67:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 67 | Print(L" Issuer: %s\n", buf1); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, UpdateVars.c:24:49: warning: variable 'owner_guid' set but not used [-Wunused-but-set-variable] 24 | CHAR16 **ARGV, *var, *name, *progname, *owner_guid; | ^~~~~~~~~~ ReadVars.c:69:48: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 69 | } else if (StrCmp(ext, L"SHA256") == 0) { | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .ReadVars.c:72:46: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 72 | StrCpy(buf1, L"Hash: "); | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src ReadVars.c:74:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 74 | Print(L" %s\n", buf1); | ^~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .ReadVars.c:78:48: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 78 | SPrint(buf, 0, L"%s-%d-%d-%s-%g", name, count, Index, ext, &Cert->SignatureOwner); | ^~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, ReadVars.c:79:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 79 | Print(L"Writing to file %s\n", buf); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .+.ReadVars.c:82:47: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 82 | Print(L"Failed to open file %s: %d\n", buf, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .ReadVars.c:88:47: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 88 | Print(L"Failed to write signature to file %s: %d\n", buf, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ..ReadVars.c: In function 'efi_main': ReadVars.c:112:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~ ReadVars.c:112:43: note: (near initialization for '(anonymous)[0]') ReadVars.c:112:50: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ ReadVars.c:112:50: note: (near initialization for '(anonymous)[1]') simple_file.c: In function 'simple_dir_filter': +ReadVars.c:112:58: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~ +ReadVars.c:112:58: note: (near initialization for '(anonymous)[2]') .simple_file.c:338:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 338 | if (StrCmp(next->FileName, L".") == 0) | ^~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ReadVars.c:112:65: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ ReadVars.c:112:65: note: (near initialization for '(anonymous)[3]') ReadVars.c:112:73: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~ ReadVars.c:112:73: note: (near initialization for '(anonymous)[4]') ReadVars.c:112:81: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^~~~~~~~~~ ReadVars.c:112:81: note: (near initialization for '(anonymous)[5]') ..ReadVars.c:115:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 115 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~ ReadVars.c:115:43: note: (near initialization for '(anonymous)[0]') simple_file.c:361:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 361 | if (StrCmp(next->FileName, L"../") == 0) { | ^~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ReadVars.c:115:50: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 115 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~ ReadVars.c:115:50: note: (near initialization for '(anonymous)[1]') .ReadVars.c:115:58: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 115 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~ ReadVars.c:115:58: note: (near initialization for '(anonymous)[2]') +ReadVars.c:115:65: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 115 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~ .ReadVars.c:115:65: note: (near initialization for '(anonymous)[3]') simple_file.c:374:39: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 374 | (*result)[(*count)++] = L"./"; | ^ ReadVars.c:115:73: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 115 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"MokList" , NULL}; | ^~~~~~~~~~ .ReadVars.c:115:73: note: (near initialization for '(anonymous)[4]') ReadVars.c:122:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 122 | Print(L"Failed to parse arguments: %d\n", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .simple_file.c: In function 'simple_file_selector': ReadVars.c:128:37: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 128 | if (StrCmp(ARGV[1], L"-s") == 0) { | ^~~~~ | | | int * simple_file.c:403:22: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 403 | name = L"\\"; | ^ ./usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 +ReadVars.c:132:44: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 132 | } else if (StrCmp(ARGV[1], L"-n") == 0) { | ^~~~~ | | | int * simple_file.c:405:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 405 | filter = L""; | ^ /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ..ReadVars.c:143:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 143 | Print(L"Usage: %s: [-s|-n] [var]\n", progname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +.simple_file.c:443:38: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 443 | if (StrCmp(selected, L"./") == 0) { | ^~~~~ | | | int * ReadVars.c:151:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 151 | Print(L"Variable %s has no entries\n", variables[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +ReadVars.c:153:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 153 | Print(L"Failed to get %s: %d\n", variables[i], status); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * simple_file.c:446:45: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 446 | } else if (StrCmp(selected, L"../") == 0) { | ^~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .ReadVars.c:155:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 155 | Print(L"Variable %s length %d\n", variables[i], len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .simple_file.c:459:42: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 459 | if (StrCmp(name, L"\\") != 0 | ^~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 .ReadVars.c:169:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 169 | Print(L"Invalid Variable %s\nVariable must be one of: ", var); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, simple_file.c:460:49: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 460 | && StrCmp(&name[i], L"..") != 0) { | ^~~~~ | | | int * ReadVars.c:171:39: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 171 | Print(L"%s ", variables[i]); | ^~~~~~ | | | int * ./usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +ReadVars.c:172:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 172 | Print(L"\n"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ..ReadVars.c:177:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 177 | Print(L"Variable %s has no entries\n", variables[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * simple_file.c:472:41: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 472 | StrCat(newname, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src .ReadVars.c:179:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 179 | Print(L"Failed to get %s: %d\n", variables[i], status); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .ReadVars.c:181:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 181 | Print(L"Variable %s length %d\n", variables[i], len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, + .......+simple_file.c:487:41: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 487 | StrCat(*result, L"\\"); | ^~~~~ | | | int * +/usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src ++..++++++++.+++++++.++.++++++++.+++.++++++.+++++console.c: In function 'console_print_box_at': ++console.c:106:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 106 | Print(L"Starting Position (%d,%d) is off screen\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +.+++++In file included from console.c:7: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ ++++.++++console.c:120:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 120 | Print(L"Failed Allocation\n"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ +++.+++*...++++++.++++++.++++.++++++++++.++.++++++++++.++.+++++++.++++ReadVars.c:177:73: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 177 | Print(L"Variable %s has no entries\n", variables[i]); | ^ +ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ +++ReadVars.c:179:67: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 179 | Print(L"Failed to get %s: %d\n", variables[i], status); | ^ .+.ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ +++ReadVars.c:184:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 184 | parse_db(data, len, image, variables[i], save_keys); | ^ +ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ++ReadVars.c:182:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 182 | parse_db(data, len, image, variables[i], save_keys); | ^ ++ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ +*.ReadVars.c:181:68: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 181 | Print(L"Variable %s length %d\n", variables[i], len); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ...console.c: In function 'console_yes_no': ..console.c:300:54: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 300 | return console_select(str_arr, (CHAR16 *[]){ L"No", L"Yes", NULL }, 0); | ^~~~~ .console.c:300:54: note: (near initialization for '(anonymous)[0]') console.c:300:61: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 300 | return console_select(str_arr, (CHAR16 *[]){ L"No", L"Yes", NULL }, 0); | ^~~~~~ console.c:300:61: note: (near initialization for '(anonymous)[1]') .console.c: In function 'console_alertbox': .console.c:306:45: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 306 | console_select(title, (CHAR16 *[]){ L"OK", 0 }, 0); | ^~~~~ +.console.c:306:45: note: (near initialization for '(anonymous)[0]') console.c: In function 'console_errorbox': console.c:313:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 313 | L"ERROR", | ^~~~~~~~ console.c:313:17: note: (near initialization for '(anonymous)[0]') ..console.c:314:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 314 | L"", | ^~~ console.c:314:17: note: (near initialization for '(anonymous)[1]') HashTool.c:20:29: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 20 | static CHAR16* keytoolbin = L"KeyTool.efi"; | ^~~~~~~~~~~~~~ .HashTool.c: In function 'enroll_hash': HashTool.c:69:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 69 | L"Select Binary", | ^~~~~~~~~~~~~~~~ HashTool.c:69:25: note: (near initialization for '(anonymous)[0]') .HashTool.c:70:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 70 | L"", | ^~~ HashTool.c:70:25: note: (near initialization for '(anonymous)[1]') .HashTool.c:71:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 71 | L"The Selected Binary will have its hash Enrolled", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:71:25: note: (near initialization for '(anonymous)[2]') .HashTool.c:72:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 72 | L"This means it will Subsequently Boot with no prompting", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:72:25: note: (near initialization for '(anonymous)[3]') HashTool.c:73:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 73 | L"Remember to make sure it is a genuine binary before Enroling its hash", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:73:25: note: (near initialization for '(anonymous)[4]') HashTool.c:75:20: warning: passing argument 3 of 'simple_file_selector' from incompatible pointer type [-Wincompatible-pointer-types] 75 | }, L"\\", L"", &file_name); | ^~~~~ | | | int * .In file included from HashTool.c:12: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/simple_file.h:18:62: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 18 | simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name, | ~~~~~~~~^~~~ HashTool.c:75:27: warning: passing argument 4 of 'simple_file_selector' from incompatible pointer type [-Wincompatible-pointer-types] 75 | }, L"\\", L"", &file_name); | ^~~ | | | int * ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/simple_file.h:19:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 19 | CHAR16 *filter, CHAR16 **result); | ~~~~~~~~^~~~~~ HashTool.c:83:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 83 | console_error(L"Hash failed (is efi binary valid?)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from HashTool.c:15: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ .+HashTool.c:89:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 89 | StrCpy(buf0, L"Enroll this hash into "); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from HashTool.c:10: /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src HashTool.c:91:30: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 91 | StrCat(buf0, L"UEFI signature database?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src .+HashTool.c:93:30: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 93 | StrCat(buf0, L"MOK database?"); | ^~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src HashTool.c:95:18: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 95 | title[1] = L""; | ^ HashTool.c:96:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 96 | StrCpy(buf1, L"File: "); | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src .HashTool.c:99:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 99 | StrCpy(buf2, L"Hash: "); | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src HashTool.c:110:21: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 110 | var = L"db"; | ^ .HashTool.c:113:21: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 113 | var = L"MokList"; | ^ .HashTool.c:119:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 119 | console_error(L"Failed to add signature to db", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ HashTool.c: In function 'transition_to_uefi_menu': HashTool.c:131:34: warning: passing argument 1 of 'console_errorbox' from incompatible pointer type [-Wincompatible-pointer-types] 131 | console_errorbox(L"Platform Does not Support rebooting to firmware menu"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .+/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:14:26: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 14 | console_errorbox(CHAR16 *err); | ~~~~~~~~^~~ HashTool.c:136:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 136 | L"About to reboot to UEFI Setup Menu", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:136:25: note: (near initialization for '(anonymous)[0]') .console.c: In function 'err_string': HashTool.c:137:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 137 | L"", | ^~~ HashTool.c:137:25: note: (near initialization for '(anonymous)[1]') HashTool.c:138:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 138 | L"For more details about your system's setup menu", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:138:25: note: (near initialization for '(anonymous)[2]') console.c:377:50: warning: returning 'WCHAR *' {aka 'int *'} from a function with incompatible return type 'CHAR16 *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types] 377 | return error_table[Index].Desc; | ~~~~~~~~~~~~~~~~~~^~~~~ HashTool.c:139:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 139 | L"Including how to reset the system to setup mode, see", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:139:25: note: (near initialization for '(anonymous)[3]') HashTool.c:140:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 140 | L"", | ^~~ HashTool.c:140:25: note: (near initialization for '(anonymous)[4]') .console.c:381:16: warning: returning 'int *' from a function with incompatible return type 'CHAR16 *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types] 381 | return L""; | ^~~ HashTool.c:141:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 141 | L"http://www.linuxfoundation.org/uefi", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:141:25: note: (near initialization for '(anonymous)[5]') .console.c: In function 'console_error': .console.c:389:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 389 | L"ERROR", | ^~~~~~~~ console.c:389:17: note: (near initialization for '(anonymous)[0]') HashTool.c: In function 'efi_main': +HashTool.c:198:31: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 198 | StrCpy(line2, L"Platform is in "); | ^~~~~~~~~~~~~~~~~~ | | | int * console.c:390:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 390 | L"", | ^~~ /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src console.c:390:17: note: (near initialization for '(anonymous)[1]') +HashTool.c:199:57: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 199 | StrCat(line2, SetupMode ? L"Setup Mode" : L"User Mode"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src +HashTool.c:200:31: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 200 | StrCpy(line3, L"Secure Boot is "); | ^~~~~~~~~~~~~~~~~~ | | | int * console.c:396:34: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 396 | SPrint(str, sizeof(str), L"%s: (%d) %s", err, status, err_string(status)); | ^~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, | ^ HashTool.c:201:64: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 201 | StrCat(line3, variable_is_secureboot() ? L"on" : L"off"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src .HashTool.c:202:39: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 202 | title = (CHAR16 *[]){L"Hash Tool main menu", L"", line2, line3, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~ HashTool.c:202:39: note: (near initialization for '(anonymous)[0]') HashTool.c:202:63: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 202 | title = (CHAR16 *[]){L"Hash Tool main menu", L"", line2, line3, NULL }; | ^~~ HashTool.c:202:63: note: (near initialization for '(anonymous)[1]') HashTool.c:203:30: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 203 | options[c++] = L"Enroll Hash"; | ^ .HashTool.c:206:38: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 206 | options[c++] = L"Start UEFI Key Tool"; | ^ .HashTool.c:214:46: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 214 | options[c++] = L"Enter User Mode"; | ^ .HashTool.c:217:46: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 217 | options[c++] = L"Enter Setup Mode"; | ^ .KeyTool.c:41:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 41 | .name = L"PK", | ^~~~~ configtable.c: In function 'configtable_find_image': KeyTool.c:41:25: note: (near initialization for 'keyinfo[0].name') HashTool.c:223:38: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 223 | options[c++] = L"Reboot to UEFI Menu"; | ^ configtable.c:87:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 87 | Print(L"Image Execution Information table corrupt\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * KeyTool.c:42:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 42 | .text = L"The Platform Key (PK)", | ^~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:42:25: note: (near initialization for 'keyinfo[0].text') HashTool.c:227:30: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 227 | options[c++] = L"Reboot System"; | ^ KeyTool.c:48:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 48 | .name = L"KEK", | ^~~~~~ .KeyTool.c:48:25: note: (near initialization for 'keyinfo[1].name') In file included from configtable.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, HashTool.c:229:30: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 229 | options[c++] = L"Exit"; | ^ KeyTool.c:49:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 49 | .text = L"The Key Exchange Key Database (KEK)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .KeyTool.c:49:25: note: (near initialization for 'keyinfo[1].text') KeyTool.c:55:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 55 | .name = L"db", | ^~~~~ KeyTool.c:55:25: note: (near initialization for 'keyinfo[2].name') configtable.c:100:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 100 | Print(L"Image Execution Information table corrupt\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, KeyTool.c:56:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 56 | .text = L"The Allowed Signatures Database (db)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .HashTool.c:241:47: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 241 | console_error(L"Failed to execute KeyTool", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * KeyTool.c:56:25: note: (near initialization for 'keyinfo[2].text') ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ KeyTool.c:62:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 62 | .name = L"dbx", | ^~~~~~ KeyTool.c:62:25: note: (near initialization for 'keyinfo[3].name') KeyTool.c:63:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 63 | .text = L"The Forbidden Signatures Database (dbx)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:63:25: note: (near initialization for 'keyinfo[3].text') HashTool.c:251:41: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 251 | L"Are you sure you want to reboot?", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HashTool.c:251:41: note: (near initialization for '(anonymous)[0]') KeyTool.c:69:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 69 | .name = L"dbt", | ^~~~~~ KeyTool.c:69:25: note: (near initialization for 'keyinfo[4].name') .KeyTool.c:70:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 70 | .text = L"The Timestamp Signatures Database (dbt)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:70:25: note: (near initialization for 'keyinfo[4].text') +HashTool.c:187:25: warning: variable 'setup_mode_arg' set but not used [-Wunused-but-set-variable] 187 | setup_mode_arg = 0, keytool = NOSEL; | ^~~~~~~~~~~~~~ KeyTool.c:76:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 76 | .name = L"MokList", | ^~~~~~~~~~ KeyTool.c:76:25: note: (near initialization for 'keyinfo[5].name') HashTool.c:185:28: warning: variable 'setup_mode' set but not used [-Wunused-but-set-variable] 185 | int c = 0, setup_mode = NOSEL, uefi_reboot = NOSEL, | ^~~~~~~~~~ KeyTool.c:77:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 77 | .text = L"The Machine Owner Key List (MokList)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:77:25: note: (near initialization for 'keyinfo[5].text') +KeyTool.c:90:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 90 | .name = L"X509", | ^~~~~~~ KeyTool.c:90:19: note: (near initialization for 'signatures[0].name') .KeyTool.c:93:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 93 | .name = L"RSA2048", | ^~~~~~~~~~ KeyTool.c:93:19: note: (near initialization for 'signatures[1].name') KeyTool.c:96:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 96 | .name = L"SHA256 signature", | ^~~~~~~~~~~~~~~~~~~ KeyTool.c:96:19: note: (near initialization for 'signatures[2].name') KeyTool.c:99:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 99 | .name = L"X509 SHA256 signature", | ^~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:99:19: note: (near initialization for 'signatures[3].name') shell.c: In function 'argsplit': KeyTool.c:102:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 102 | .name = L"X509 SHA384 signature", | ^~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:102:19: note: (near initialization for 'signatures[4].name') .shell.c:25:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 25 | Print(L"Failed to get arguments\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .KeyTool.c:105:19: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 105 | .name = L"X509 SHA256 signature", | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from shell.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, KeyTool.c:105:19: note: (near initialization for 'signatures[5].name') .KeyTool.c: In function 'select_and_apply': KeyTool.c:119:41: warning: passing argument 3 of 'simple_file_selector' from incompatible pointer type [-Wincompatible-pointer-types] 119 | simple_file_selector(&h, title, L"\\", ext, &file_name); | ^~~~~ | | | int * In file included from KeyTool.c:12: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/simple_file.h:18:62: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 18 | simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name, | ~~~~~~~~^~~~ ...KeyTool.c:134:55: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 134 | if (StrCmp(&file_name[StrLen(file_name) - 4], L".esl") == 0) { | ^~~~~~~ | | | int * In file included from KeyTool.c:9: /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 ...KeyTool.c:139:62: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 139 | } else if (StrCmp(&file_name[StrLen(file_name) - 5], L".auth") == 0) { | ^~~~~~~~ | | | int * /usr/include/efi/efilib.h:308:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 308 | IN CONST CHAR16 *s2 KeyTool.c:146:42: warning: passing argument 1 of 'console_errorbox' from incompatible pointer type [-Wincompatible-pointer-types] 146 | console_errorbox(L"Can't set MOK variables with a .auth file"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from KeyTool.c:10: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:14:26: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 14 | console_errorbox(CHAR16 *err); | ~~~~~~~~^~~ ..+KeyTool.c:161:39: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 161 | console_error(L"Failed to create proper ESL", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ .KeyTool.c:179:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 179 | console_error(L"Failed to update variable", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ....KeyTool.c: In function 'delete_key': +.KeyTool.c:245:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 245 | console_error(L"Failed to delete key", status); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ...KeyTool.c: In function 'show_key': KeyTool.c:266:34: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 266 | SPrint(str, sizeof(str), L"Sig[%d] - owner: %g", offset, &Cert->SignatureOwner); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .KeyTool.c:270:18: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 270 | title[c] = L"Unknown"; | ^ ..KeyTool.c:274:52: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 274 | SPrint(str1, sizeof(str1), L"Type: %s", signatures[i].name); | ^~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, ..KeyTool.c:281:30: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 281 | StrCpy(str2, L"Hash: "); | ^~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src console.c: In function 'console_print_box_at': KeyTool.c:290:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 290 | title[++c] = L""; | ^ console.c:106:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 106 | Print(L"Starting Position (%d,%d) is off screen\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .KeyTool.c:291:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 291 | title[++c] = L"Subject:"; | ^ In file included from console.c:7: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ .console.c:120:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 120 | Print(L"Failed Allocation\n"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ KeyTool.c:305:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 305 | title[++c] = L"Issuer:"; | ^ +++KeyTool.c:310:30: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 310 | StrCpy(str2, L"Hash: "); | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src KeyTool.c:315:24: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 315 | L"Revocation Timestamp: %d-%d-%d %02d:%02d:%02d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, KeyTool.c:328:30: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 328 | options[o++] = L"Delete"; | ^ +.+KeyTool.c:331:22: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 331 | options[o++] = L"Save to File"; | ^ KeyTool.c:334:30: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 334 | options[o++] = L"Delete with .auth File"; | ^ .KeyTool.c:350:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 350 | L"Save Key", | ^~~~~~~~~~~ KeyTool.c:350:33: note: (near initialization for '(anonymous)[0]') KeyTool.c:351:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 351 | L"", | ^~~ KeyTool.c:351:33: note: (near initialization for '(anonymous)[1]') +KeyTool.c:352:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 352 | L"Select a disk Volume to save the key file to", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:352:33: note: (near initialization for '(anonymous)[2]') +.console.c: In function 'console_yes_no': KeyTool.c:353:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 353 | L"The Key file will be saved in the top level directory", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:353:33: note: (near initialization for '(anonymous)[3]') console.c:300:54: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 300 | return console_select(str_arr, (CHAR16 *[]){ L"No", L"Yes", NULL }, 0); | ^~~~~ console.c:300:54: note: (near initialization for '(anonymous)[0]') KeyTool.c:354:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 354 | L"", | ^~~ KeyTool.c:354:33: note: (near initialization for '(anonymous)[4]') console.c:300:61: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 300 | return console_select(str_arr, (CHAR16 *[]){ L"No", L"Yes", NULL }, 0); | ^~~~~~ console.c:300:61: note: (near initialization for '(anonymous)[1]') KeyTool.c:355:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 355 | L"Note: For USB volumes, some UEFI implementations aren't", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:355:33: note: (near initialization for '(anonymous)[5]') .console.c: In function 'console_alertbox': KeyTool.c:356:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 356 | L"very good at hotplug, so you may have to boot with the USB", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ console.c:306:45: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 306 | console_select(title, (CHAR16 *[]){ L"OK", 0 }, 0); | ^~~~~ KeyTool.c:356:33: note: (near initialization for '(anonymous)[6]') console.c:306:45: note: (near initialization for '(anonymous)[0]') console.c: In function 'console_errorbox': +KeyTool.c:357:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 357 | L"Key already plugged in to see the volume", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:357:33: note: (near initialization for '(anonymous)[7]') console.c:313:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 313 | L"ERROR", | ^~~~~~~~ +console.c:313:17: note: (near initialization for '(anonymous)[0]') .console.c:314:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 314 | L"", | ^~~ console.c:314:17: note: (near initialization for '(anonymous)[1]') KeyTool.c:367:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 367 | SPrint(filename, 0, L"%s-%d.esl", keyinfo[key].name, offset); | ^~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .KeyTool.c:377:50: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 377 | SPrint(str, sizeof(str), L"Failed to write %s", filename); | ^~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, +KeyTool.c:382:52: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 382 | SPrint(str1, sizeof(str1), L"Key %s[%d]", keyinfo[key].name, offset); | ^~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, +.KeyTool.c:383:52: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 383 | SPrint(str2, sizeof(str2), L"With GUID: %g", &Cert->SignatureOwner); | ^~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, KeyTool.c:384:52: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 384 | SPrint(str3, sizeof(str3), L"saved to %s", filename); | ^~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .KeyTool.c:387:41: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 387 | L"Successfully Saved", | ^~~~~~~~~~~~~~~~~~~~~ KeyTool.c:387:41: note: (near initialization for '(anonymous)[0]') +KeyTool.c:388:41: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 388 | L"", | ^~~ KeyTool.c:388:41: note: (near initialization for '(anonymous)[1]') +.sha256.c: In function 'sha256_get_pecoff_digest_mem': KeyTool.c:397:26: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 397 | title[0] = L"Select authority bundle to remove PK"; | ^ sha256.c:295:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 295 | Print(L"Failed to read header\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * console.c: In function 'err_string': In file included from sha256.c:22: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ console.c:377:50: warning: returning 'WCHAR *' {aka 'int *'} from a function with incompatible return type 'CHAR16 *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types] 377 | return error_table[Index].Desc; | ~~~~~~~~~~~~~~~~~~^~~~~ KeyTool.c:399:41: warning: passing argument 2 of 'select_and_apply' from incompatible pointer type [-Wincompatible-pointer-types] 399 | select_and_apply(title, L".auth", key, 0); | ^~~~~~~~ | | | int * KeyTool.c:111:42: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 111 | select_and_apply(CHAR16 **title, CHAR16 *ext, int key, UINTN options) | ~~~~~~~~^~~ console.c:381:16: warning: returning 'int *' from a function with incompatible return type 'CHAR16 *' {aka 'short unsigned int *'} [-Wincompatible-pointer-types] 381 | return L""; | ^~~ .console.c: In function 'console_error': KeyTool.c: In function 'add_new_key': +console.c:389:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 389 | L"ERROR", | ^~~~~~~~ console.c:389:17: note: (near initialization for '(anonymous)[0]') KeyTool.c:408:23: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 408 | CHAR16 *ext = (key != KEY_PK && variable_is_setupmode()) | ^ +sha256.c:360:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 360 | Print(L"Invalid Data Size %d bytes too small\n", DataSize + context.SecDir->Size - sum_of_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ console.c:390:17: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 390 | L"", | ^~~ console.c:390:17: note: (near initialization for '(anonymous)[1]') KeyTool.c:411:18: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 411 | title[0] = L"Select File containing additional key for"; | ^ .sha256.c: In function 'sha256_StrCat_hash': sha256.c:378:42: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 378 | SPrint(buf, sizeof(buf), L"%02x", hash[i]); | ^~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, | ^ console.c:396:34: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 396 | SPrint(str, sizeof(str), L"%s: (%d) %s", err, status, err_string(status)); | ^~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, | ^ KeyTool.c: In function 'enroll_hash': KeyTool.c:428:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 428 | L"Select Binary", | ^~~~~~~~~~~~~~~~ KeyTool.c:428:25: note: (near initialization for '(anonymous)[0]') .sha256.c: In function 'sha256_get_pecoff_digest': sha256.c:393:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 393 | Print(L"Failed to open %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ +KeyTool.c:429:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 429 | L"", | ^~~ KeyTool.c:429:25: note: (near initialization for '(anonymous)[1]') sha256.c:399:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 399 | Print(L"Failed to read %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, | ^ +KeyTool.c:430:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 430 | L"The Selected Binary will have its hash Enrolled", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:430:25: note: (near initialization for '(anonymous)[2]') .KeyTool.c:431:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 431 | L"This means it will Subsequently Boot with no prompting", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:431:25: note: (near initialization for '(anonymous)[3]') KeyTool.c:432:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 432 | L"Remember to make sure it is a genuine binary before Enrolling its hash", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:432:25: note: (near initialization for '(anonymous)[4]') ++KeyTool.c:434:20: warning: passing argument 3 of 'simple_file_selector' from incompatible pointer type [-Wincompatible-pointer-types] 434 | }, L"\\", NULL, &file_name); | ^~~~~ | | | int * +/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/simple_file.h:18:62: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 18 | simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name, | ~~~~~~~~^~~~ KeyTool.c:442:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 442 | console_error(L"Hash failed (is efi binary valid?)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ .KeyTool.c:447:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 447 | StrCpy(buf0, L"Enroll hash into "); | ^~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src .+KeyTool.c:450:18: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 450 | title[1] = L""; | ^ +KeyTool.c:451:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 451 | StrCpy(buf1, L"File: "); | ^~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src KeyTool.c:454:22: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 454 | StrCpy(buf2, L"Hash: "); | ^~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src .+KeyTool.c:465:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 465 | console_error(L"Failed to add signature to db", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ .+KeyTool.c: In function 'save_key_internal': .KeyTool.c:484:39: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 484 | StrCat(error, L": Variable has no entries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src .KeyTool.c:486:45: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 486 | SPrint(error, 1024, L"%s: Failed to get variable (Error: %d)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * +/usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .+KeyTool.c:490:27: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 490 | StrCpy(file_name, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src .KeyTool.c:492:27: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 492 | StrCat(file_name, L".esl"); | ^~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src ++KeyTool.c:498:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 498 | SPrint(error, 1024, L"%s: Failed to open file %s (Error: %d)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, +.KeyTool.c:505:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 505 | SPrint(error, 1024, L"%s: Failed to write to %s (Error: %d)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, KeyTool.c:509:23: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 509 | StrCat(error, L": Successfully written to "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * ./usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src KeyTool.c: In function 'save_key': +KeyTool.c:520:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 520 | L"Save Key", | ^~~~~~~~~~~ KeyTool.c:520:25: note: (near initialization for '(anonymous)[0]') .KeyTool.c:521:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 521 | L"", | ^~~ KeyTool.c:521:25: note: (near initialization for '(anonymous)[1]') +KeyTool.c:522:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 522 | L"Select a disk Volume to save the key file to", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:522:25: note: (near initialization for '(anonymous)[2]') .KeyTool.c:523:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 523 | L"The key file will be saved in the top level directory", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:523:25: note: (near initialization for '(anonymous)[3]') +KeyTool.c:524:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 524 | L"", | ^~~ KeyTool.c:524:25: note: (near initialization for '(anonymous)[4]') ++KeyTool.c:525:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 525 | L"Note: For USB volumes, some UEFI implementations aren't", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:525:25: note: (near initialization for '(anonymous)[5]') KeyTool.c:526:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 526 | L"very good at hotplug, so you may have to boot with the USB", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:526:25: note: (near initialization for '(anonymous)[6]') KeyTool.c:527:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 527 | L"USB device already plugged in to see the volume", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:527:25: note: (near initialization for '(anonymous)[7]') +KeyTool.c: In function 'manipulate_key': .+KeyTool.c:551:18: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 551 | title[0] = L"Manipulating Contents of"; | ^ execute.c: In function 'generate_path': execute.c:77:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 77 | Print(L"Failed to allocate path buffer\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .In file included from execute.c:42: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, +KeyTool.c:559:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 559 | console_error(L"Failed to get DataSize", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ execute.c:85:35: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 85 | StrCat(*PathName, L"\\"); | ^~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src +.KeyTool.c:566:42: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 566 | SPrint(str, sizeof(str), L"Failed to allocate %d", DataSize); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .KeyTool.c:574:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 574 | title[t++] = L"Variable is Empty"; | ^ +KeyTool.c:576:36: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 576 | title[t++] = L"WARNING: Setting PK will take the platform out of Setup Mode"; | ^ +.KeyTool.c:579:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 579 | console_error(L"Failed to get variable", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c security_policy.c -o security_policy.efi.o .++.KeyTool.c:598:72: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 598 | SPrint(guids[cert_count++], 64*sizeof(CHAR16), L"%g", &Cert->SignatureOwner); | ^~~~~ | | | int * /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .+KeyTool.c:604:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 604 | guids[g++] = L"Add New Key"; | ^ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c configtable.c -o configtable.o +KeyTool.c:607:20: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 607 | guids[g++] = L"Replace Key(s)"; | ^ .KeyTool.c:611:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 611 | guids[g++] = L"Enroll hash of binary"; | ^ +.KeyTool.c:616:28: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 616 | guids[g++] = L"Save key"; | ^ +..+KeyTool.c: In function 'select_key': +KeyTool.c:655:51: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 655 | i = console_select( (CHAR16 *[]){ L"Select Key to Manipulate", NULL }, keys, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:655:51: note: (near initialization for '(anonymous)[0]') +KeyTool.c: In function 'save_keys': KeyTool.c:669:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 669 | L"Save Keys", | ^~~~~~~~~~~~ KeyTool.c:669:25: note: (near initialization for '(anonymous)[0]') +.KeyTool.c:670:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 670 | L"", | ^~~ KeyTool.c:670:25: note: (near initialization for '(anonymous)[1]') .+KeyTool.c:671:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 671 | L"Select a disk Volume to save all the key files to", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:671:25: note: (near initialization for '(anonymous)[2]') .KeyTool.c:672:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 672 | L"Key files will be saved in the top level directory", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:672:25: note: (near initialization for '(anonymous)[3]') +KeyTool.c:673:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 673 | L"", | ^~~ +KeyTool.c:673:25: note: (near initialization for '(anonymous)[4]') +KeyTool.c:674:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 674 | L"Note: For USB volumes, some UEFI implementations aren't", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:674:25: note: (near initialization for '(anonymous)[5]') KeyTool.c:675:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 675 | L"very good at hotplug, so you may have to boot with the USB", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:675:25: note: (near initialization for '(anonymous)[6]') +KeyTool.c:676:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 676 | L"USB device already plugged in to see the volume", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:676:25: note: (near initialization for '(anonymous)[7]') .+KeyTool.c:687:22: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 687 | title[t_c++] = L"Results of Saving Keys"; | ^ .+KeyTool.c:688:22: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 688 | title[t_c++] = L""; | ^ ++KeyTool.c: In function 'execute_binary': KeyTool.c:711:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 711 | L"Select Binary to Execute", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ KeyTool.c:711:25: note: (near initialization for '(anonymous)[0]') +KeyTool.c:712:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 712 | L"", | ^~~ KeyTool.c:712:25: note: (near initialization for '(anonymous)[1]') .+KeyTool.c:714:20: warning: passing argument 3 of 'simple_file_selector' from incompatible pointer type [-Wincompatible-pointer-types] 714 | }, L"\\", | ^~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/simple_file.h:18:62: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 18 | simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name, | ~~~~~~~~^~~~ ++KeyTool.c:729:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 729 | console_error(L"Image failed to load", status); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ +KeyTool.c:737:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 737 | console_error(L"Execution returned error", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ KeyTool.c: In function 'efi_main': .+KeyTool.c:754:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 754 | efi_status = RT->GetVariable(L"SetupMode", &GV_GUID, NULL, &DataSize, &SetupMode); | ^~~~~~~~~~~~ | | | int * KeyTool.c:754:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' .+KeyTool.c:757:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 757 | Print(L"No SetupMode variable ... is platform secure boot enabled?\n"); return EFI_SUCCESS; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .+KeyTool.c:769:31: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 769 | StrCat(line2, L"Platform is in "); | ^~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src ++KeyTool.c:770:57: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 770 | StrCat(line2, SetupMode ? L"Setup Mode" : L"User Mode"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src +KeyTool.c:771:31: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 771 | StrCat(line3, L"Secure Boot is "); | ^~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src +KeyTool.c:772:50: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 772 | StrCat(line3, SecureBoot ? L"on" : L"off"); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | int * ./usr/include/efi/efilib.h:363:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 363 | IN CONST CHAR16 *Src KeyTool.c:773:39: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 773 | title = (CHAR16 *[]){L"KeyTool main menu", L"", line2, line3, NULL }; | ^~~~~~~~~~~~~~~~~~~~ +KeyTool.c:773:39: note: (near initialization for '(anonymous)[0]') .KeyTool.c:773:61: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 773 | title = (CHAR16 *[]){L"KeyTool main menu", L"", line2, line3, NULL }; | ^~~ +KeyTool.c:773:61: note: (near initialization for '(anonymous)[1]') +KeyTool.c:776:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 776 | L"Save Keys", | ^~~~~~~~~~~~ KeyTool.c:776:33: note: (near initialization for '(anonymous)[0]') +KeyTool.c:777:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 777 | L"Edit Keys", | ^~~~~~~~~~~~ KeyTool.c:777:33: note: (near initialization for '(anonymous)[1]') +.KeyTool.c:778:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 778 | L"Execute Binary", | ^~~~~~~~~~~~~~~~~ KeyTool.c:778:33: note: (near initialization for '(anonymous)[2]') +KeyTool.c:779:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 779 | L"Exit", | ^~~~~~~ KeyTool.c:779:33: note: (near initialization for '(anonymous)[3]') .+.+.++.+.++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c asn1_parser.c -o asn1_parser.efi.o .++++.++.+.++.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c shim_protocol.c -o shim_protocol.efi.o .++.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c SetNull.c -o SetNull.o .++.+.++.+.+.++++++.+.++..++.+.++.+.++.+.++.+.++..+ +..+..+..+..+..++----- +..+++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c ShimReplace.c -o ShimReplace.o ..+.security_policy.c: In function 'security_policy_mok_override': security_policy.c:63:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 63 | status = get_variable_attr(L"MokSBState", &VarData, &VarLen, | ^~~~~~~~~~~~~ | | | int * In file included from security_policy.c:14: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ .+security_policy.c: In function 'security_policy_mok_deny': security_policy.c:85:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 85 | if (find_in_variable_esl(L"dbx", SIG_DB, hash, SHA256_DIGEST_SIZE) | ^~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ security_policy.c:90:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 90 | if (find_in_variable_esl(L"MokListX", SIG_DB, hash, SHA256_DIGEST_SIZE) | ^~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .security_policy.c: In function 'security_policy_mok_allow': security_policy.c:110:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 110 | status = get_variable_attr(L"MokList", &VarData, &VarLen, MOK_OWNER, | ^~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c pkcs7verify.c -o pkcs7verify.efi.o security_policy.c:120:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 120 | if (find_in_variable_esl(L"MokList", MOK_OWNER, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) | ^~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +..+..+ ...+...+.......+..+...+...+.............+.....++.........+.+.....+.......+.........++++++++++++++++++.++++++++++++++.++++++++++++++.++++++++++++++.+++++*...+..........+........+...+.....+......+..+...+....+.....+.+...+...............+..........+.....+.......+..+.++++++++++++++.+++++++++++++++++++++++++++++++++++++++++++++++.++++*..+.configtable.c: In function 'configtable_find_image': configtable.c:87:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 87 | Print(L"Image Execution Information table corrupt\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from configtable.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .configtable.c:100:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 100 | Print(L"Image Execution Information table corrupt\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .....+....+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c variables.c -o variables.o .....+.....+.+....+.......gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c hash-to-efi-sig-list.c -o hash-to-efi-sig-list.o +.....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c enumerator.c -o enumerator.efi.o ....+.+....+.....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sig-list-to-certs.c -o sig-list-to-certs.o ........+..+.hash-to-efi-sig-list.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ...........+..+....+....+..asn1_parser.c: In function 'iterate': asn1_parser.c:82:15: warning: variable 'level' set but not used [-Wunused-but-set-variable] 82 | u_int level; | ^~~~~ +.............+........sig-list-to-certs.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ...........ShimReplace.c:21:31: warning: initialization of 'const CHAR16 *' {aka 'const short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 21 | static const CHAR16 *loader = L"\\grub.efi"; | ^~~~~~~~~~~~~ +ShimReplace.c:22:33: warning: initialization of 'const CHAR16 *' {aka 'const short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 22 | static const CHAR16 *fallback = L"\\fallback.efi"; | ^~~~~~~~~~~~~~~~~ .ShimReplace.c: In function 'efi_main': ShimReplace.c:43:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 43 | console_error(L"Failed to install shim protocol", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from ShimReplace.c:14: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ .ShimReplace.c:49:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 49 | console_error(L"Failed to locate shim protocol", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ShimReplace.c:51:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 51 | efi_status = execute(image, loader); | ^~~~~~ In file included from ShimReplace.c:17: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const short unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ .gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c shell.c -o shell.o ShimReplace.c:55:23: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 55 | console_error(L"Failed to start primary loader", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ShimReplace.c:57:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 57 | efi_status = execute(image, fallback); | ^~~~~~~~ /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const short unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ ..ShimReplace.c:60:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 60 | console_error(L"Failed to start fallback loader", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ..+..+..+..+....+...........++..+.......+....+....+.....+.+...++...........+pkcs7verify.c:13:24: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 13 | static CHAR16 *p7bin = L"\\Pkcs7VerifyDxe.efi"; | ^~~~~~~~~~~~~~~~~~~~~~~ .pkcs7verify.c: In function 'pkcs7verify_get_protocol': pkcs7verify.c:31:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 31 | Print(L"Platform doesn't provide PKCS7_VERIFY protocol, trying to load\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .In file included from pkcs7verify.c:2: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pkcs7verify.c:35:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | *error = L"Can't find loaded image protocol"; | ^ +pkcs7verify.c:41:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 41 | *error = L"generate_path failed"; | ^ .pkcs7verify.c:47:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 47 | *error = L"LoadImage failed for external module"; | ^ pkcs7verify.c:53:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 53 | *error = L"StartImage failed for external module (loaded OK)"; | ^ .pkcs7verify.c:61:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 61 | *error = L"Loaded module but it didn't provide the pkcs7Verify protocol"; | ^ .pkcs7verify.c: In function 'pkcs7verify_is_hash_present': pkcs7verify.c:104:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 104 | Print(L"FIXME: found an unrecognised hash algorithm %g\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pkcs7verify.c: In function 'pkcs7verify_deny': ..pkcs7verify.c:122:44: warning: passing argument 1 of 'pkcs7verify_is_hash_present' from incompatible pointer type [-Wincompatible-pointer-types] 122 | deny = pkcs7verify_is_hash_present(L"dbx", SIG_DB, data, len); | ^~~~~~ | | | int * pkcs7verify.c:73:37: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 73 | pkcs7verify_is_hash_present(CHAR16 *var, EFI_GUID owner, VOID *data, UINTN len) | ~~~~~~~~^~~ pkcs7verify.c:127:44: warning: passing argument 1 of 'pkcs7verify_is_hash_present' from incompatible pointer type [-Wincompatible-pointer-types] 127 | deny = pkcs7verify_is_hash_present(L"MokListX", MOK_OWNER, data, len); | ^~~~~~~~~~~ | | | int * pkcs7verify.c:73:37: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 73 | pkcs7verify_is_hash_present(CHAR16 *var, EFI_GUID owner, VOID *data, UINTN len) | ~~~~~~~~^~~ ...pkcs7verify.c: In function 'pkcs7verify_allow': .pkcs7verify.c:169:29: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 169 | CHAR16 *check[] = { L"MokList", L"db" }; | ^~~~~~~~~~ pkcs7verify.c:169:29: note: (near initialization for 'check[0]') pkcs7verify.c:169:41: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 169 | CHAR16 *check[] = { L"MokList", L"db" }; | ^~~~~ pkcs7verify.c:169:41: note: (near initialization for 'check[1]') .pkcs7verify.c:170:30: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 170 | CHAR16 *forbid[] = { L"MokListX", L"dbx" }; | ^~~~~~~~~~~ pkcs7verify.c:170:30: note: (near initialization for 'forbid[0]') .pkcs7verify.c:170:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 170 | CHAR16 *forbid[] = { L"MokListX", L"dbx" }; | ^~~~~~ pkcs7verify.c:170:43: note: (near initialization for 'forbid[1]') ..pkcs7verify.c:189:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 189 | if (find_in_variable_esl(L"MokList", MOK_OWNER, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS || | ^~~~~~~~~~ | | | int * In file included from pkcs7verify.c:7: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .pkcs7verify.c:190:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 190 | find_in_variable_esl(L"db", SIG_DB, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) { | ^~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c efi-readvar.c -o efi-readvar.o .+.......+.......+...+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c chunk.c -o chunk.efi.o ..++..+.......++...variables.c: In function 'SetSecureVariable': .variables.c:152:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 152 | Print(L"Failed to create %s certificate %d\n", var, efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from variables.c:23: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .+variables.c:164:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 164 | Print(L"Failed to create time based payload %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .variables.c: In function 'GetOSIndications': variables.c:186:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 186 | efi_status = RT->GetVariable(L"OsIndicationsSupported", &GV_GUID, NULL, &DataSize, &indications); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * variables.c:186:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' .gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c efi-updatevar.c -o efi-updatevar.o variables.c: In function 'SETOSIndicationsAndReboot': variables.c:199:38: warning: passing argument 1 of 'RT->SetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 199 | efi_status = RT->SetVariable(L"OsIndications", | ^~~~~~~~~~~~~~~~ | | | int * variables.c:199:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' ...+.......+..variables.c: In function 'variable_is_setupmode': gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c oid.c -o oid.efi.o variables.c:336:25: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 336 | RT->GetVariable(L"SetupMode", &GV_GUID, NULL, &DataSize, &SetupMode); | ^~~~~~~~~~~~ | | | int * .variables.c:336:25: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' .variables.c: In function 'variable_is_secureboot': variables.c:349:25: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 349 | RT->GetVariable(L"SecureBoot", &GV_GUID, NULL, &DataSize, &SecureBoot); | ^~~~~~~~~~~~~ | | | int * .variables.c:349:25: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' ..+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c security_policy.c -o security_policy.o ..........+....+.+....+........+...+shell.c: In function 'argsplit': shell.c:25:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 25 | Print(L"Failed to get arguments\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from shell.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ...+...+...........+.....+.............+.+......+...++..........+.............+......+...+........+...........+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c shim_protocol.c -o shim_protocol.o +......+.......+......................+.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c pkcs7verify.c -o pkcs7verify.o .....++.+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c cert-to-efi-hash-list.c -o cert-to-efi-hash-list.o ............+.....+.+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c kernel_efivars.c -o kernel_efivars.o +..security_policy.c: In function 'security_policy_mok_override': security_policy.c:63:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 63 | status = get_variable_attr(L"MokSBState", &VarData, &VarLen, | ^~~~~~~~~~~~~ | | | int * In file included from security_policy.c:14: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ ..security_policy.c: In function 'security_policy_mok_deny': security_policy.c:85:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 85 | if (find_in_variable_esl(L"dbx", SIG_DB, hash, SHA256_DIGEST_SIZE) | ^~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ security_policy.c:90:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 90 | if (find_in_variable_esl(L"MokListX", SIG_DB, hash, SHA256_DIGEST_SIZE) | ^~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +security_policy.c: In function 'security_policy_mok_allow': security_policy.c:110:36: warning: passing argument 1 of 'get_variable_attr' from incompatible pointer type [-Wincompatible-pointer-types] 110 | status = get_variable_attr(L"MokList", &VarData, &VarLen, MOK_OWNER, | ^~~~~~~~~~ | | | int * ./home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:23:27: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 23 | get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, | ~~~~~~~~^~~ security_policy.c:120:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 120 | if (find_in_variable_esl(L"MokList", MOK_OWNER, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) | ^~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ .....+..+....+....+...+....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c openssl_sign.c -o openssl_sign.o +...............+.....+.+.+.+++.+.+.+.+.+.+..+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c identification.c -o identification.efi.o .+.+.+.+.+..+++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c flash-var.c -o flash-var.o +.+.+.++++.+++.+.+.+.+.+.+.+..+.+.++++.+.+.+..+.+.+.kernel_efivars.c:19: warning: "__STDC_VERSION__" redefined 19 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition +.+> noPK.esl +++.+.+..+++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c x509.c -o x509.efi.o +.+.++openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB1/" -keyout DB1.key -out DB1.crt -days 3650 -nodes -sha256 ++.+.+..+.+openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB2/" -keyout DB2.key -out DB2.crt -days 3650 -nodes -sha256 .+.+++ .pkcs7verify.c:13:24: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 13 | static CHAR16 *p7bin = L"\\Pkcs7VerifyDxe.efi"; | ^~~~~~~~~~~~~~~~~~~~~~~ .pkcs7verify.c: In function 'pkcs7verify_get_protocol': pkcs7verify.c:31:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 31 | Print(L"Platform doesn't provide PKCS7_VERIFY protocol, trying to load\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * .flash-var.c:13: warning: "__STDC_VERSION__" redefined 13 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition In file included from pkcs7verify.c:2: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, pkcs7verify.c:35:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 35 | *error = L"Can't find loaded image protocol"; | ^ pkcs7verify.c:41:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 41 | *error = L"generate_path failed"; | ^ .pkcs7verify.c:47:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 47 | *error = L"LoadImage failed for external module"; | ^ pkcs7verify.c:53:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 53 | *error = L"StartImage failed for external module (loaded OK)"; | ^ pkcs7verify.c:61:24: warning: assignment to 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 61 | *error = L"Loaded module but it didn't provide the pkcs7Verify protocol"; | ^ .pkcs7verify.c: In function 'pkcs7verify_is_hash_present': pkcs7verify.c:104:31: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 104 | Print(L"FIXME: found an unrecognised hash algorithm %g\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, .pkcs7verify.c: In function 'pkcs7verify_deny': pkcs7verify.c:122:44: warning: passing argument 1 of 'pkcs7verify_is_hash_present' from incompatible pointer type [-Wincompatible-pointer-types] 122 | deny = pkcs7verify_is_hash_present(L"dbx", SIG_DB, data, len); | ^~~~~~ | | | int * pkcs7verify.c:73:37: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 73 | pkcs7verify_is_hash_present(CHAR16 *var, EFI_GUID owner, VOID *data, UINTN len) | ~~~~~~~~^~~ pkcs7verify.c:127:44: warning: passing argument 1 of 'pkcs7verify_is_hash_present' from incompatible pointer type [-Wincompatible-pointer-types] 127 | deny = pkcs7verify_is_hash_present(L"MokListX", MOK_OWNER, data, len); | ^~~~~~~~~~~ | | | int * .pkcs7verify.c:73:37: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 73 | pkcs7verify_is_hash_present(CHAR16 *var, EFI_GUID owner, VOID *data, UINTN len) | ~~~~~~~~^~~ .pkcs7verify.c: In function 'pkcs7verify_allow': .pkcs7verify.c:169:29: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 169 | CHAR16 *check[] = { L"MokList", L"db" }; | ^~~~~~~~~~ pkcs7verify.c:169:29: note: (near initialization for 'check[0]') pkcs7verify.c:169:41: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 169 | CHAR16 *check[] = { L"MokList", L"db" }; | ^~~~~ pkcs7verify.c:169:41: note: (near initialization for 'check[1]') pkcs7verify.c:170:30: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 170 | CHAR16 *forbid[] = { L"MokListX", L"dbx" }; | ^~~~~~~~~~~ .pkcs7verify.c:170:30: note: (near initialization for 'forbid[0]') .+.....+pkcs7verify.c:170:43: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 170 | CHAR16 *forbid[] = { L"MokListX", L"dbx" }; | ^~~~~~ pkcs7verify.c:170:43: note: (near initialization for 'forbid[1]') ..+.+.....+...+.......+pkcs7verify.c:189:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 189 | if (find_in_variable_esl(L"MokList", MOK_OWNER, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS || | ^~~~~~~~~~ | | | int * +.++++In file included from pkcs7verify.c:7: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +++++.++++----- +++pkcs7verify.c:190:34: warning: passing argument 1 of 'find_in_variable_esl' from incompatible pointer type [-Wincompatible-pointer-types] 190 | find_in_variable_esl(L"db", SIG_DB, hash, SHA256_DIGEST_SIZE) == EFI_SUCCESS) { | ^~~~~ | | | int * +++++/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/variables.h:28:30: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 28 | find_in_variable_esl(CHAR16* var, EFI_GUID owner, UINT8 *key, UINTN keylen); | ~~~~~~~~^~~ +++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++*.++.......++....+.++...++.........++.+......++........++.+++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++*...+.++++.+..++++.+.....+++++..+.++++.+....+....+...++++.++*.......+.....+...+.+...+.+...+..+..........+...+........+++.++++.++++++++.++.+++++++.+++++++.+.++++++++.+++++.++++.++++++++++.+++++++*..................+.+....+......ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds SetNull.o -o SetNull.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a .......+.+.........+....+......++....+# check we have no undefined symbols ...nm -D SetNull.so | grep ' U ' && exit 1 || exit 0 ..+.+.+....++..++objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 SetNull.so SetNull.efi +....+.+..+.....efi-readvar.c:20: warning: "__STDC_VERSION__" redefined 20 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition +..+..+....+In file included from x509.c:1: x509.c: In function 'x509_to_str': +typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * x509.c:51:9: note: in expansion of macro 'snprintf' 51 | snprintf(buf, sizeof(buf), "MISPARSE"); | ^~~~~~~~ .In file included from typedefs.h:3: /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, ...+..+.+..+..+..+.+.++In file included from identification.c:18: identification.c: In function 'dntoa': typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:178:35: note: in expansion of macro 'snprintf' 178 | written = snprintf(buf, len, "UNKNOWN-OID="); | ^~~~~~~~ +In file included from typedefs.h:3: /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:182:35: note: in expansion of macro 'snprintf' 182 | written = snprintf(buf, len,"%" STRA "=", oid_names[oid].name); | ^~~~~~~~ /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, ..typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:192:27: note: in expansion of macro 'snprintf' 192 | written = snprintf(buf, len, "%.*" STRA, (int)printable.len, printable.ptr); | ^~~~~~~~ /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, ..typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:203:35: note: in expansion of macro 'snprintf' 203 | written = snprintf(buf, len, ", "); | ^~~~~~~~ +/usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:219:17: note: in expansion of macro 'snprintf' 219 | snprintf(buf, len, ""); | ^~~~~~~~ ./usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, .typedefs.h:11:43: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 11 | #define snprintf(s, l, f...) SPrint(s, l, L ## f) | ^ | | | int * identification.c:223:17: note: in expansion of macro 'snprintf' 223 | snprintf(buf, len, "(invalid ID_DER_ASN1_DN)"); | ^~~~~~~~ /usr/include/efi/efilib.h:542:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 542 | IN CONST CHAR16 *fmt, +++....+identification.c: At top level: identification.c:33:24: warning: 'x501rdns' defined but not used [-Wunused-const-variable=] 33 | static const x501rdn_t x501rdns[] = { | ^~~~~~~~ ....+.+..++...+.+..+...+..+....+.....+.....+.+...+.....++.+.+.+..+.+..+..+.+.....+......+.....+.....+.....+....++....+.+..+...+.+.+..+....++...+.....+.+.++....+...+.+.....+....++....+.....+.++.++...+...In file included from flash-var.c:7: In function 'memset', inlined from 'main' at flash-var.c:186:2: /usr/include/fortify/string.h:72:16: warning: '__builtin_memset' offset [0, 56] is out of the bounds [0, 0] [-Warray-bounds] 72 | return __builtin_memset(__d, __c, __n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ..+......+..+.+.....++..+..++.+.+++..+ ..+.....+.......+...+................+.....+...+.+...+..+.+++++++++++++++++++++++++++++.++++++++.+++++++++++++++++.+++.++++++++*.....+.......++.++++++++++++++.+++.+++++++++++++++++.++++++++++++++++++.++++++++++++*.........+...............+++..................+..+...++.+...+...++..+...+...+..+...++.+...+.++....+.+++.+.+.....+......efi-updatevar.c:23: warning: "__STDC_VERSION__" redefined 23 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition +.....+....+++..++....+..+..+....++...++....+.....+.+..+...+++...ar rcv libasn1-efi.a asn1.efi.o asn1_parser.efi.o enumerator.efi.o chunk.efi.o oid.efi.o identification.efi.o x509.efi.o .+.....+.+..++.a - asn1.efi.o ..a - asn1_parser.efi.o a - enumerator.efi.o a - chunk.efi.o a - oid.efi.o a - identification.efi.o a - x509.efi.o +.+.openssl_sign.c: In function 'read_engine_private_key': openssl_sign.c:118:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 118 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ .+In file included from openssl_sign.c:10: /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ openssl_sign.c:119:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | e = ENGINE_by_id(engine); | ^ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ .openssl_sign.c:135:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 135 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ openssl_sign.c:141:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 141 | pkey = ENGINE_load_private_key(e, keyfile, ui, NULL); | ^~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' +...openssl_sign.c:142:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 142 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ openssl_sign.c:145:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 145 | ENGINE_free(e); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:493:27: note: declared here 493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e); | ^~~~~~~~~~~ +...+.+++..+.++..++++.++++..++..+.+.+..++.+..++..+..++++.+.+.++++..++.+++.+.+.+++.+.++++.+ ..+....++.+.++.++..++----- .++..++.+....+..++..+...+...+...+...+....+...+...+...++..+...++.+...+...+...+....+.+++++++++++++++++++++++++++++++++++++++++++++ ..+...........+.......+...+..+......+.+...+...+...+........+...++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*+..+..+..+.++.+..+..+..+.+..+..+++..+..+..+.+..+++..+..+++..+.+++..+++.++.+.+..+..+++..+..+..+.+.++ ...........+..+...+......+....+......+........+.++.++++++++++++++++.++++++++++++++++++.++++++++++++++++++++++++++++++*........+++++++++++++++++++++.++++++++++++++++.+++++++++++++++.+++++++++++++*.+........+..........+........+........++......+....+....+..+..........+....+........+..........++...++.........++....+......+............+.......++........++.....+....................+..........+..+..+....+................++........++.......++..+......+..........+..............+.+....++....++........................+........+.+....++...+........+.+...........+...+........++.+..+++..+++..+.+..+.++.+++..+.+..+..+..+++..+++.+..+..+..+.+..+..+..+.++.+..+.+++..+..+.++.+..+.+++..+++..+.+++..+..+++..+.+++..+..+..+..+..+..+++.+..+..+..+..+..+.+ +........+.......----- +.....+.+..................+..+...+....+...............+.....+......+...............+..........+.....+.+...............+.....+......+.......+......+..+............+.+..............+.+.................+....+...+..+.+...+.....+.+.........+..+...+......+...+.............+............+...+...+..............+.+..+...+.+..............+...............+.......+..+......+.+...+...+.....+.........+....+.........+..+...+.+..+....+...+.....+...+.......+......+..+...+.+.....+.........+.+.........+.........+..+...+...+...+......+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ----- sbsign --key DB.key --cert DB.crt --output SetNull-signed.efi SetNull.efi warning: data remaining[3584 vs 3825]: gaps between PE/COFF sections? warning: data remaining[3584 vs 3832]: gaps between PE/COFF sections? Signing Unsigned original image ar rcv lib-efi.a simple_file.efi.o pecoff.efi.o guid.efi.o sha256.efi.o console.efi.o execute.efi.o configtable.efi.o shell.efi.o security_policy.efi.o shim_protocol.efi.o pkcs7verify.efi.o variables.o a - simple_file.efi.o a - pecoff.efi.o a - guid.efi.o a - sha256.efi.o a - console.efi.o a - execute.efi.o a - configtable.efi.o a - shell.efi.o a - security_policy.efi.o a - shim_protocol.efi.o a - pkcs7verify.efi.o a - variables.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds HelloWorld.o lib/lib-efi.a -o HelloWorld.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds Loader.o lib/lib-efi.a -o Loader.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds ReadVars.o lib/lib-efi.a lib/asn1/libasn1-efi.a -o ReadVars.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D HelloWorld.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds UpdateVars.o lib/lib-efi.a -o UpdateVars.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D Loader.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds KeyTool.o lib/lib-efi.a lib/asn1/libasn1-efi.a -o KeyTool.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds HashTool.o lib/lib-efi.a -o HashTool.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D ReadVars.so | grep ' U ' && exit 1 || exit 0 # check we have no undefined symbols nm -D UpdateVars.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds ShimReplace.o lib/lib-efi.a -o ShimReplace.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D KeyTool.so | grep ' U ' && exit 1 || exit 0 ar rcv lib.a simple_file.o pecoff.o guid.o sha256.o console.o execute.o configtable.o shell.o security_policy.o shim_protocol.o pkcs7verify.o kernel_efivars.o openssl_sign.o objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 HelloWorld.so HelloWorld.efi # check we have no undefined symbols a - simple_file.o nm -D HashTool.so | grep ' U ' && exit 1 || exit 0 a - pecoff.o a - guid.o a - sha256.o a - console.o a - execute.o a - configtable.o a - shell.o a - security_policy.o a - shim_protocol.o a - pkcs7verify.o a - kernel_efivars.o a - openssl_sign.o objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 Loader.so Loader.efi make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 ReadVars.so ReadVars.efi # check we have no undefined symbols objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 UpdateVars.so UpdateVars.efi nm -D ShimReplace.so | grep ' U ' && exit 1 || exit 0 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 KeyTool.so KeyTool.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 HashTool.so HashTool.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 ShimReplace.so ShimReplace.efi gcc -o hash-to-efi-sig-list hash-to-efi-sig-list.o lib/lib.a gcc -o sig-list-to-certs sig-list-to-certs.o lib/lib.a -lcrypto gcc -o efi-readvar efi-readvar.o lib/lib.a -lcrypto gcc -o efi-updatevar efi-updatevar.o lib/lib.a -lcrypto gcc -o cert-to-efi-hash-list cert-to-efi-hash-list.o lib/lib.a -lcrypto gcc -o flash-var flash-var.o lib/lib.a sbsign --key DB.key --cert DB.crt --output HelloWorld-signed.efi HelloWorld.efi gcc -o cert-to-efi-sig-list cert-to-efi-sig-list.o lib/lib.a -lcrypto warning: data remaining[39424 vs 49012]: gaps between PE/COFF sections? warning: data remaining[39424 vs 49016]: gaps between PE/COFF sections? gcc -o sign-efi-sig-list sign-efi-sig-list.o lib/lib.a -lcrypto sbsign --key DB.key --cert DB.crt --output Loader-signed.efi Loader.efi Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output ReadVars-signed.efi ReadVars.efi warning: data remaining[82944 vs 94833]: gaps between PE/COFF sections? warning: data remaining[82944 vs 94840]: gaps between PE/COFF sections? sbsign --key DB.key --cert DB.crt --output UpdateVars-signed.efi UpdateVars.efi warning: data remaining[111104 vs 123964]: gaps between PE/COFF sections? warning: data remaining[111104 vs 123968]: gaps between PE/COFF sections? sbsign --key DB.key --cert DB.crt --output KeyTool-signed.efi KeyTool.efi warning: data remaining[80896 vs 92795]: gaps between PE/COFF sections? warning: data remaining[80896 vs 92800]: gaps between PE/COFF sections? sbsign --key DB.key --cert DB.crt --output HashTool-signed.efi HashTool.efi warning: data remaining[124416 vs 137668]: gaps between PE/COFF sections? warning: data remaining[124416 vs 137672]: gaps between PE/COFF sections? Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output ShimReplace-signed.efi ShimReplace.efi warning: data remaining[82944 vs 94883]: gaps between PE/COFF sections? warning: data remaining[82944 vs 94888]: gaps between PE/COFF sections? Signing Unsigned original image ./hash-to-efi-sig-list HashTool.efi HashTool.hash warning: data remaining[83456 vs 95796]: gaps between PE/COFF sections? warning: data remaining[83456 vs 95800]: gaps between PE/COFF sections? Signing Unsigned original image help2man --no-info -i doc/hash-to-efi-sig-list.1.in -o doc/hash-to-efi-sig-list.1 ./hash-to-efi-sig-list Signing Unsigned original image HASH IS 9fcac8665dea70b72a608f18f6bc6d28be6d8abba0d1a8501c2def59656cc3a0 Signing Unsigned original image help2man --no-info -i doc/sig-list-to-certs.1.in -o doc/sig-list-to-certs.1 ./sig-list-to-certs Signing Unsigned original image cat HashTool.hash > /tmp/tmp.hash ./xxdi.pl /tmp/tmp.hash > hashlist.h help2man --no-info -i doc/efi-readvar.1.in -o doc/efi-readvar.1 ./efi-readvar help2man --no-info -i doc/efi-updatevar.1.in -o doc/efi-updatevar.1 ./efi-updatevar ./cert-to-efi-hash-list PK.crt PK-hash-blacklist.esl ./cert-to-efi-hash-list KEK.crt KEK-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB.crt DB-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB1.crt DB1-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB2.crt DB2-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list ms-uefi.crt ms-uefi-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list ms-kek.crt ms-kek-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 TimeOfRevocation is 0-0-0 00:00:00 help2man --no-info -i doc/cert-to-efi-hash-list.1.in -o doc/cert-to-efi-hash-list.1 ./cert-to-efi-hash-list help2man --no-info -i doc/cert-to-efi-sig-list.1.in -o doc/cert-to-efi-sig-list.1 ./cert-to-efi-sig-list help2man --no-info -i doc/sign-efi-sig-list.1.in -o doc/sign-efi-sig-list.1 ./sign-efi-sig-list date: invalid date '1 second' ./sign-efi-sig-list -t "" -c PK.crt -k PK.key PK noPK.esl noPK.auth ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB1.crt DB1.esl Timestamp is 1900-1-0 00:00:00 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB2.crt DB2.esl ./cert-to-efi-sig-list -g 77FA9ABD-0359-4D32-BD60-28F4E78F784B ms-uefi.crt ms-uefi.esl ./cert-to-efi-sig-list -g 77FA9ABD-0359-4D32-BD60-28F4E78F784B ms-kek.crt ms-kek.esl Authentication Payload size 40 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB1.esl DB1-update.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB2.esl DB2-update.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db ms-uefi.esl ms-uefi-update.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db ms-kek.esl ms-kek-update.auth Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB1.esl DB1-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB2.esl DB2-pkupdate.auth Authentication Payload size 1640 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key db ms-uefi.esl ms-uefi-pkupdate.auth Authentication Payload size 1600 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key db ms-kek.esl ms-kek-pkupdate.auth rm -f /tmp/tmp.hash Authentication Payload size 853 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list PK.crt PK-blacklist.esl Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list KEK.crt KEK-blacklist.esl ./cert-to-efi-sig-list DB.crt DB-blacklist.esl Authentication Payload size 1640 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list DB1.crt DB1-blacklist.esl Authentication Payload size 1600 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list DB2.crt DB2-blacklist.esl ./cert-to-efi-sig-list ms-uefi.crt ms-uefi-blacklist.esl ./cert-to-efi-sig-list ms-kek.crt ms-kek-blacklist.esl ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx PK-hash-blacklist.esl PK-hash-blacklist.auth ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx KEK-hash-blacklist.esl KEK-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB-hash-blacklist.esl DB-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB1-hash-blacklist.esl DB1-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB2-hash-blacklist.esl DB2-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-uefi-hash-blacklist.esl ms-uefi-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-kek-hash-blacklist.esl ms-kek-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc PK.crt PK.esl Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc KEK.crt KEK.esl Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB.crt DB.esl Authentication Payload size 134 Signature of size 1151 Signature at: 40 gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c PreLoader.c -o PreLoader.o ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB1.esl DB1.auth Timestamp is 2022-10-25 11:22:54 ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB2.esl DB2.auth Timestamp is 2022-10-25 11:22:54 ./sign-efi-sig-list -c KEK.crt -k KEK.key db ms-uefi.esl ms-uefi.auth Timestamp is 2022-10-25 11:22:54 ./sign-efi-sig-list -c KEK.crt -k KEK.key db ms-kek.esl ms-kek.auth Authentication Payload size 853 Signature of size 1151 Signature at: 40 Timestamp is 2022-10-25 11:22:54 ./sign-efi-sig-list -a -c PK.crt -k PK.key PK PK.esl PK-update.auth Authentication Payload size 853 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key KEK KEK.esl KEK-update.auth Authentication Payload size 1640 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB.esl DB-update.auth Authentication Payload size 1600 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key PK PK.esl PK-pkupdate.auth Authentication Payload size 851 Signature of size 1148 Signature at: 40 Authentication Payload size 855 Signature of size 1148 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key KEK KEK.esl KEK-pkupdate.auth Authentication Payload size 851 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB.esl DB-pkupdate.auth ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx PK-blacklist.esl PK-blacklist.auth Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx KEK-blacklist.esl KEK-blacklist.auth Authentication Payload size 851 Signature of size 1148 Signature at: 40 Timestamp is 0-0-0 00:00:00 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB-blacklist.esl DB-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1148 Signature at: 40 PreLoader.c:19:18: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 19 | CHAR16 *loader = L"loader.efi"; | ^~~~~~~~~~~~~ PreLoader.c:20:20: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 20 | CHAR16 *hashtool = L"HashTool.efi"; | ^~~~~~~~~~~~~~~ PreLoader.c: In function 'efi_main': PreLoader.c:33:34: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 33 | status = RT->GetVariable(L"SecureBoot", | ^~~~~~~~~~~~~ | | | int * PreLoader.c:33:34: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB1-blacklist.esl DB1-blacklist.auth PreLoader.c:36:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 36 | Print(L"Not a Secure Boot Platform %d\n", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from PreLoader.c:9: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, PreLoader.c:41:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 41 | Print(L"Secure Boot Disabled\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, Timestamp is 0-0-0 00:00:00 PreLoader.c:49:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 49 | console_error(L"Failed to install override security policy", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from PreLoader.c:11: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ PreLoader.c:70:29: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 70 | StrCpy(buf, L"Failed to start "); | ^~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src PreLoader.c:78:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 78 | L"Failed to start loader", | ^~~~~~~~~~~~~~~~~~~~~~~~~ PreLoader.c:78:25: note: (near initialization for '(anonymous)[0]') PreLoader.c:79:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 79 | L"", | ^~~ PreLoader.c:79:25: note: (near initialization for '(anonymous)[1]') PreLoader.c:80:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 80 | L"It should be called loader.efi (in the current directory)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PreLoader.c:80:25: note: (near initialization for '(anonymous)[2]') Authentication Payload size 851 Signature of size 1148 Signature at: 40 PreLoader.c:81:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 81 | L"Please enrol its hash and try again", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PreLoader.c:81:25: note: (near initialization for '(anonymous)[3]') PreLoader.c:82:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 82 | L"", | ^~~ PreLoader.c:82:25: note: (near initialization for '(anonymous)[4]') PreLoader.c:83:25: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 83 | L"I will now execute HashTool for you to do this", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PreLoader.c:83:25: note: (near initialization for '(anonymous)[5]') PreLoader.c:94:37: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 94 | StrCpy(buf, L"Failed to start backup programme "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src PreLoader.c:106:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 106 | L"loader is still giving a security error", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PreLoader.c:106:33: note: (near initialization for '(anonymous)[0]') PreLoader.c:109:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 109 | L"Start HashTool", | ^~~~~~~~~~~~~~~~~ PreLoader.c:109:33: note: (near initialization for '(anonymous)[0]') PreLoader.c:110:33: warning: initialization of 'CHAR16 *' {aka 'short unsigned int *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 110 | L"Exit", | ^~~~~~~ PreLoader.c:110:33: note: (near initialization for '(anonymous)[1]') PreLoader.c:122:31: warning: passing argument 1 of 'console_error' from incompatible pointer type [-Wincompatible-pointer-types] 122 | console_error(L"Failed to uninstall security policy. Platform needs rebooting", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/console.h:16:23: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' 16 | console_error(CHAR16 *err, EFI_STATUS); | ~~~~~~~~^~~ ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB2-blacklist.esl DB2-blacklist.auth PreLoader.c:131:29: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 131 | StrCpy(buf, L"Failed to start "); | ^~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:337:25: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 337 | IN CONST CHAR16 *Src Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-uefi-blacklist.esl ms-uefi-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-kek-blacklist.esl ms-kek-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -c PK.crt -k PK.key PK PK.esl PK.auth Authentication Payload size 855 Signature of size 1151 Signature at: 40 Timestamp is 2022-10-25 11:22:54 ./sign-efi-sig-list -c PK.crt -k PK.key KEK KEK.esl KEK.auth Authentication Payload size 1642 Signature of size 1151 Signature at: 40 Timestamp is 2022-10-25 11:22:54 Authentication Payload size 1602 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB.esl DB.auth Timestamp is 2022-10-25 11:22:54 Authentication Payload size 851 Signature of size 1148 Signature at: 40 ./xxdi.pl PK.auth > PK.h Authentication Payload size 855 Signature of size 1148 Signature at: 40 ./xxdi.pl KEK.auth > KEK.h Authentication Payload size 851 Signature of size 1151 Signature at: 40 ./xxdi.pl DB.auth > DB.h ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds PreLoader.o lib/lib-efi.a -o PreLoader.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D PreLoader.so | grep ' U ' && exit 1 || exit 0 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 PreLoader.so PreLoader.efi sbsign --key DB.key --cert DB.crt --output PreLoader-signed.efi PreLoader.efi warning: data remaining[83456 vs 95949]: gaps between PE/COFF sections? warning: data remaining[83456 vs 95952]: gaps between PE/COFF sections? gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fomit-frame-pointer -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c LockDown.c -o LockDown.o Signing Unsigned original image LockDown.c: In function 'efi_main': LockDown.c:25:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 25 | efi_status = RT->GetVariable(L"SetupMode", &GV_GUID, NULL, &DataSize, &SetupMode); | ^~~~~~~~~~~~ | | | int * LockDown.c:25:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:28:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 28 | Print(L"No SetupMode variable ... is platform secure boot enabled?\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from LockDown.c:7: /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:33:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 33 | Print(L"Platform is not in Setup Mode, cannot install Keys\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:37:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 37 | Print(L"Platform is in Setup Mode\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:39:38: warning: passing argument 1 of 'RT->SetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 39 | efi_status = RT->SetVariable(L"KEK", &GV_GUID, | ^~~~~~ | | | int * LockDown.c:39:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:46:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 46 | Print(L"Failed to enroll KEK: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:49:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 49 | Print(L"Created KEK Cert\n"); | ^~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:50:38: warning: passing argument 1 of 'RT->SetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 50 | efi_status = RT->SetVariable(L"db", &SIG_DB, | ^~~~~ | | | int * LockDown.c:50:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:57:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 57 | Print(L"Failed to enroll db: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:60:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 60 | Print(L"Created db Cert\n"); | ^~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:71:38: warning: passing argument 1 of 'RT->SetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 71 | efi_status = RT->SetVariable(L"PK", &GV_GUID, | ^~~~~ | | | int * LockDown.c:71:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:80:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 80 | Print(L"Failed to enroll PK: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:83:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 83 | Print(L"Created PK Cert\n"); | ^~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:85:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 85 | efi_status = RT->GetVariable(L"SetupMode", &GV_GUID, NULL, &DataSize, &SetupMode); | ^~~~~~~~~~~~ | | | int * LockDown.c:85:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:87:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 87 | Print(L"Failed to get SetupMode variable: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:90:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 90 | Print(L"Platform is in %s Mode\n", SetupMode ? L"Setup" : L"User"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:94:38: warning: passing argument 1 of 'RT->GetVariable' from incompatible pointer type [-Wincompatible-pointer-types] 94 | efi_status = RT->GetVariable(L"SecureBoot", &GV_GUID, NULL, &DataSize, &SecureBoot); | ^~~~~~~~~~~~~ | | | int * LockDown.c:94:38: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'int *' LockDown.c:97:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 97 | Print(L"Failed to get SecureBoot variable: %d\n", efi_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, LockDown.c:100:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 100 | Print(L"Platform %s set to boot securely\n", SecureBoot ? L"is" : L"is not"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * /usr/include/efi/efilib.h:528:24: note: expected 'const CHAR16 *' {aka 'const short unsigned int *'} but argument is of type 'int *' 528 | IN CONST CHAR16 *fmt, ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds LockDown.o lib/lib-efi.a -o LockDown.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/libgcc.a # check we have no undefined symbols nm -D LockDown.so | grep ' U ' && exit 1 || exit 0 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 LockDown.so LockDown.efi sbsign --key DB.key --cert DB.crt --output LockDown-signed.efi LockDown.efi warning: data remaining[41472 vs 51412]: gaps between PE/COFF sections? warning: data remaining[41472 vs 51416]: gaps between PE/COFF sections? Signing Unsigned original image rm KEK-blacklist.esl SetNull.so KeyTool.o ms-kek.esl DB1.crt DB1.esl PK-hash-blacklist.esl ShimReplace.o ReadVars.o DB2-blacklist.esl ms-kek-blacklist.esl SetNull.o ms-uefi-hash-blacklist.esl HelloWorld.o ms-uefi-blacklist.esl UpdateVars.o KEK-hash-blacklist.esl DB-blacklist.esl HashTool.o DB1-hash-blacklist.esl ms-uefi.esl DB2.esl Loader.o DB2.crt ms-kek-hash-blacklist.esl PK-blacklist.esl DB2-hash-blacklist.esl DB-hash-blacklist.esl DB1-blacklist.esl >>> WARNING: efitools: APKBUILD does not run any tests! Alpine policy will soon require that packages have any relevant testsuites run during the build process. To fix, either define a check() function, or declare !check in $options to indicate the package does not have a testsuite. >>> efitools: Entering fakeroot... make -C lib lib-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make -C lib lib.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make -C lib/asn1 libasn1-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' make[1]: 'lib-efi.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make[1]: 'libasn1-efi.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' make[1]: 'lib.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/man/man1 install -m 644 doc/cert-to-efi-hash-list.1 doc/cert-to-efi-sig-list.1 doc/efi-readvar.1 doc/efi-updatevar.1 doc/hash-to-efi-sig-list.1 doc/sig-list-to-certs.1 doc/sign-efi-sig-list.1 /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/man/man1 install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools/efi install -m 755 HelloWorld.efi LockDown.efi Loader.efi ReadVars.efi UpdateVars.efi KeyTool.efi HashTool.efi SetNull.efi ShimReplace.efi PreLoader.efi /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools/efi install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin install -m 755 cert-to-efi-sig-list sig-list-to-certs sign-efi-sig-list hash-to-efi-sig-list efi-readvar efi-updatevar cert-to-efi-hash-list flash-var /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin install -m 755 mkusb.sh /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin/efitool-mkusb install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools install -m 644 README COPYING /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools >>> efitools-doc*: Running split function doc... >>> efitools-doc*: Preparing subpackage efitools-doc... >>> efitools-doc*: Running postcheck for efitools-doc >>> efitools*: Running postcheck for efitools >>> efitools*: Preparing package efitools... >>> efitools*: Stripping binaries >>> efitools-doc*: Scanning shared objects >>> efitools*: Scanning shared objects >>> efitools-doc*: Tracing dependencies... >>> efitools-doc*: Package size: 48.0 KB >>> efitools-doc*: Compressing data... >>> efitools-doc*: Create checksum... >>> efitools-doc*: Create efitools-doc-1.9.2-r5.apk >>> efitools*: Tracing dependencies... so:libc.musl-x86_64.so.1 so:libcrypto.so.3 >>> efitools*: Package size: 1.1 MB >>> efitools*: Compressing data... >>> efitools*: Create checksum... >>> efitools*: Create efitools-1.9.2-r5.apk >>> efitools: Build complete at Tue, 25 Oct 2022 11:22:55 +0000 elapsed time 0h 0m 5s >>> efitools: Cleaning up srcdir >>> efitools: Cleaning up pkgdir >>> efitools: Uninstalling dependencies... (1/13) Purging .makedepends-efitools (20221025.112251) (2/13) Purging gnu-efi-dev (3.0.15-r0) (3/13) Purging gnu-efi (3.0.15-r0) (4/13) Purging openssl-dev (3.0.5-r3) (5/13) Purging perl-file-slurp (9999.32-r1) (6/13) Purging help2man (1.49.2-r0) (7/13) Purging sbsigntool (0.9.4-r4) (8/13) Purging git-perl (2.38.1-r0) (9/13) Purging perl-git (2.38.1-r0) (10/13) Purging perl-error (0.17029-r1) (11/13) Purging perl (5.36.0-r0) (12/13) Purging libbz2 (1.0.8-r3) (13/13) Purging libuuid (2.38.1-r0) Executing busybox-1.35.0-r27.trigger OK: 266 MiB in 92 packages >>> efitools: Updating the main/x86_64 repository index... >>> efitools: Signing the index...