* [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba
@ 2011-09-01 23:02 Scott Dudley
2011-09-02 7:07 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Scott Dudley @ 2011-09-01 23:02 UTC (permalink / raw)
To: buildroot
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba
2011-09-01 23:02 [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba Scott Dudley
@ 2011-09-02 7:07 ` Thomas Petazzoni
2011-09-02 15:30 ` Scott Dudley
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2011-09-02 7:07 UTC (permalink / raw)
To: buildroot
Hello Scott,
Thanks for your report!
Le Thu, 01 Sep 2011 16:02:56 -0700,
Scott Dudley <scott@telesoft.com> a ?crit :
> 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.
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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba
2011-09-02 7:07 ` Thomas Petazzoni
@ 2011-09-02 15:30 ` Scott Dudley
2011-09-05 6:54 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Scott Dudley @ 2011-09-02 15:30 UTC (permalink / raw)
To: buildroot
On 09/02/2011 12:07 AM, Thomas Petazzoni wrote:
>
> Hello Scott,
>
> Thanks for your report!
>
> [...]
>
> 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
> Regards,
>
> Thomas
--
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba
2011-09-02 15:30 ` Scott Dudley
@ 2011-09-05 6:54 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-09-05 6:54 UTC (permalink / raw)
To: buildroot
Le Fri, 02 Sep 2011 08:30:08 -0700,
Scott Dudley <scott@telesoft.com> a ?crit :
> 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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-05 6:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-01 23:02 [Buildroot] buildroot-2011.08, crosstool-ng-1.12.1, and Samba Scott Dudley
2011-09-02 7:07 ` Thomas Petazzoni
2011-09-02 15:30 ` Scott Dudley
2011-09-05 6:54 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox