diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2025-05-07 10:49:38 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-05-07 06:35:14 -0700 |
| commit | 292e40fe97909bcfc961cdfb8dddd92b105063b5 (patch) | |
| tree | 1d413c96477b6a140ad1bef3e7ad624207ea25b5 /meta-oe | |
| parent | ab37d6ffba4043ccb16d910199dcd06522fb42c4 (diff) | |
| download | meta-openembedded-292e40fe97909bcfc961cdfb8dddd92b105063b5.tar.gz | |
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 <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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" | |||
| 44 | 44 | ||
| 45 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--allow-shlib-undefined ', '', d)}" | 45 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--allow-shlib-undefined ', '', d)}" |
| 46 | 46 | ||
| 47 | CFLAGS += "-std=gnu17" | ||
| 48 | |||
| 47 | EXTRA_OECONF = '--enable-debug \ | 49 | EXTRA_OECONF = '--enable-debug \ |
| 48 | --enable-ssl \ | 50 | --enable-ssl \ |
| 49 | --enable-pam \ | 51 | --enable-pam \ |
