compiling on debian

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

compiling on debian

Andrew Sackville-West
howdy,

so i finally got around to checking out a new copy of gnucash to compile
(wanted to play with Josh's graphing stuff). first, I had trouble
checking out "gnucash-gnome2-dev" (I assume that is the version to try?)
so I went for "gnucash".

autogen.sh works fine

make give the following stuff ( I hope I have included enough context):

make[3]: Leaving directory `/home/andrew/gnucash/src/engine'
make[3]: Entering directory `/home/andrew/gnucash/src/engine'
Making all in .
make[4]: Entering directory `/home/andrew/gnucash/src/engine'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
    -I../../lib/libc    -I../../src     -I../../src/gnc-module
-DGNUCASH -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I
/usr/include/g-wrap  -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations   -Werror -c gw-engine.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src
-I../../src/gnc-module -DGNUCASH -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I /usr/include/g-wrap -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Werror
-Wp,-MD,.deps/gw-engine.pp -c gw-engine.c  -fPIC -o .libs/gw-engine.o
cc1: warnings being treated as errors
gw-engine.c: In function 'gw__tmp426_xaccQueryAddDateMatch_wrapper':
gw-engine.c:16686: warning: 'gw__scm_extras[0]' is used uninitialized in
this function
make[4]: *** [gw-engine.lo] Error 1
make[4]: Leaving directory `/home/andrew/gnucash/src/engine'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/andrew/gnucash/src/engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andrew/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andrew/gnucash'
make: *** [all-recursive-am] Error 2


I am probably doing something stupid, so please enlighten me, if you
will. And I apologise if I am distracting from the real work ;)

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

Re: compiling on debian

Chris Shoemaker
On Thu, Oct 13, 2005 at 11:52:10AM -0700, Andrew Sackville-West wrote:
> howdy,
>
> so i finally got around to checking out a new copy of gnucash to compile
> (wanted to play with Josh's graphing stuff). first, I had trouble
> checking out "gnucash-gnome2-dev" (I assume that is the version to try?)
> so I went for "gnucash".

The graphing stuff is only in G2 branch, so you really want
"gnucash-gnome2-dev".  What was the problem?

>
> gw-engine.c: In function 'gw__tmp426_xaccQueryAddDateMatch_wrapper':
> gw-engine.c:16686: warning: 'gw__scm_extras[0]' is used uninitialized in
> this function

This is a bug, but not lethal.  The quickest way to proceed (after
getting the real G2) is:

$ ./autogen.sh CFLAGS="-Wno-uninitialized"

and remake...

-chris

>
> I am probably doing something stupid, so please enlighten me, if you
> will. And I apologise if I am distracting from the real work ;)

Hey, testing *is* real work.  Thanks for your help.

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

Re: compiling on debian

Derek Atkins
In reply to this post by Andrew Sackville-West
Quoting Andrew Sackville-West <[hidden email]>:

> howdy,
>
> so i finally got around to checking out a new copy of gnucash to
> compile (wanted to play with Josh's graphing stuff). first, I had
> trouble checking out "gnucash-gnome2-dev" (I assume that is the
> version to try?) so I went for "gnucash".

What cvs command did you use?  You probably forgot the "-r" to grab
the g2 branch, thinking g2 was a module instead.  I bet you pulled
down HEAD branch, which wont work on Debian/unstable.

[snip]
> cc1: warnings being treated as errors
> gw-engine.c: In function 'gw__tmp426_xaccQueryAddDateMatch_wrapper':
> gw-engine.c:16686: warning: 'gw__scm_extras[0]' is used uninitialized
> in this function

This sounds like a gcc4 issue, which HEAD wont fix.  You need g2 branch.

> I am probably doing something stupid, so please enlighten me, if you
> will. And I apologise if I am distracting from the real work ;)

You probably used the wrong cvs command.  Check if you have a GNOME2_STATUS
file in the top-level of your checkout.  If not, then you've got
the wrong branch.  Go read the "CVS Hacking" page on www.gnucash.org
for explicit instructions (you'll need to go to the end of the page
under "how to get olders versions").

> Andrew

-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: compiling on debian

Andrew Sackville-West


Derek Atkins wrote:
>
>
> What cvs command did you use?  You probably forgot the "-r" to grab
> the g2 branch, thinking g2 was a module instead.  I bet you pulled
> down HEAD branch, which wont work on Debian/unstable.
>

yup, the -r.

> [snip]
>
>> cc1: warnings being treated as errors
>> gw-engine.c: In function 'gw__tmp426_xaccQueryAddDateMatch_wrapper':
>> gw-engine.c:16686: warning: 'gw__scm_extras[0]' is used uninitialized
>> in this function
>
>
> This sounds like a gcc4 issue, which HEAD wont fix.  You need g2 branch.
>

sorry guys and thanks. duh. I've done this before. Anyway now have g2
and will try again.

thanks all

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