Subject: Re: ./build.sh tools: error in 'file'
To: <>
From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
List: port-pc532
Date: 03/30/2004 22:59:54
Antti Kantee wrote:
> On Tue Mar 30 2004 at 13:14:59 +1000, Eyal Lebedinsky wrote:
>
>>Building on 1.5.3 (last proper release?) from a reasonably recent
>>-current, I encountered a problem in
>> usr/src/dist/file/src/file.c
>>in file_mbswidth().
>>
>>It assumes that HAVE_WCHAR_H means we have mbstate_t and mbrtowc().
>>/usr/include/wchar.h does not have these, however later
>>versions do have it (as usr/src/include/wchar.h does too).
>
> Yes, it assumes that too much is provided if wchar.h is present.
>
>>Is this a problem with './build.sh tools' incorrectly using the
>>native headers, or should 'file' be more careful?
>
> 'file' should be more careful.
[trimmed]
> I put some bandaid on src/dist/file/src/file.c rev 1.7. See if that
> helps for the time being.
Thanks, I see it. In the meantime I changed
#ifdef HAVE_WCHAR_H
to
#ifdef HAVE_WCHAR_H_NOT_ON_PC532
and restarted the build.
BTW, './build.sh tools' seems to redo everything, rather than
continue from where it failed. Is there a nicer way to continue?
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>