package/zeek: add various fixes for gcc >= 15.x
PATCH 1/1 package/zeek: add various fixes for gcc >= 15.x
Fixes:
https://autobuild.buildroot.net/results/022/0227cdc337fe7cbb19d9b88b2c3d890c6a3ee347/
Please note that patch 0006 fixes a follow-up error masked by the configure error found by the autobuilders.
Building zeek with gcc 14.x works unpatched with this defconfig:
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_GLIBC_STABLE=y BR2_PACKAGE_ZEEK=y
The cause of the build errors was the bump of gcc to 15.x, this defconfig fails without these new patches:
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_PACKAGE_ZEEK=y
---
@Fabrice: Building with BR2_PACKAGE_ZEEK_ZEEKCTL=y is still broken. Our zeek release 4.1.1 dates back to 2021 with > 8000 patches applied to upstream since then, current version is 8.1.1. Backporting python- related patches to fix the build of zeekctl looks really difficult due to many changes in the 3rd-party libraries/submodules used by zeek.
Do you have any interest in further maintaining zeek or should we consider to remove the package because it regularly causes build errors due to its huge codebase?
...fedora-rawhide-due-to-FindBIND.cmake.patch | 28 ++++++++++ ...dint-to-header-files-and-source-file.patch | 55 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch create mode 100644 package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch
package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch new file +28 -0
@@ -0,0 +1,28 @@ +From dd6b23769d624b88abb452d657e2aede4af6a211 Mon Sep 17 00:00:00 2001 +From: Johanna Amann <[email protected]> +Date: Sun, 19 Apr 2026 09:02:20 +0200 +Subject: [PATCH] Fix build with fedora rawhide due to FindBIND.cmake + +Upstream: https://github.com/zeek/zeek/issues/4329 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + cmake/FindBIND.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/FindBIND.cmake b/cmake/FindBIND.cmake +index a5e3204..da18242 100644 +--- a/cmake/FindBIND.cmake ++++ b/cmake/FindBIND.cmake +@@ -66,7 +66,7 @@ foreach (bindlib ${bind_libs}) + #include <arpa/nameser.h> + #include <resolv.h> + int main() { +- int (*p)() = res_mkquery; ++ int (*p)() = (int (*)())res_mkquery; + return 0; + } + " res_mkquery_works_${bindlib}) +-- +2.47.3 +
package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch new file +55 -0
55 lines not on this page · raw message
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Bernd, All,
Le 19/04/2026 à 11:01, Bernd Kuhls a écrit :
Quoted 29 lines
Fixes:
https://autobuild.buildroot.net/results/022/0227cdc337fe7cbb19d9b88b2c3d890c6a3ee347/Please note that patch 0006 fixes a follow-up error masked by the configure error found by the autobuilders.
Building zeek with gcc 14.x works unpatched with this defconfig:
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_GLIBC_STABLE=y BR2_PACKAGE_ZEEK=yThe cause of the build errors was the bump of gcc to 15.x, this defconfig fails without these new patches:
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_PACKAGE_ZEEK=ySigned-off-by Bernd Kuhls <[email protected]>---
@Fabrice: Building with BR2_PACKAGE_ZEEK_ZEEKCTL=y is still broken. Our zeek release 4.1.1 dates back to 2021 with > 8000 patches applied to upstream since then, current version is 8.1.1. Backporting python- related patches to fix the build of zeekctl looks really difficult due to many changes in the 3rd-party libraries/submodules used by zeek.
Quoted 3 lines
Do you have any interest in further maintaining zeek or should we consider to remove the package because it regularly causes build errors due to its huge codebase?
The last contribution from Fabrice was back in 2024. Maybe we should consider removing this package indeed.
Quoted 13 lines
...fedora-rawhide-due-to-FindBIND.cmake.patch | 28 ++++++++++ ...dint-to-header-files-and-source-file.patch | 55 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch create mode 100644 package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patchpackage/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch new file +0
-0
package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch line 6
Quoted 6 lines
package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch new file +6
-0@@ -0,0 +1,28 @@ +From dd6b23769d624b88abb452d657e2aede4af6a211 Mon Sep 17 00:00:00 2001 +From: Johanna Amann <[email protected]> +Date: Sun, 19 Apr 2026 09:02:20 +0200 +Subject: [PATCH] Fix build with fedora rawhide due to FindBIND.cmake + +Upstream: https://github.com/zeek/zeek/issues/4329
Upstream droped find_package(BIND REQUIRED):
https://github.com/zeek/zeek/commit/5624359f309a89c87bbfd4ad4cdfa7b9a65ca1c2
We should avoid using the suggested hack from the issue reporter.
Best regards,
Romain
Quoted 73 lines
package/zeek/0005-Fix-build-with-fedora-rawhide-due-to-FindBIND.cmake.patch new file +22
-0+ +Signed-off-by: Bernd Kuhls <[email protected]> +--- + cmake/FindBIND.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/FindBIND.cmake b/cmake/FindBIND.cmake +index a5e3204..da18242 100644 +--- a/cmake/FindBIND.cmake ++++ b/cmake/FindBIND.cmake +@@ -66,7 +66,7 @@ foreach (bindlib ${bind_libs}) + #include <arpa/nameser.h> + #include <resolv.h> + int main() { +- int (*p)() = res_mkquery; ++ int (*p)() = (int (*)())res_mkquery; + return 0; + } + " res_mkquery_works_${bindlib}) +-- +2.47.3 +package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch new file +45
-0@@ -0,0 +1,55 @@ +From 4c7f302f0526713adae4aad7b3153be53039aca3 Mon Sep 17 00:00:00 2001 +From: i2z1 <[email protected]> +Date: Tue, 6 May 2025 22:09:27 +0300 +Subject: [PATCH] Add `#include <cstdint>` to header files and source file + +Upstream: https://github.com/zeek/paraglob/commit/4c7f302f0526713adae4aad7b3153be53039aca3 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + auxil/paraglob/include/paraglob/paraglob.h | 2 ++ + auxil/paraglob/include/paraglob/serializer.h | 1 + + src/paraglob.cpp | 2 ++ + 3 files changed, 5 insertions(+) + +diff --git a/auxil/paraglob/include/paraglob/paraglob.h b/auxil/paraglob/include/paraglob/paraglob.h +index d29488c..f02b4f6 100644 +--- a/auxil/paraglob/include/paraglob/paraglob.h ++++ b/auxil/paraglob/include/paraglob/paraglob.h +@@ -13,6 +13,8 @@ + #include <vector> + #include <memory> // std::unique_ptr + ++#include <cstdint> ++ + class AhoCorasickPlus; + + namespace paraglob { +diff --git a/auxil/paraglob/include/paraglob/serializer.h b/auxil/paraglob/include/paraglob/serializer.h +index 38a3646..fe9be1a 100644 +--- a/auxil/paraglob/include/paraglob/serializer.h ++++ b/auxil/paraglob/include/paraglob/serializer.h +@@ -6,6 +6,7 @@ + + #include <vector> + #include <memory> // std::unique_ptr ++#include <cstdint> + + #include "paraglob/paraglob.h" + #include "paraglob/exceptions.h" +diff --git a/auxil/paraglob/src/paraglob.cpp b/auxil/paraglob/src/paraglob.cpp +index 3dd490f..feb87c6 100644 +--- a/auxil/paraglob/src/paraglob.cpp ++++ b/auxil/paraglob/src/paraglob.cpp +@@ -4,6 +4,8 @@ +
package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch line 55
Quoted 10 lines
package/zeek/0006-Add-include-cstdint-to-header-files-and-source-file.patch new file +10
-0+ #include "ahocorasick/AhoCorasickPlus.h" + ++#include <cstdint> ++ + paraglob::Paraglob::Paraglob() + : my_ac(new AhoCorasickPlus) {} + +-- +2.47.3 +
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 4 lines · Bernd Kuhls
Our zeek release 4.1.1 dates back to 2021 with > 8000 patches applied to upstream since then, current version is 8.1.1. Backporting python- related patches to fix the build of zeekctl looks really difficult due to many changes in the 3rd-party libraries/submodules used by zeek.
We discussed this during the ongoing hackathon, and we agreed that removing zeek was the best course of action, so I just pushed to master a commit doing this.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot