[Buildroot] [PATCH 2/2] package/c-icap-modules: fix build with GCC 15.x

Thomas Perale thomas.perale at mind.be
Thu Sep 25 20:17:15 UTC 2025


In reply of:
> Add a patch fixing prototype issues with GCC 15.x. The patch cannot be
> submitted upstream because the problematic code has completely changed
> in newer releases.
> 
> No autobuilder failures because they were hidden by 'c-icap' not
> building with GCC 15.x.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

Applied to 2025.08.x. Thanks

> ---
>  ...ule-function-prototypes-for-GCC-15.x.patch | 59 +++++++++++++++++++
>  1 file changed, 59 insertions(+)
>  create mode 100644 package/c-icap-modules/0001-Fix-module-function-prototypes-for-GCC-15.x.patch
> 
> diff --git a/package/c-icap-modules/0001-Fix-module-function-prototypes-for-GCC-15.x.patch b/package/c-icap-modules/0001-Fix-module-function-prototypes-for-GCC-15.x.patch
> new file mode 100644
> index 0000000000..c0886d3c0e
> --- /dev/null
> +++ b/package/c-icap-modules/0001-Fix-module-function-prototypes-for-GCC-15.x.patch
> @@ -0,0 +1,59 @@
> +From 5cc2e2764588fc5025e1ba7e07361d50659bb06a Mon Sep 17 00:00:00 2001
> +From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> +Date: Sun, 7 Sep 2025 17:58:00 +0200
> +Subject: [PATCH] Fix module function prototypes for GCC 15.x
> +
> +Upstream: N/A, upstream has completely changed how modules work
> +Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> +---
> + services/virus_scan/clamav_mod.c | 4 ++--
> + services/virus_scan/clamd_mod.c  | 4 ++--
> + 2 files changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/services/virus_scan/clamav_mod.c b/services/virus_scan/clamav_mod.c
> +index a138006..ee26ce6 100644
> +--- a/services/virus_scan/clamav_mod.c
> ++++ b/services/virus_scan/clamav_mod.c
> +@@ -75,7 +75,7 @@ static struct ci_conf_entry clamav_conf_variables[] = {
> + 
> + int clamav_init(struct ci_server_conf *server_conf);
> + int clamav_post_init(struct ci_server_conf *server_conf);
> +-void clamav_release();
> ++void clamav_release(struct ci_server_conf *server_conf);
> + 
> + CI_DECLARE_MOD_DATA common_module_t module = {
> +     "clamav_mod",
> +@@ -273,7 +273,7 @@ int clamav_post_init(struct ci_server_conf *server_conf)
> +      return CI_OK;
> + }
> + 
> +-void clamav_release()
> ++void clamav_release(struct ci_server_conf *server_conf)
> + {
> +     clamav_destroy_virusdb();
> +     if (CLAMAV_TMP)
> +diff --git a/services/virus_scan/clamd_mod.c b/services/virus_scan/clamd_mod.c
> +index c0d2909..c522a9c 100644
> +--- a/services/virus_scan/clamd_mod.c
> ++++ b/services/virus_scan/clamd_mod.c
> +@@ -34,7 +34,7 @@ static struct ci_conf_entry clamd_conf_variables[] = {
> + 
> + int clamd_init(struct ci_server_conf *server_conf);
> + int clamd_post_init(struct ci_server_conf *server_conf);
> +-void clamd_release();
> ++void clamd_release(struct ci_server_conf *server_conf);
> + 
> + CI_DECLARE_MOD_DATA common_module_t module = {
> +     "clamd_mod",
> +@@ -301,7 +301,7 @@ int clamd_post_init(struct ci_server_conf *server_conf)
> +     return CI_OK;
> + }
> + 
> +-void clamd_release()
> ++void clamd_release(struct ci_server_conf *server_conf)
> + {
> + }
> + 
> +-- 
> +2.51.0
> +
> -- 
> 2.51.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot


More information about the buildroot mailing list