Build error: Re: r22628 - gnucash/trunk/src - Convert all time_t to time64: optional & plugins

John Ralls jralls at ceridwen.us
Sun Dec 2 19:35:46 EST 2012


On Dec 2, 2012, at 2:28 PM, Alex Aycinena <alex.aycinena at gmail.com> wrote:

> On Sat, Dec 1, 2012 at 6:05 PM, John Ralls <jralls at ceridwen.us> wrote:
>> 
>> On Dec 1, 2012, at 4:14 PM, Alex Aycinena <alex.aycinena at gmail.com> wrote:
>> 
>>> John,
>>> 
>>> On Sat, Dec 1, 2012 at 2:46 PM, John Ralls <jralls at code.gnucash.org> wrote:
>>>> Author: jralls
>>>> Date: 2012-12-01 17:46:08 -0500 (Sat, 01 Dec 2012)
>>>> New Revision: 22628
>>>> Trac: http://svn.gnucash.org/trac/changeset/22628
>>>> 
>>>> Modified:
>>>> gnucash/trunk/src/optional/gtkmm/gncmm/Transaction.hpp
>>>> gnucash/trunk/src/plugins/bi_import/dialog-bi-import.c
>>>> Log:
>>>> Convert all time_t to time64: optional & plugins
>>>> 
>>>> _______________________________________________
>>>> gnucash-patches mailing list
>>>> gnucash-patches at gnucash.org
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-patches
>>> 
>>> Just updated to r22628 and got the following on trying to build:
>>> 
>>> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome-utils/gnc-date-edit.c:
>>> In function 'gnc_date_edit_get_gdate':
>>> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome-utils/gnc-date-edit.c:1046:5:
>>> error: implicit declaration of function 'gnc_gdate_set_time64'
>>> [-Werror=implicit-function-declaration]
>>> cc1: all warnings being treated as errors
>>> make[4]: *** [gnc-date-edit.lo] Error 1
>>> make[4]: Leaving directory
>>> `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/gnome-utils'
>> 
>> Thanks, Alex. Fixed in r22629.
>> 
>> Regards,
>> John Ralls
>> 
> 
> John,
> 
> Yes that one was fixed but now I get:
> 
> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome/assistant-acct-period.c:
> In function 'ap_assistant_menu_prepare':
> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome/assistant-acct-period.c:309:5:
> error: format '%lld' expects argument of type 'long long int', but
> argument 5 has type 'time64' [-Werror=format]
> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome/assistant-acct-period.c:
> In function 'ap_assistant_create':
> /home/gnucash-dev/svncheckouts/gnucash-clean/src/gnome/assistant-acct-period.c:574:5:
> error: format '%lld' expects argument of type 'long long int', but
> argument 5 has type 'time64' [-Werror=format]
> cc1: all warnings being treated as errors
> make[4]: *** [assistant-acct-period.lo] Error 1


Alex,

That's interesting. Is this a 64-bit build, and does your compiler expect a long-long to be 128-bit?

Regards,
John Ralls


More information about the gnucash-devel mailing list