Skip to contentSkip to conversation

libgsasl: add mandatory dependency on wchar

PATCH New Fabrice Fontaine 2 participants 2 messages May 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgsasl: add mandatory dependency on wchar

libgsasl needs wctomb, if not available it will define it to rpl_wctomb. However, as there is no rpl_wctomb implementation, the .so ends up with an undefined reference to wctomb.

This will cause linker errors for packages trying to use it such as
msmtp:
/home/peko/autobuild/instance-0/output/host/bin/../microblazeel-buildroot-linux-uclibc/sysroot/usr//lib/libgsasl.so:
undefined reference to `wctomb'

Fixes:
- http://autobuild.buildroot.net/results/1bc7cb9a2dd1af746c78f3150528206b7256e40f

---
 package/libgsasl/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libgsasl/Config.in +4 -0
index 5181386272..228f882377 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBGSASL
 	bool "libgsasl"
+	depends on BR2_USE_WCHAR
 	help
 	  Simple Authentication and Security Layer framework Library.
 	  GNU SASL is an implementation of the Simple Authentication and
@@ -9,3 +10,6 @@ config BR2_PACKAGE_LIBGSASL
 	  against servers.
 
 	  http://www.gnu.org/software/gsasl
+
+comment "libgsasl needs a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 libgsasl: add mandatory dependency on wchar

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

libgsasl needs wctomb, if not available it will define it to rpl_wctomb. However, as there is no rpl_wctomb implementation, the .so ends up with an undefined reference to wctomb.

This will cause linker errors for packages trying to use it such as
msmtp:
/home/peko/autobuild/instance-0/output/host/bin/../microblazeel-buildroot-linux-uclibc/sysroot/usr//lib/libgsasl.so:
undefined reference to `wctomb'

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.net/results/1bc7cb9a2dd1af746c78f3150528206b7256e40f

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard