Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wint_t in cross building, gnulib failing build.

0 views
Skip to first unread message

Lluís Batlle

unread,
Nov 23, 2009, 1:35:15 PM11/23/09
to bug-gnu...@gnu.org
Hello,

I'm trying to cross-build gettext, and with my toolchain (gcc 4.3.4
and glibc-2.9 for armv5tel-linux) I have problems, while I don't have
any problem building it not natively.

I found that the gettext-runtime configure has a check like this:
if test "$cross_compiling" = yes; then
gl_cv_func_wcwidth_works="guessing no"

In native builds (where I use the same compiler and glibc version) I
have gl_cv_func_wcwidth_works=yes, and having this defined as 'no'
results in gettext-runtime/gnulib-lib/ use its own 'wchar.h' created
from 'wchar.h.in', and this wchar.h ends up not having wint_t defined
as required in glibc's wchar.h, included through mbchar.h in
gnulib-lib.

I'm going to go on using a cache-file, and setting
gl_cv_func_wcwidth_works=yes there, but I would like to know why this
mbchar build fails for me having no wint_t type defined. Why
cross-compiling the wcwidth function would not work?

Regards,
Lluís.


0 new messages