problems compiling gnucash (gnucash-gnome2-dev branch)

Yada Yuk yadayuk at yahoo.com
Sun Aug 17 02:30:02 CDT 2003


I checked out a version of the tree again, uninstalled
and re-installed the following packages -
guile-1.6 guile-1.6-dev guile-1.6-slib
libgwrapguile-dev libgwrapguile1 
guile1.4 guile-common libguile-ltdl-1 libguile9

And now it seems to compile more of the code.
Currently my compile crashes with the following error.
Any help fixing it is greatly appreciated.

gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../src/gnc-module -I../../src/engine
-I../../src/backend/file -I../../src/network-utils
-I../../src/app-utils -I../../lib/egg -I../../src
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-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/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-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/include/atk-1.0
-I/usr/X11R6/include -DORBIT2=1 -pthread
-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/linc-1.0
-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/include/atk-1.0
-I/usr/X11R6/include -I/usr/include/libxml2
-I/usr/include/gtkhtml-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I
/usr/include/g-wrap -g -O2 -Werror
-Wp,-MD,.deps/dialog-account.pp -c dialog-account.c 
-fPIC -o .libs/dialog-account.o
In file included from ../../src/engine/messages.h:34,
                 from dialog-account.c:49:
/usr/include/libintl.h:40: syntax error before "const"
/usr/include/libintl.h:44: syntax error before "const"
/usr/include/libintl.h:52: syntax error before "const"
/usr/include/libintl.h:81: syntax error before "const"
/usr/include/libintl.h:86: syntax error before "const"
/usr/include/libintl.h:91: syntax error before "const"
make[4]: *** [dialog-account.lo] Error 1
make[4]: Leaving directory
`/home/hrishisid/projects/gnucash/src/gnome-utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/hrishisid/projects/gnucash/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/hrishisid/projects/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/hrishisid/projects/gnucash'
make: *** [all-recursive-am] Error 2

Thanks
Yada



--- Yada Yuk <yadayuk at yahoo.com> wrote:
> Looks like the problem is because of the version of
> guile I have installed. I have Debian SID packages
> guile1.4 and guile-1.6 installed.
> 
> An earlier thread
>
(http://www.mail-archive.com/gnucash-devel@lists.gnucash.org/msg02068.html)
> seems to suggest that guile-1.6 will not work
> correctly. So I uninstalled gulie-1.6 but that also
> removes the packages libgwrapguile1 and
> libgwrapguile-dev (which provide g-wrap)!!
> 
> Also, another thread
>
(http://www.mail-archive.com/gnucash-devel@lists.gnucash.org/msg02833.html)
> suggests that guile-1.6-dev should be installed. I
> am
> a little confused now.
> 
> Yada
> 
> --- Yada Yuk <yadayuk at yahoo.com> wrote:
> > I am trying to compile the gnucash-gnome2-dev on a
> > Debian SID system. 
> > 
> > I get the following error when I try a Make. 
> > 
> > 
> > --Begin  text--
> > gcc -DHAVE_CONFIG_H -I. -I. -I../..
> -I../../lib/libc
> > -I../../src -I../../src/gnc-module -DGNUCASH
> > -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include
> > -I
> > /usr/include/g-wrap -g -O2 -Werror
> > -Wp,-MD,.deps/engine-helpers.pp -c
> engine-helpers.c 
> > -fPIC -o .libs/engine-helpers.o
> > cc1: warnings being treated as errors
> > engine-helpers.c: In function
> > `gnc_timepair2timespec':
> > engine-helpers.c:108: warning: passing arg 2 of
> > `scm_num2long' makes integer from pointer without
> a
> > cast
> > -- End text--
> > 
> > engine-helpers.c:108  result.tv_nsec =
> > scm_num2long(SCM_CDR(x), SCM_ARG1, __FUNCTION__);
> > 
> > I grepped for SCM_ARG1 in all the header files
> > includes in engine-helpers.c but could not find
> it.
> > How do I fix this error?
> > 
> > I dont know what stage the gnucash port to gnome2
> is
> > at. (Does it compile ? Does it run with bugs ?).
> Is
> > there some place I can find out the current state?
> > 
> > Thanks
> > Yada
> > PS: here are some notes on some errors I got prior
> > to
> > the current one and what actions I took to fix
> them
> > 
> > To compile gnucash branch "gnucash-gnome2-dev" on 
> > Debian SID 
> > 
> > cvs -z3 -d
> > :pserver:cvs at cvs.gnucash.org:/home/cvs/cvsroot
> > checkout -r gnucash-gnome2-dev gnucash
> > 
> > cd gnucash
> > ./autogen.sh
> > ./configure
> > make DESTDIR=/home/yadayuk/projects/gnucash_test/
> > 
> > Errors running autogen.sh
> > -------------------------
> > Error:
> > "checking for guile - 1.3.4 <= version <
> 99.99.99...
> > no
> >  configure: WARNING: guile version check failed
> >  configure: error:
> > 
> >    guile  does not appear to be installed
> correctly,
> > or is not in the
> >    correct version range.  Perhaps you have not
> > installed the guile
> >    development packages?  Right now gnucash
> requires
> > at least version
> >    1.3.4 to build."
> >    
> > Solution:
> > aptitude install libguile-dev
> > 
> > Note:
> > guile-1.6-dev and libguile-dev do not co-exist (as
> > of
> > Aug 17 2003) on Debian SID
> > Installing one uninstalls the other!! The
> autogen.sh
> > script requires
> > libguile-dev to be installed (does not check
> > guile-1.6-dev) while "make"
> > requires guile-1.6-dev.
> > 
> > Error: 
> > "
> > checking for libgnomeprint-2.0
> > libgnomeprintui-2.0...
> > Package libgnomeprint-2.0 was not found in the
> > pkg-config search path.
> > Perhaps you should add the directory containing
> > `libgnomeprint-2.0.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'libgnomeprint-2.0' found
> > 
> > configure: error: Library requirements
> > (libgnomeprint-2.0 libgnomeprintui-2.0) not met;
> > consider adjusting the PKG_CONFIG_PATH environment
> > variable if your libraries are in a nonstandard
> > prefix
> > so pkg-config can find them.
> > "
> > 
> > Solution:
> > Made following soft links 
> > cd /usr/lib/pkgconfig/
> > ln -s libgnomeprint-2.2.pc libgnomeprint-2.0.pc
> > ln -s libgnomeprintui-2.2.pc
> libgnomeprintui-2.0.pc
> > 
> > Make Errors
> > -----------
> > Error:
> > grep: /usr/lib/libguile-ltdl.la: No such file or
> > directory
> > sed: can't read /usr/lib/libguile-ltdl.la: No such
> > file or directory
> > libtool: link: `/usr/lib/libguile-ltdl.la' is not
> a
> > valid libtool archive
> > 
> > Solution:
> > aptitude install guile-1.6-dev (see note above)
> > 
> > Error:
> > gcc -DHAVE_CONFIG_H -I. -I. -I../..
> -I../../lib/libc
> > -I../../src -I../../src/gnc-module -DGNUCASH
> > -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include
> > -I
> > /usr/include/g-wrap -g -O2 -Werror
> > -Wp,-MD,.deps/engine-helpers.pp -c
> engine-helpers.c 
> > -fPIC -o .libs/engine-helpers.o
> > cc1: warnings being treated as errors
> > engine-helpers.c: In function
> > `gnc_timepair2timespec':
> > engine-helpers.c:108: warning: passing arg 2 of
> > `scm_num2long' makes integer from pointer without
> a
> > cast
> > 
> > Solution: ???
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


More information about the gnucash-devel mailing list