problems compiling gnucash (gnucash-gnome2-dev branch)

Yada Yuk yadayuk at yahoo.com
Sun Aug 17 00:16:00 CDT 2003


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


More information about the gnucash-devel mailing list