package/ipmiutil: fix uclibc build without wchar
PATCH 1/1 package/ipmiutil: fix uclibc build without wchar
For an unknown reason, wchar_t is incorrectly detected with uclibc resulting in the following build failure:
In file included from igetevent.c:136:
imb_api.h:150:5: error: unknown type name 'wchar_t'
150 | wchar_t *Buffer;
| ^~~~~~~The build failure can be reproduced even when reverting bump to version 3.1.8.
Fixes:
- http://autobuild.buildroot.org/results/e9ff3bd08e106dc834968bf5e4296ce8299027f8
--- package/ipmiutil/ipmiutil.mk | 1 + 1 file changed, 1 insertion(+)
package/ipmiutil/ipmiutil.mk +1 -0
@@ -10,6 +10,7 @@ IPMIUTIL_LICENSE = BSD-3-Clause IPMIUTIL_LICENSE_FILES = COPYING IPMIUTIL_MAKE = $(MAKE1) +IPMIUTIL_CONF_ENV = ac_cv_type_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) ifeq ($(BR2_PACKAGE_OPENSSL),y) # tests against distro libcrypto so it might get a false positive when
Signature · 6 lines
2.39.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · On Sun, 19 Feb 2023 17:14:53 +0100 Fabrice Fontaine…
For an unknown reason,
wchar_tis incorrectly detected with uclibc resulting in the following build failure:In file included from igetevent.c:136:
imb_api.h:150:5: error: unknown type name 'wchar_t'150 | wchar_t *Buffer; | ^~~~~~~The build failure can be reproduced even when reverting bump to version 3.1.8.
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/e9ff3bd08e106dc834968bf5e4296ce8299027f8Signed-off-by Fabrice Fontaine <[email protected]>--- package/ipmiutil/ipmiutil.mk | 1 + 1 file changed, 1 insertion(+)
I think the problem is that uClibc-ng defines the wchar_t type even if wchar support is disabled. I believe if the AC_CHECK_TYPES() check in ipmiutil ensured that <wchar.h> was included, the detection would work correctly, as wchar.h contains a #error when wchar support is disabled.
Anyway, in the mean time, what you proposed looks fine to me, so:
applied!
Thanks,
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
For an unknown reason,
wchar_tis incorrectly detected with uclibc resulting in the following build failure:In file included from igetevent.c:136:
imb_api.h:150:5: error: unknown type name 'wchar_t'150 | wchar_t *Buffer; | ^~~~~~~
Quoted 7 lines
The build failure can be reproduced even when reverting bump to version 3.1.8.
Fixes:
- http://autobuild.buildroot.org/results/e9ff3bd08e106dc834968bf5e4296ce8299027f8Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2022.11.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot