GnuCash trunk r20559 mingw build failed
Derek Atkins
warlord at MIT.EDU
Tue Apr 12 08:56:48 EDT 2011
Geert Janssens <janssens-geert at telenet.be> writes:
> On maandag 11 april 2011, Nitish Kumar wrote:
>> I am sorry for posting in non standrard ways, I am learning things about
>> mailing list.
>>
>> Here are the last few lines:
>>
>> cc1.exe: warnings being treated as errors
>> ../../../../repos/src/libqof/qof/guid.c: In function 'init_from_file':
>> ../../../../repos/src/libqof/qof/guid.c:243:5: error: unknown conversion
>> type ch
>> aracter 'l' in format
>> ../../../../repos/src/libqof/qof/guid.c:243:5: error: format '%s' expects
>> type '
>> char *', but argument 5 has type 'long long unsigned int'
>> ../../../../repos/src/libqof/qof/guid.c:243:5: error: too many arguments
>> for for
>> mat
>> ../../../../repos/src/libqof/qof/guid.c: In function 'guid_init':
>> ../../../../repos/src/libqof/qof/guid.c:510:5: error: unknown conversion
>> type ch
>> aracter 'l' in format
>> ../../../../repos/src/libqof/qof/guid.c:510:5: error: too many arguments
>> for for
>> mat
>> ../../../../repos/src/libqof/qof/guid.c:513:9: error: unknown conversion
>> type ch
>> aracter 'l' in format
>> ../../../../repos/src/libqof/qof/guid.c:513:9: error: too many arguments
>> for for
>> mat
>
> This is a bit weird: gcc fails because it doesn't seem to know the %llu format
> specifier. This particular problem was fixed by Phil more than a year ago [1].
> You can check in the code that the lines causing an error are inside
> preprocessor conditionals #ifdef HAVE_SCANF_LLD to explicitly check if this
> specifier is supported. So it seems this check doesn't work properly in your
> case.
Is there any reason we're not using G_UINT64_FORMAT here?
> What version of Windows are you using, and is it 32 bit or 64 bit ?
>
> Geert
>
> [1] Fixed in this changeset: http://svn.gnucash.org/trac/changeset/18858
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list