GnuCash trunk r20559 mingw build failed
Geert Janssens
janssens-geert at telenet.be
Tue Apr 12 03:50:09 EDT 2011
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
> make[5]: *** [guid.lo] Error 1
> make[5]: Leaving directory `/c/soft/gnucash/build/src/libqof/qof'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/c/soft/gnucash/build/src/libqof/qof'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/c/soft/gnucash/build/src/libqof'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/soft/gnucash/build/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/soft/gnucash/build'
> make: *** [all] Error 2
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
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.
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
More information about the gnucash-devel
mailing list