Skip to contentSkip to conversation

libmhash: fix build with gcc 15

PATCH In review Yi Zhao 2 participants 3 messages Sep 26, 2025 – Sep 27, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 libmhash: fix build with gcc 15

GCC 15 switched to C23 by default, which libmhash does not yet support. So keep using C17.

---
 recipes-security/libmhash/libmhash_0.9.9.9.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/libmhash/libmhash_0.9.9.9.bb +2 -0
index f5518d2..805cf05 100644
@@ -25,6 +25,8 @@ SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab24
 
 inherit autotools-brokensep ptest multilib_header
 
+CFLAGS += "-std=gnu17"
+
 do_install:append() {
     oe_multilib_header mutils/mhash_config.h
 }
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Yi Zhao

GCC 15 switched to C23 by default, which libmhash does not yet support. So keep using C17.

Nothing in meta-security actually uses libmhash at the moment, so I'm curious if you have a usecase for using it standalone? It used to be pulled in by the aide recipe via PACKAGECONFIG, but Armin disabled that last year with a note that newer releases will drop using it. So my plan is to take this patch, but unless you can confirm you need the libmhash
recipe for something, we will drop it when aide is updated, which I
intend to do soon.

Thanks,

Scott

Quoted 19 lines
---
 recipes-security/libmhash/libmhash_0.9.9.9.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/libmhash/libmhash_0.9.9.9.bb +2 -0
index f5518d2..805cf05 100644
@@ -25,6 +25,8 @@ SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab24
 
 inherit autotools-brokensep ptest multilib_header
 
+CFLAGS += "-std=gnu17"
+
 do_install:append() {
     oe_multilib_header mutils/mhash_config.h
 }
author
#2 lore raw
Quoted 11 lines · Scott Murray
Quoted 2 lines · Yi Zhao

GCC 15 switched to C23 by default, which libmhash does not yet support. So keep using C17.

Nothing in meta-security actually uses libmhash at the moment, so I'm curious if you have a usecase for using it standalone? It used to be pulled in by the aide recipe via PACKAGECONFIG, but Armin disabled that last year with a note that newer releases will drop using it. So my plan is to take this patch, but unless you can confirm you need the libmhash
recipe for something, we will drop it when aide is updated, which I
intend to do soon.

Looking through our project, we don't use it either. So I'm fine with that, you can drop it.

Thanks,

Yi

Quoted 25 lines

Thanks,

Scott

Quoted 19 lines
---
  recipes-security/libmhash/libmhash_0.9.9.9.bb | 2 ++
  1 file changed, 2 insertions(+)
recipes-security/libmhash/libmhash_0.9.9.9.bb +2 -0
index f5518d2..805cf05 100644
@@ -25,6 +25,8 @@ SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab24
 
  inherit autotools-brokensep ptest multilib_header
 
+CFLAGS += "-std=gnu17"
+
  do_install:append() {
      oe_multilib_header mutils/mhash_config.h
  }