Skip to contentSkip to conversation

package/ipmiutil: fix uclibc build without wchar

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Feb 19, 2023

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=7b4937a1709a88f90abbeac48e2e2db33b83d44b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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
index ad9fbfc24c..b48eaa7cb2 100644
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot