sedutil
sedutil copied to clipboard
Compilation issue with gcc-13
Trying to build on an up-to-date system fails with:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -static -Wall -std=c++11 -I./Common -I./Common/pbkdf2 -I./linux -I
./LinuxPBA -march=core2 -O2 -pipe -c -o LinuxPBA/UnlockSEDs.o LinuxPBA/UnlockSEDs.cpp
In file included from ./Common/log.h:45,
from LinuxPBA/LinuxPBA.cpp:25:
./Common/DtaOptions.h:33:5: error: ‘uint8_t’ does not name a type
33 | uint8_t password; /**< password supplied */
| ^~~~~~~
./Common/DtaOptions.h:1:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>
’?
+++ |+#include <cstdint>
1 | /* C:B**************************************************************************
./Common/DtaOptions.h:34:9: error: ‘uint8_t’ does not name a type
34 | uint8_t userid; /**< userid supplied */
| ^~~~~~~
./Common/DtaOptions.h:34:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint
>’?
./Common/DtaOptions.h:35:9: error: ‘uint8_t’ does not name a type
I am pretty sure this is a gcc-13 issue. Upstream has a patch that fixes this: https://github.com/Drive-Trust-Alliance/sedutil/commit/3ddb9865e49f81bef3a99417e4814ed59efaff5d
I'll submit a PR for that patch in particular.