error in gnc-plugin-budget.c when compiling G2 from trunk

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

error in gnc-plugin-budget.c when compiling G2 from trunk

Tim Wunder (Lists)
Trying to compile trunk tonight and I get this error:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core-utils
-I../../src/calculation -I../../src/engine -I../../src/network-utils
-I../../src/app-utils -I../../src/backend/file -I../../src/g-wrap
-I../../src/gnome-utils -I../../src/gnome-search
-I../../src/register/ledger-core -I../../src/register/register-core
-I../../src/register/register-gnome -I../../src/report/report-system
-I../../src/report/report-gnome -I../../lib/glib26 -std=gnu99 -DORBIT2=1
-pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config
-I/usr/include/libxml2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/gtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.6
-I/usr/include/gtk-2.0 -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2
-I/usr/include/libglade-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libglade-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/freetype2/config
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../lib/libqof/qof
-O3 -pipe -march=athlon-tbird -fexpensive-optimizations -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Werror
-Wdeclaration-after-statement -Wno-pointer-sign -MT gnc-plugin-budget.lo -MD
-MP -MF .deps/gnc-plugin-budget.Tpo -c gnc-plugin-budget.c  -fPIC -DPIC
-o .libs/gnc-plugin-budget.o
gnc-plugin-budget.c: In function 'gnc_plugin_budget_cmd_open_budget':
gnc-plugin-budget.c:181: error: syntax error before '<<' token
gnc-plugin-budget.c:190: error: 'col' undeclared (first use in this function)
gnc-plugin-budget.c:190: error: (Each undeclared identifier is reported only
once
gnc-plugin-budget.c:190: error: for each function it appears in.)
gnc-plugin-budget.c:194: error: 'bgt' undeclared (first use in this function)
make[5]: *** [gnc-plugin-budget.lo] Error 1
make[5]: Leaving directory `/data/SVN/gnucash/src/gnome'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/data/SVN/gnucash/src/gnome'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/data/SVN/gnucash/src/gnome'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/SVN/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/SVN/gnucash'
make: *** [all] Error 2

$ svn info
Path: .
URL: http://svn.gnucash.org/repo/gnucash/trunk
Repository UUID: 57a11ea4-9604-0410-9ed3-97b8803252fd
Revision: 12000
Node Kind: directory
Schedule: normal
Last Changed Author: hampton
Last Changed Rev: 12000
Last Changed Date: 2005-11-20 20:58:41 -0500 (Sun, 20 Nov 2005)
Properties Last Updated: 2005-11-02 11:08:54 -0500 (Wed, 02 Nov 2005)

Using FC4.
$ gcc --version
gcc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5)

Regards,
Tim

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error in gnc-plugin-budget.c when compiling G2 from trunk

David Hampton-2
On Sun, 2005-11-20 at 22:52 -0500, Tim Wunder wrote:
> Trying to compile trunk tonight and I get this error:
> ...
> gnc-plugin-budget.c: In function 'gnc_plugin_budget_cmd_open_budget':
> gnc-plugin-budget.c:181: error: syntax error before '<<' token
> gnc-plugin-budget.c:190: error: 'col' undeclared (first use in this function)
> gnc-plugin-budget.c:190: error: (Each undeclared identifier is reported only
> once
> gnc-plugin-budget.c:190: error: for each function it appears in.)
> gnc-plugin-budget.c:194: error: 'bgt' undeclared (first use in this function)

You have a conflict or some other problem.  There is no '<<' in my copy
of the file.  Note that the svn conflict markers starts with '<<<<<<'
which is likely what you're seeing.  Have you changed this file at all
locally?

David


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: error in gnc-plugin-budget.c when compiling G2 from trunk

Tim Wunder (Lists)
On Sunday 20 November 2005 11:36 pm, someone claiming to be David Hampton
wrote:

> On Sun, 2005-11-20 at 22:52 -0500, Tim Wunder wrote:
> > Trying to compile trunk tonight and I get this error:
> > ...
> > gnc-plugin-budget.c: In function 'gnc_plugin_budget_cmd_open_budget':
> > gnc-plugin-budget.c:181: error: syntax error before '<<' token
> > gnc-plugin-budget.c:190: error: 'col' undeclared (first use in this
> > function) gnc-plugin-budget.c:190: error: (Each undeclared identifier is
> > reported only once
> > gnc-plugin-budget.c:190: error: for each function it appears in.)
> > gnc-plugin-budget.c:194: error: 'bgt' undeclared (first use in this
> > function)
>
> You have a conflict or some other problem.  There is no '<<' in my copy
> of the file.  Note that the svn conflict markers starts with '<<<<<<'
> which is likely what you're seeing.  Have you changed this file at all
> locally?
>
Yep. I had changed it in order to get opening budgets to work properly. I rm'd
the local file and did another svn update and it compiles fine now.

I thought changed local files are left alone during updates. Or is that a CVS
thing?

Tim

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error in gnc-plugin-budget.c when compiling G2 from trunk

Derek Atkins
Quoting Tim Wunder <[hidden email]>:

> Yep. I had changed it in order to get opening budgets to work
> properly. I rm'd
> the local file and did another svn update and it compiles fine now.
>
> I thought changed local files are left alone during updates. Or is that a CVS
> thing?

Nope, not a CVS thing, either...  If the same file is changed locally
and in the repo, both SVN and CVS will form a conflict.  CVS might just
be a little "better" about trying to merge "the same change".

> Tim

-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
       [hidden email]                        PGP key available

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: error in gnc-plugin-budget.c when compiling G2 from trunk

David Hampton-2
On Mon, 2005-11-21 at 09:17 -0500, Derek Atkins wrote:

> Quoting Tim Wunder <[hidden email]>:
>
> > Yep. I had changed it in order to get opening budgets to work
> > properly. I rm'd
> > the local file and did another svn update and it compiles fine now.
> >
> > I thought changed local files are left alone during updates. Or is that a CVS
> > thing?
>
> Nope, not a CVS thing, either...  If the same file is changed locally
> and in the repo, both SVN and CVS will form a conflict.  CVS might just
> be a little "better" about trying to merge "the same change".

CVS was definitely better at telling you there was a conflict.  With SVN
all you get is a single 'C' character, which looks a lot like the 'G'
character that means the two files were merged without any conflict.  In
a long list of changed files I often have to look twice to notice a
conflict.

David


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: error in gnc-plugin-budget.c when compiling G2 from trunk

Derek Atkins
In reply to this post by Tim Wunder (Lists)
Tim Wunder <[hidden email]> writes:

> Yep. I had changed it in order to get opening budgets to work
> properly. I rm'd the local file and did another svn update and it
> compiles fine now.

FYI, Another way to fix this is "svn revert filename"

-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
       [hidden email]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel