From 292e40fe97909bcfc961cdfb8dddd92b105063b5 Mon Sep 17 00:00:00 2001 From: Yoann Congal Date: Wed, 7 May 2025 10:49:38 +0200 Subject: [PATCH] sblim-sfcb: use -std=gnu17 for compilation sblim-sfcb does not build under -std=gnu23 which is the default of gcc15. Forcing -std=gnu17 fixes these build errors: |../sblim-sfcb-1.4.9/providerMgr.c: In function 'lookupProviders': |../sblim-sfcb-1.4.9/providerMgr.c:374:11: error: too many arguments to function 'UtilFactory->newList'; expected 0, have 2 | 374 | lst = UtilFactory->newList(NULL, NULL); | | ^~~~~~~~~~~ ~~~~ |In file included from ../sblim-sfcb-1.4.9/providerRegister.h:31, | from ../sblim-sfcb-1.4.9/providerMgr.c:29: |.../tmp/work/core2-64-poky-linux/sblim-sfcb/1.4.9/recipe-sysroot/usr/include/sfcCommon/utilft.h:202:23: note: declared here | 202 | UtilList *(*newList) (); | | ^~~~~~~ |../sblim-sfcb-1.4.9/providerMgr.c: In function 'getAssocProviders': |../sblim-sfcb-1.4.9/providerMgr.c:661:11: error: too many arguments to function 'UtilFactory->newList'; expected 0, have 2 | 661 | lst = UtilFactory->newList(NULL, NULL); | | ^~~~~~~~~~~ ~~~~ | [...] |../sblim-sfcb-1.4.9/providerMgr.c: In function '_getConstClassChildren': |../sblim-sfcb-1.4.9/providerMgr.c:1896:12: error: too many arguments to function 'UtilFactory->newList'; expected 0, have 2 | 1896 | ul = UtilFactory->newList(NULL, NULL); | | ^~~~~~~~~~~ ~~~~ | [...] |../sblim-sfcb-1.4.9/providerMgr.c: In function '_getAssocClassNames': |../sblim-sfcb-1.4.9/providerMgr.c:1945:12: error: too many arguments to function 'UtilFactory->newList'; expected 0, have 2 | 1945 | ul = UtilFactory->newList(NULL, NULL); | | ^~~~~~~~~~~ ~~~~ | [...] |make[2]: Leaving directory '.../tmp/work/core2-64-poky-linux/sblim-sfcb/1.4.9/build' |make[2]: *** [Makefile:1853: libsfcBrokerCore_la-providerMgr.lo] Error 1 |make[1]: Leaving directory '.../tmp/work/core2-64-poky-linux/sblim-sfcb/1.4.9/build' |make[1]: *** [Makefile:2060: all-recursive] Error 1 |make: *** [Makefile:1112: all] Error 2 |ERROR: oe_runmake failed Signed-off-by: Yoann Congal Signed-off-by: Khem Raj --- meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb index 622c5ce07c..591321b7e9 100644 --- a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb @@ -44,6 +44,8 @@ SYSTEMD_AUTO_ENABLE = "enable" LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--allow-shlib-undefined ', '', d)}" +CFLAGS += "-std=gnu17" + EXTRA_OECONF = '--enable-debug \ --enable-ssl \ --enable-pam \