[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mtools] Reading label from a large capacity memory card
From: |
Simon Large |
Subject: |
Re: [Mtools] Reading label from a large capacity memory card |
Date: |
Fri, 20 Feb 2009 12:12:39 -0000 |
Alain Knaff wrote:
> Simon Large wrote:
>> Alain Knaff wrote:
>>> Simon Large wrote:
>>>> address@hidden:~/target/mtools> make -s
>>>> llong.c:12:2: warning: #warning "The following warnings about
>>>> integer overflow in expression can be safely ignored"
>>> Just one thing: this message should no longer occur with current
>>> versions of mtools.
>>>
>>> So, could you doublecheck whether the other problem (big disk...)
>>> still occurs with current versions?
>>
>> First problem is that it won't build straight away.
>>
>> charsetConv.c line 31 has
>> #ifdef HAVE_ICONV_H
>> #include <iconv.h>
>>
>> But line 23 already included iconv.h unconditionally anyway, and I
>> don't have it.
>>
>> Comment out line 23 and it builds as expected.
>>
>> Then when I run it I get:
>> Mtools has not been correctly compiled Recompile it using a more
>> recent compiler
>>
>> I'm getting sizeof(struct vfat_subentry) coming out at 64 instead of
>> 32, so the structure packing is different somehow.
>>
>> In vfat.h I change the definition of struct unicode_char back to the
>> way it was in 3.9.11 struct unicode_char {
>> unsigned char lchar;
>> unsigned char uchar;
>> } PACKED;
>>
>> Now I can build and run the code again.
>>
>> And the final answer is ... Big disks not supported on this
>> architecture :-(
>>
>> Simon
>
> I've made a new version with your suggested changes (including the
> off64_t/LSEEK64 from an earlier mail), could you try whether that one
> now works better?
llong.h line 32 is:
# ifdef HAVE_LLSEEK || defined(HAVE_LSEEK64)
and should be:
# if defined(HAVE_LLSEEK) || defined(HAVE_LSEEK64)
After that change everything compiles without errors or warnings.
Unfortunately the end result is the same, "Big disks not supported..."
Simon
- Re: [Mtools] Reading label from a large capacity memory card, (continued)
- Re: [Mtools] Reading label from a large capacity memory card, Simon Large, 2009/02/17
- Re: [Mtools] Reading label from a large capacity memory card, Simon Large, 2009/02/17
- Re: [Mtools] Reading label from a large capacity memory card, Simon Large, 2009/02/17
- Re: [Mtools] Reading label from a large capacity memory card, Simon Large, 2009/02/17
- Re: [Mtools] Reading label from a large capacity memory card,
Simon Large <=
- Re: [Mtools] Reading label from a large capacity memory card, Simon Large, 2009/02/23