Build failure on r13359 - implicit declaration of function 'qof_instance_mark_dirty'

Andrew Duggan cmkrnl at speakeasy.net
Wed Feb 22 08:41:10 EST 2006


Hi,

Ben Stanley wrote:
> Hi,
> 
> When I try to build svn version r13359 on Ubuntu 5.10, I get the
> following error:
> 
> cc1: warnings being treated as errors
> gnc-lot.c: In function 'gnc_lot_set_title':
> gnc-lot.c:174: warning: implicit declaration of function
> 'qof_instance_mark_dirty'
> make[5]: *** [gnc-lot.lo] Error 1
> make[5]: Leaving directory
> `/mnt/extra2/share/install/linux/gnucash/gnucash/src/engine'
> 
> This causes the compile to bomb out.
> 
> I got the error after doing the following in my local svn directory
> make distclean
> svn update
> ./autogen.sh
> ./configure.sh --prefix=/packages/gnucash  \
> 	--enable-error-on-warning --enable-compile-warnings
> make
> 
> I have even tried removing the gnc-lot.* files and trying again. It
> appears that the repository has a bug?
> 
> Ben.
> 

Should those qof_instance_mark_dirty be qof_instance_set_dirty  in 
src/engine/gnc-lot.c ? ala

--- gnc-orig/src/engine/gnc-lot.c     2006-02-22 08:36:32.000000000 -0500
+++ gnc/src/engine/gnc-lot.c  2006-02-22 08:37:28.000000000 -0500
@@ -171,7 +171,7 @@ void
  gnc_lot_set_title (GNCLot *lot, const char *str)
  {
     if (!lot) return;
-   qof_instance_mark_dirty(QOF_INSTANCE(lot));
+   qof_instance_set_dirty(QOF_INSTANCE(lot));
     return kvp_frame_set_str (lot->inst.kvp_data, "/title", str);
  }

@@ -179,7 +179,7 @@ void
  gnc_lot_set_notes (GNCLot *lot, const char *str)
  {
     if (!lot) return;
-   qof_instance_mark_dirty(QOF_INSTANCE(lot));
+   qof_instance_set_dirty(QOF_INSTANCE(lot));
     return kvp_frame_set_str (lot->inst.kvp_data, "/notes", str);
  }

@@ -235,7 +235,7 @@ gnc_lot_add_split (GNCLot *lot, Split *s
          gnc_num_dbg_to_string (split->amount),
          gnc_num_dbg_to_string (split->value));
     acc = xaccSplitGetAccount (split);
-   qof_instance_mark_dirty(QOF_INSTANCE(lot));
+   qof_instance_set_dirty(QOF_INSTANCE(lot));
     if (NULL == lot->account)
     {
        xaccAccountInsertLot (acc, lot);
@@ -270,7 +270,7 @@ gnc_lot_remove_split (GNCLot *lot, Split
     if (!lot || !split) return;

     ENTER ("(lot=%p, split=%p)", lot, split);
-   qof_instance_mark_dirty(QOF_INSTANCE(lot));
+   qof_instance_set_dirty(QOF_INSTANCE(lot));
     lot->splits = g_list_remove (lot->splits, split);
     split->lot = NULL;
     lot->is_closed = -1;   /* force an is-closed computation */

> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 
> 


More information about the gnucash-devel mailing list