Skip to contentSkip to conversation

pgpool2: use gnu17 to avoid build failure with gcc-15

PATCH In review [email protected] 2 participants 3 messages Apr 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pgpool2: use gnu17 to avoid build failure with gcc-15

From: Martin Jansa <[email protected]>

* like e.g. gentoo does:
https://bugs.gentoo.org/940128

---
 meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb +4 -0
index ddcad46beb..a2f7665df1 100644
@@ -48,3 +48,7 @@ do_install:append() {
     install -D -m 0644 ${S}/src/sample/pool_hba.conf.sample ${D}${sysconfdir}/pgpool-II/pool_hba.conf
     install -Dm 0644 ${UNPACKDIR}/pgpool.service ${D}${systemd_system_unitdir}/pgpool.service
 }
+
+# Avoid build failure with gcc-15:
+# http://errors.yoctoproject.org/Errors/Details/853019/
+CFLAGS += "-std=gnu17"
#2 lore raw

Feel free to do that, I don't even use pgpool2 I was just helping with last few remaining build failures with gcc-15 shown in world build and this is the amount of time I'm willing to spend on pgpool2.

Quoted 9 lines · Jason Schonberg

Martin,

While I understand the desire to follow what gentoo is doing, would protecting the typdef in question be a better solution?

i.e. something like this : https://github.com/mirror/xmlrpc-c/pull/4/files

Thanks,
Jason Schonberg