Skip to contentSkip to conversation

buildroot-2011.08, crosstool-ng-1.12.1, and Samba

Buildroot Scott Dudley 2 participants 4 messages Sep 1, 2011 – Sep 5, 2011

lore
Share & tools
lore
#0 lore raw

I've been using buildroot + crosstool-ng targeted for i486 and glibc successfully for some time.

I was asked today to include Samba in my target build. Simple enough. Compiled without issue however both nmbd and smbd segfault on execution. If I run them interactively via the -i flag, I see much of the following:

init_iconv: Conversion from UTF-16LE to CP850 not supported
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII
init_iconv: Conversion from UTF-8 to CP850 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
init_iconv: Conversion from ANSI_X3.4-1968 to CP850 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
init_iconv: Conversion from CP850 to UTF-16LE not supported
init_iconv: Attempting to replace with conversion from ASCII to UTF-16LE
init_iconv: Conversion from CP850 to UTF-8 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
...

I see no option in buildroot to build libiconv.

Any guidance/assistance is very much appreciated.

#1 lore raw

Hello Scott,

Thanks for your report!

Le Thu, 01 Sep 2011 16:02:56 -0700,
Scott Dudley <[email protected]> a ?crit :

Quoted 20 lines

I've been using buildroot + crosstool-ng targeted for i486 and glibc successfully for some time.

I was asked today to include Samba in my target build. Simple enough. Compiled without issue however both nmbd and smbd segfault on execution. If I run them interactively via the -i flag, I see much of the following:

init_iconv: Conversion from UTF-16LE to CP850 not supported
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII init_iconv: Conversion from UTF-8 to CP850 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
init_iconv: Conversion from ANSI_X3.4-1968 to CP850 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
init_iconv: Conversion from CP850 to UTF-16LE not supported
init_iconv: Attempting to replace with conversion from ASCII to UTF-16LE init_iconv: Conversion from CP850 to UTF-8 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
...

Quoted 1 line

I see no option in buildroot to build libiconv.

I guess your system lacks the gconv libraries. For example, in the CodeSourcery toolchains, there are :

thomas at skate:~/x-tools/arm-2011.03$ find . | grep gconv [...] ./arm-none-linux-gnueabi/libc/usr/include/gconv.h ./arm-none-linux-gnueabi/libc/usr/lib/gconv ./arm-none-linux-gnueabi/libc/usr/lib/gconv/IBM939.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/CP1257.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/ISO8859-13.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/GBK.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/EBCDIC-DK-NO.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/ISO8859-6.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/CP1258.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/MAC-UK.so ./arm-none-linux-gnueabi/libc/usr/lib/gconv/LATIN-GREEK-1.so [...]

And Buildroot does not copy those files to the target automatically. Maybe we need to extend the toolchain mechanism a bit to provide an option to copy those files. Copying them all unconditionally is unfortunately not really an option: the complete gconv directory contains ~9 MB of libraries.

Which toolchain are you using ?

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 7 lines · Thomas Petazzoni

Hello Scott,

Thanks for your report!

[...]

Quoted 7 lines

And Buildroot does not copy those files to the target automatically. Maybe we need to extend the toolchain mechanism a bit to provide an option to copy those files. Copying them all unconditionally is unfortunately not really an option: the complete gconv directory contains ~9 MB of libraries.

Which toolchain are you using ?

crosstool-ng v1.12.1

Quoted 3 lines

Regards,

Thomas

Signature · 18 lines
Scott Dudley
Senior Developer

Telesoft Corp. | 1661 E. Camelback Rd., Suite 300 | Phoenix, AZ, 85016

*o:* (602) 308-1115**| *f:* (602) 308-1300 | *w:* www.telesoft.com 
<http://www.telesoft.com>

*TEM Edge Blog <http://www.telesoft.com/blog> *|*Twitter 
<http://www.twitter.com/_Telesoft> *|*Facebook

<http://www.facebook.com/pages/Telesoft-Corp/76397971661>Join us at 
Telesoft Connections 2011. Learn more now! 
<http://www.telesoftconference.com>*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110902/4258d04c/attachment.html>
#3 lore raw

Le Fri, 02 Sep 2011 08:30:08 -0700,
Scott Dudley <[email protected]> a ?crit :

Quoted 1 line

crosstool-ng v1.12.1

Ok. So the problem is the one I highlighted. Can you try to copy $(O)/staging/usr/lib/gconv to $(O)/target/usr/lib/gconv and see if Samba works better ?

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com