Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD40ACAC5B5 for ; Thu, 25 Sep 2025 20:17:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A3F2361550; Thu, 25 Sep 2025 20:17:32 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id qHwJkBLiDyPY; Thu, 25 Sep 2025 20:17:29 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 930F061616 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 930F061616; Thu, 25 Sep 2025 20:17:29 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id 107FB177 for ; Thu, 25 Sep 2025 20:17:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0270C4129D for ; Thu, 25 Sep 2025 20:17:19 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id tUicge7IBRf9 for ; Thu, 25 Sep 2025 20:17:18 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::433; helo=mail-wr1-x433.google.com; envelope-from=thomas.perale@essensium.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org B69B540066 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B69B540066 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp2.osuosl.org (Postfix) with ESMTPS id B69B540066 for ; Thu, 25 Sep 2025 20:17:17 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3ecdf2b1751so1001458f8f.0 for ; Thu, 25 Sep 2025 13:17:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758831436; x=1759436236; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c+8QNGKTFeMBsqE7Fi8LhlSaJlVG7UDGlQ14B+Yl3gY=; b=MS/9EOUWn56nF8fcLZL3G+GXxxkKLI/MLYLF9gwXyHys9lXiX4zeMg9NY8zQ72RKlq Q/4UZV7ZrzhPs72iC4KfX4fvsGb2hF9/bmPKE7iGPZLD2MbXtG00xJHiiZxL4SpiRzjl 0HMQv1caQbUMV2+AeWecriU3RaPoix/VYN67hneHcw4UKBNVsprrGeveOnWZYS5z14hb rhZJsFV7CXKfUr3fEyEo/IHWXtrGWOsDw8F4HZFhQtueuKiiAPhxYYTBF93Bma8AzfOb dinjUE1Vascm/8qnK68/yUEI8r/DG9/gmISbzXUGGDHSadrDH3VTzDG7sFsMaMWfKkLq z6sg== X-Forwarded-Encrypted: i=1; AJvYcCUffIjuD3Z3Ov5mOhoxZvSmn7cKyow/GRfPk0pbNXrPAoVMZvIdLmJ1QzUxmrJ5QPm+kihzUsxjuF8=@buildroot.org X-Gm-Message-State: AOJu0YzScxCAXZwKmxskLdMwk7bYZBefbGPCamA240vz+vUhSwcTdN/q RmMpP9rhs/oaxIB8lI74osPccjxejh15yADepf1QT3VJYLtQrkfok+mAjWqDyH5b5ls= X-Gm-Gg: ASbGncstCg+6ntT37lQb1dmpp5++9BgDtih9jU7QpeX2C9lmFMSq5/BGdidgIIGl0pS 4VKk2NlvwupugRDSJc73WgqsVh/0/I/Dc6+wuUP3n9mLOPSBgCBshLMcuAOYb3vPdFxsSrPLPL0 LZSIVaNZtBhOI+lWEZ/LOfo12UusbAma0nLrUPYhOTx8s/msT9vaNPRlFOi/7N/rjQ2hckzWCwt duyyQ9qS8yDayPIWIgQEAGQRuD5Izvnp5t/Z+XtutdozWXUSmsAGo/oIHwSuDvhUpsARlBVtCq/ 4kl9HuRyXaqtNFk+7vH/P2ubMOJOKPNoe/cKKfPiCXyAE/iEx7hhQ8IjNWDAA2Y0gDMSHWLNBgK eSXAuNXMntCHFGGY= X-Google-Smtp-Source: AGHT+IGK8+eP/UghHOap4sktjbbNmGGhtbnnugOs/8Nn3YnYEDE8jCsG3vvkuMhJJAxuuZk9FDq/yw== X-Received: by 2002:a05:6000:2005:b0:3ee:d165:2edd with SMTP id ffacd0b85a97d-40e4b666ffcmr5007267f8f.28.1758831435587; Thu, 25 Sep 2025 13:17:15 -0700 (PDT) Received: from arch ([79.132.233.79]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e33b9e8aesm45375755e9.4.2025.09.25.13.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Sep 2025 13:17:15 -0700 (PDT) To: Thomas Petazzoni Cc: Thomas Perale , buildroot@buildroot.org Date: Thu, 25 Sep 2025 22:17:14 +0200 Message-ID: <20250925201714.44671-1-thomas.perale@mind.be> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250907160424.3546872-1-thomas.petazzoni@bootlin.com> References: <20250907160424.3546872-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; t=1758831436; x=1759436236; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c+8QNGKTFeMBsqE7Fi8LhlSaJlVG7UDGlQ14B+Yl3gY=; b=DvuykKN4NykIo1KuwQg+gOr57d2UX9m8QZzfPGQ+3wWFKfLEd2gz8NAl9MYDEvv+09 HEaDegTykkjKwZD27yjCRJTiuWy/8SfQatjGvpT5YXUlAcKDEcv5Yqx0y2i87Ordzl8/ Gj5RWMs5qJuCtsa+lABQyIhhOPNL0PyQvWr2LALpJx4s9ey6nE8Am/2lyMfMZBbdzhLd 06gcygMzmdhjpJgoOaKsaFzrv+BthGtVoP0UTHdQdJr4TmKPcgiKUL4Sxx72VII4YVA2 XxbHYjhjSZ6CgDE1C8g//HEozJfBKfhPgt89iv81/we560Q/W82JyyDTUbEWgRGNhrRp vqfg== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=mind.be X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=mind.be header.i=@mind.be header.a=rsa-sha256 header.s=google header.b=DvuykKN4 Subject: Re: [Buildroot] [PATCH 1/2] package/c-icap: add patches to fix GCC 15.x build issues X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Perale via buildroot Reply-To: Thomas Perale Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In reply of: > Patches 0003 and 0004 are upstream backport. Patch 0005 isn't because > the code has completely changed upstream in newer releases. > > Fixes: > > https://autobuild.buildroot.net/results/e9b4d9033f0283b133b58049a03b5f0b595e30db/ > > Signed-off-by: Thomas Petazzoni Applied to 2025.08.x. Thanks > --- > ...thod-release_authentication_header-m.patch | 47 ++++ > ...ith-GCC15-signal-handlers-require-an.patch | 31 +++ > ...tion-prototypes-to-fix-GCC-15.x-buil.patch | 233 ++++++++++++++++++ > 3 files changed, 311 insertions(+) > create mode 100644 package/c-icap/0003-Fix-http_auth_method-release_authentication_header-m.patch > create mode 100644 package/c-icap/0004-Fix-to-compile-with-GCC15-signal-handlers-require-an.patch > create mode 100644 package/c-icap/0005-Fix-module-operation-prototypes-to-fix-GCC-15.x-buil.patch > > diff --git a/package/c-icap/0003-Fix-http_auth_method-release_authentication_header-m.patch b/package/c-icap/0003-Fix-http_auth_method-release_authentication_header-m.patch > new file mode 100644 > index 0000000000..940a67b70d > --- /dev/null > +++ b/package/c-icap/0003-Fix-http_auth_method-release_authentication_header-m.patch > @@ -0,0 +1,47 @@ > +From 9ca4e5e2bd5fdf1d15a862faf8d4d1ddc0664bd0 Mon Sep 17 00:00:00 2001 > +From: Christos Tsantilas > +Date: Fri, 21 Feb 2025 13:34:06 +0200 > +Subject: [PATCH] Fix http_auth_method::release_authentication_header method > + declaration > + > +Requires a "char *" argument. > + > +Reported with PR#72 at github: > + https://github.com/c-icap/c-icap-server/pull/72 > + > +Upstream: 48a221b0197727b26f90c00544fa19c67d0f5d47 > +Signed-off-by: Thomas Petazzoni > +--- > + http_auth.c | 2 +- > + include/module.h | 2 +- > + 2 files changed, 2 insertions(+), 2 deletions(-) > + > +diff --git a/http_auth.c b/http_auth.c > +index 1883b55..b831bb1 100644 > +--- a/http_auth.c > ++++ b/http_auth.c > +@@ -62,7 +62,7 @@ int http_authenticate(ci_request_t * req, char *use_method) > + authenticator_module_t **authenticators; > + void *method_data; > + const char *auth_str, *method_str, *username; > +- char *auth_header = NULL; > ++ const char *auth_header = NULL; > + int len, res; > + > + if (ALLOW_REMOTE_PROXY_USERS && !use_method) { > +diff --git a/include/module.h b/include/module.h > +index 286ef72..0e57586 100644 > +--- a/include/module.h > ++++ b/include/module.h > +@@ -96,7 +96,7 @@ typedef struct http_auth_method { > + void *(*create_auth_data)(const char *authorization_header,const char **username); > + void (*release_auth_data)(void *data); > + char *(*authentication_header)(); > +- void (*release_authentication_header)(); > ++ void (*release_authentication_header)(char *); > + struct ci_conf_entry *conf_table; > + } http_auth_method_t; > + > +-- > +2.51.0 > + > diff --git a/package/c-icap/0004-Fix-to-compile-with-GCC15-signal-handlers-require-an.patch b/package/c-icap/0004-Fix-to-compile-with-GCC15-signal-handlers-require-an.patch > new file mode 100644 > index 0000000000..97359ab4d6 > --- /dev/null > +++ b/package/c-icap/0004-Fix-to-compile-with-GCC15-signal-handlers-require-an.patch > @@ -0,0 +1,31 @@ > +From 8d21c9c18e3b03e28ef2831f3ecd287c4cc44694 Mon Sep 17 00:00:00 2001 > +From: Christos Tsantilas > +Date: Fri, 21 Feb 2025 13:41:37 +0200 > +Subject: [PATCH] Fix to compile with GCC15: signal handlers require an int > + argument > + > +Reported with PR#72 at github: > + https://github.com/c-icap/c-icap-server/pull/72 > + > +Upstream: 0b3408ad0e9f5ccadcd4d77dffa651f9211e4cd2 > +Signed-off-by: Thomas Petazzoni > +--- > + mpmt_server.c | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/mpmt_server.c b/mpmt_server.c > +index aab9db5..01bab65 100644 > +--- a/mpmt_server.c > ++++ b/mpmt_server.c > +@@ -140,7 +140,7 @@ static void sigchld_handler_main(int sig) > + /*Do nothing the signal will be ignored..... */ > + } > + > +-static void sighup_handler_main() > ++static void sighup_handler_main(int sig) > + { > + c_icap_reconfigure = 1; > + } > +-- > +2.51.0 > + > diff --git a/package/c-icap/0005-Fix-module-operation-prototypes-to-fix-GCC-15.x-buil.patch b/package/c-icap/0005-Fix-module-operation-prototypes-to-fix-GCC-15.x-buil.patch > new file mode 100644 > index 0000000000..d161a49ba6 > --- /dev/null > +++ b/package/c-icap/0005-Fix-module-operation-prototypes-to-fix-GCC-15.x-buil.patch > @@ -0,0 +1,233 @@ > +From 608392c023b00e9e512f012eab295995127c577a Mon Sep 17 00:00:00 2001 > +From: Thomas Petazzoni > +Date: Sun, 7 Sep 2025 17:45:00 +0200 > +Subject: [PATCH] Fix module operation prototypes to fix GCC 15.x build > + > +Upstream: N/A, code has completely changed upstream > +Signed-off-by: Thomas Petazzoni > +--- > + default_acl.c | 4 ++-- > + http_auth.c | 8 ++++---- > + include/module.h | 8 ++++---- > + modules/bdb_tables.c | 4 ++-- > + modules/dnsbl_tables.c | 4 ++-- > + modules/ldap_module.c | 4 ++-- > + modules/memcached.c | 4 ++-- > + modules/shared_cache.c | 4 ++-- > + 8 files changed, 20 insertions(+), 20 deletions(-) > + > +diff --git a/default_acl.c b/default_acl.c > +index 135176a..cb84d9d 100644 > +--- a/default_acl.c > ++++ b/default_acl.c > +@@ -34,7 +34,7 @@ > + /* Default Authenticator definitions */ > + int default_acl_init(struct ci_server_conf *server_conf); > + int default_acl_post_init(struct ci_server_conf *server_conf); > +-void default_acl_release(); > ++void default_acl_release(struct ci_server_conf *server_conf); > + int default_acl_client_match(ci_request_t *req); > + int default_acl_request_match(ci_request_t *req); > + > +@@ -75,7 +75,7 @@ int default_acl_post_init(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-void default_acl_release() > ++void default_acl_release(struct ci_server_conf *server_conf) > + { > + ci_access_entry_release(acl_access_list); > + ci_access_entry_release(acl_connection_access_list); > +diff --git a/http_auth.c b/http_auth.c > +index b831bb1..0000b12 100644 > +--- a/http_auth.c > ++++ b/http_auth.c > +@@ -378,7 +378,7 @@ static struct ci_conf_entry basic_conf_params[] = { > + }; > + > + int basic_post_init(struct ci_server_conf *server_conf); > +-void basic_close(); > ++void basic_close(struct ci_server_conf *); > + struct http_basic_auth_data *basic_create_auth_data(const char *auth_line, > + const char **username); > + void basic_release_auth_data(struct http_basic_auth_data *data); > +@@ -409,7 +409,7 @@ int basic_post_init(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-void basic_close() > ++void basic_close(struct ci_server_conf *) > + { > + if (basic_authentication) { > + free(basic_authentication); > +@@ -468,7 +468,7 @@ static struct ci_conf_entry basic_simple_db_conf_variables[] = { > + }; > + > + int basic_simple_db_post_init(struct ci_server_conf *server_conf); > +-void basic_simple_db_close(); > ++void basic_simple_db_close(struct ci_server_conf *server_conf); > + int basic_simple_db_athenticate(struct http_basic_auth_data *data, const char *usedb); > + > + > +@@ -495,7 +495,7 @@ int basic_simple_db_post_init(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-void basic_simple_db_close() > ++void basic_simple_db_close(struct ci_server_conf *server_conf) > + { > + if (users_db) { > + ci_lookup_table_destroy(users_db); > +diff --git a/include/module.h b/include/module.h > +index 0e57586..21124df 100644 > +--- a/include/module.h > ++++ b/include/module.h > +@@ -63,7 +63,7 @@ typedef struct common_module { > + const char *name; > + int (*init_module)(struct ci_server_conf *server_conf); > + int (*post_init_module)(struct ci_server_conf *server_conf); > +- void (*close_module)(); > ++ void (*close_module)(struct ci_server_conf *); > + struct ci_conf_entry *conf_table; > + } common_module_t; > + > +@@ -81,7 +81,7 @@ typedef struct access_control_module { > + const char *name; > + int (*init_access_controller)(struct ci_server_conf *server_conf); > + int (*post_init_access_controller)(struct ci_server_conf *server_conf); > +- void (*release_access_controller)(); > ++ void (*release_access_controller)(struct ci_server_conf *); > + int (*client_access)(ci_request_t *req); > + int (*request_access)(ci_request_t *req); > + struct ci_conf_entry *conf_table; > +@@ -92,7 +92,7 @@ typedef struct http_auth_method { > + const char *name; > + int (*init_auth_method)(struct ci_server_conf *server_conf); > + int (*post_init_auth_method)(struct ci_server_conf *server_conf); > +- void (*close_auth_method)(); > ++ void (*close_auth_method)(struct ci_server_conf *); > + void *(*create_auth_data)(const char *authorization_header,const char **username); > + void (*release_auth_data)(void *data); > + char *(*authentication_header)(); > +@@ -106,7 +106,7 @@ typedef struct authenticator_module { > + const char *method; > + int (*init_authenticator)(struct ci_server_conf *server_conf); > + int (*post_init_authenticator)(struct ci_server_conf *server_conf); > +- void (*close_authenticator)(); > ++ void (*close_authenticator)(struct ci_server_conf *); > + int (*authenticate)(void *data, const char *usedb); > + struct ci_conf_entry *conf_table; > + } authenticator_module_t; > +diff --git a/modules/bdb_tables.c b/modules/bdb_tables.c > +index 1e908a9..c205278 100644 > +--- a/modules/bdb_tables.c > ++++ b/modules/bdb_tables.c > +@@ -9,7 +9,7 @@ > + > + > + int init_bdb_tables(struct ci_server_conf *server_conf); > +-void release_bdb_tables(); > ++void release_bdb_tables(struct ci_server_conf *server_conf); > + > + CI_DECLARE_MOD_DATA common_module_t module = { > + "bdb_tables", > +@@ -41,7 +41,7 @@ int init_bdb_tables(struct ci_server_conf *server_conf) > + return (ci_lookup_table_type_register(&bdb_table_type) != NULL); > + } > + > +-void release_bdb_tables() > ++void release_bdb_tables(struct ci_server_conf *server_conf) > + { > + ci_lookup_table_type_unregister(&bdb_table_type); > + } > +diff --git a/modules/dnsbl_tables.c b/modules/dnsbl_tables.c > +index 328c6fb..a90c715 100644 > +--- a/modules/dnsbl_tables.c > ++++ b/modules/dnsbl_tables.c > +@@ -10,7 +10,7 @@ > + > + > + int init_dnsbl_tables(struct ci_server_conf *server_conf); > +-void release_dnsbl_tables(); > ++void release_dnsbl_tables(struct ci_server_conf *server_conf); > + > + CI_DECLARE_MOD_DATA common_module_t module = { > + "dnsbl_tables", > +@@ -42,7 +42,7 @@ int init_dnsbl_tables(struct ci_server_conf *server_conf) > + return (ci_lookup_table_type_register(&dnsbl_table_type) != NULL); > + } > + > +-void release_dnsbl_tables() > ++void release_dnsbl_tables(struct ci_server_conf *server_conf) > + { > + ci_lookup_table_type_unregister(&dnsbl_table_type); > + } > +diff --git a/modules/ldap_module.c b/modules/ldap_module.c > +index 97e36d8..96668a9 100644 > +--- a/modules/ldap_module.c > ++++ b/modules/ldap_module.c > +@@ -19,7 +19,7 @@ static int init_ldap_pools(); > + static void release_ldap_pools(); > + > + int init_ldap_module(struct ci_server_conf *server_conf); > +-void release_ldap_module(); > ++void release_ldap_module(struct ci_server_conf *server_conf); > + > + CI_DECLARE_MOD_DATA common_module_t module = { > + "ldap_module", > +@@ -76,7 +76,7 @@ int init_ldap_module(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-void release_ldap_module() > ++void release_ldap_module(struct ci_server_conf *server_conf) > + { > + release_ldap_pools(); > + ci_lookup_table_type_unregister(&ldap_table_type); > +diff --git a/modules/memcached.c b/modules/memcached.c > +index 8f15fbd..b1bbe5a 100644 > +--- a/modules/memcached.c > ++++ b/modules/memcached.c > +@@ -61,7 +61,7 @@ static struct ci_conf_entry mc_conf_variables[] = { > + > + static int mc_module_init(struct ci_server_conf *server_conf); > + static int mc_module_post_init(struct ci_server_conf *server_conf); > +-static void mc_module_release(); > ++static void mc_module_release(struct ci_server_conf *server_conf); > + CI_DECLARE_MOD_DATA common_module_t module = { > + "memcached", > + mc_module_init, > +@@ -209,7 +209,7 @@ int mc_module_post_init(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-void mc_module_release() > ++void mc_module_release(struct ci_server_conf *server_conf) > + { > + memcached_pool_destroy(MC_POOL); > + memcached_free(MC); > +diff --git a/modules/shared_cache.c b/modules/shared_cache.c > +index a79d51a..49a3784 100644 > +--- a/modules/shared_cache.c > ++++ b/modules/shared_cache.c > +@@ -9,7 +9,7 @@ > + #include > + > + static int init_shared_cache(struct ci_server_conf *server_conf); > +-static void release_shared_cache(); > ++static void release_shared_cache(struct ci_server_conf *server_conf); > + > + CI_DECLARE_MOD_DATA common_module_t module = { > + "shared_cache", > +@@ -26,7 +26,7 @@ static int init_shared_cache(struct ci_server_conf *server_conf) > + return 1; > + } > + > +-static void release_shared_cache() > ++static void release_shared_cache(struct ci_server_conf *server_conf) > + { > + } > + > +-- > +2.51.0 > + > -- > 2.51.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot