[Buildroot] [git commit branch/2025.08.x] package/woff2: fix build with newer gcc
Thomas Perale
thomas.perale at mind.be
Thu Dec 11 09:56:08 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=c6cec9f84a5c552d092004131047a26f6e281f0e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.08.x
Fixes a build error not yet seen by the autobuilders due to other
packages failing before. Seen with defconfig:
https://autobuild.buildroot.net/results/ebf/ebf9a81f7e225ecdab20bbad8ad8daa136fddb46/
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 32490ae99f9cfd2ded0b150071b28908419c7244)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
...ff2-output.h-add-missing-stdint.h-include.patch | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/package/woff2/0002-include-woff2-output.h-add-missing-stdint.h-include.patch b/package/woff2/0002-include-woff2-output.h-add-missing-stdint.h-include.patch
new file mode 100644
index 0000000000..a79b414a4c
--- /dev/null
+++ b/package/woff2/0002-include-woff2-output.h-add-missing-stdint.h-include.patch
@@ -0,0 +1,41 @@
+From 08ece7871775c0d7bf4fdff64b961cdc256adf6c Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich at gmail.com>
+Date: Fri, 2 Aug 2024 22:12:03 +0100
+Subject: [PATCH] include/woff2/output.h: add missing <stdint.h> include
+
+Without the change `woff2` build fails on upcoming `gcc-15` as:
+
+ In file included from src/woff2_out.cc:9:
+ include/woff2/output.h:73:25: error: expected ')' before '*' token
+ 73 | WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
+ | ~ ^
+ | )
+ include/woff2/output.h:79:3: error: 'uint8_t' does not name a type
+ 79 | uint8_t* buf_;
+ | ^~~~~~~
+ include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>';
+ this is probably fixable by adding '#include <cstdint>'
+ 15 | #include <string>
+ +++ |+#include <cstdint>
+ 16 |
+
+Upstream: https://github.com/google/woff2/pull/176
+
+Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
+---
+ include/woff2/output.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/include/woff2/output.h b/include/woff2/output.h
+index dc78ccf..b12d538 100644
+--- a/include/woff2/output.h
++++ b/include/woff2/output.h
+@@ -9,6 +9,8 @@
+ #ifndef WOFF2_WOFF2_OUT_H_
+ #define WOFF2_WOFF2_OUT_H_
+
++#include <stdint.h>
++
+ #include <algorithm>
+ #include <cstring>
+ #include <memory>
More information about the buildroot
mailing list