fix building with locales

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Oct 8 16:35:19 UTC 2008


On Wed, Oct 08, 2008 at 05:58:49PM +0200, Carmelo AMOROSO wrote:
> Bernhard Reutner-Fischer wrote:
>> Hi,
>>
>> Currently locales are broken when you have:
>>
>> $ grep LOCALE .config
>> UCLIBC_HAS_LOCALE=y
>> UCLIBC_PREGENERATED_LOCALE_DATA=y (or =n)
>> UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y (or =n)
>> UCLIBC_HAS_XLOCALE=y (doesn't matter)
>>
>> A couple of headers are not found, most notably uClibc_ctype.h, and
>> extra/locale/* falls apart in various funny ways.
>>
>> In an attempt to cure this, i'm proposing something like the
>> attached patchlet (which is untested).
>>
>> So i'm asking anybody who uses locale to try the attached patch and to
>> let me know if it builds fine now (with -j1; I'm pretty sure that -j
>> will not work yet, we can fix that later).
>>
>> TIA,
>> Bernhard
>>
> Hi Bernhard,
> I'll try the path (not immediately anyway, too busy in other stuff),
> but I don't have problem in compiling with locale (except for -j2).
>
> I have some changes in my branch in Makefile regarding headers target,

mhm. a distclean && cp sample .config && make -j; works now after r23625
(with locale off), fyi.

> that at this point are doing the difference. I'll check them too.
>
> Carmelo



More information about the uClibc mailing list