msdos_conv_utf8.c:(.text+0x3c0): undefined reference to `iconv'

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 12 07:24:45 UTC 2013


Hello,

the UTF-8 support is only available for the latest Git master.  On RTEMS 4.10 
it is not available.

In Newlib you have to enable the specific language support, e.g.

iconv_encodings=big5,cp775,cp850,cp852,cp855,\
cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,\
iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,\
iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,\
iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,\
ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,\
utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,\
win_1253,win_1254,win_1255,win_1256,win_1257,win_1258

"$source_dir/configure" \
[...]
	--enable-newlib-iconv \
	--enable-newlib-iconv-encodings=$iconv_encodings \

On 2013-08-12 03:33, ruizx wrote:
> Hi all,
> I want RTEMS dos file system  support Chinese language,
> the git resposity code now is supporting UTF-8, I apply the newest patchs.
> But when I compling the application,
> the error"msdos_conv_utf8.c:(.text+0x3c0): undefined reference to `iconv'" appeared.
> The commit message write "Iconv support must be activated during the build of the tool chain for these conversion methods".
> Is that means I should rebuild my cross compiler?
>
> My cross comipler configuration is the above:
>
> [ruizx at localhost hello]$ powerpc-rtems4.10-gcc -v
> Configured with: ../gcc-4.4.7/configure --prefix=/opt/rtems-4.10 --bindir=/opt/rtems-4.10/bin --exec_prefix=/opt/rtems-4.10 --includedir=/opt/rtems-4.10/include --libdir=/opt/rtems-4.10/lib --libexecdir=/opt/rtems-4.10/libexec --mandir=/opt/rtems-4.10/share/man --infodir=/opt/rtems-4.10/share/info --datadir=/opt/rtems-4.10/share --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-rtems4.10 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --disable-lto --disable-plugin --enable-newlib-io-c99-formats --enable-languages=c,c++
>
> Thanks & Best regards,
> Rui Zhengxin
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list