Compile 1.8.x: a few problems (but at the end a working Gnucash)
Morten Sickel
Morten.Sickel at newmedia.no
Tue Feb 11 15:21:27 CST 2003
Just to start with the positive part: I am now running gnucash 1,8.1, It works
great for me, lots of thanks to all the clever people who are doing the
development.
But the compilation 1.8.1 (and former 1.8.0) was not without problems on a the
following system:
kernel 2.4.20
gcc 2.95.3
perl 5.8.0
make 3.79.1
libtool 1.3.4
(It was installed as redhat 7.2 some years ago, but now I have upgraded a lot
of things from source, so the rpm database is completely broken)
Most other modules and tools upgraded to most recent versions, It could of
cource be that I have an old version of some crucial tool or library lurking
around, but it is not clear for me from these problems what that might be.
I do not get any complaints during ./configure --enable-sql --enable-gui, but
during the compile phase, I get:
make[5]: Entering directory
`/home/morten/temp1/gnucash-1.8.1/src/gnc-module/test/mod-foo'
/bin/sh ../../../../libtool --mode=link gcc -I../../../../src/gnc-module -I
/usr/local/include/g-wrap -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -g -O2 -I/usr/local/include/pgsql -Wall
-Wunused -Werror -o libfoo.la -rpath -module foo.lo -lpopt -lm -lm
libtool: link: only absolute run-paths are allowed
make[5]: *** [libfoo.la] Error 1
and similiar errors in mod-bar, mod-baz and mod-misc subdirs.
I also tried to ./configure with and without the --with-gnu-ld flag, but that
did not do anything.
As the names indicated that the dirs were not crucial, I removed the test
directory from SUBDIRS in the Makefile in src/gnc-module, and the compilation
went well until:
cc1: warnings being treated as errors
dialog-sxsincelast.c: In function `gnc_ui_sxsincelast_guile_wrapper':
dialog-sxsincelast.c:385: warning: implicit declaration of function `ngettext'
dialog-sxsincelast.c:390: warning: passing arg 1 of `gnc_info_dialog' makes
pointer from integer without a cast
make[4]: *** [dialog-sxsincelast.lo] Error 1
make[4]: Leaving directory `/home/morten/temp1/gnucash-1.8.1/src/gnome'
make[3]: *** [all-recursive] Error 1
Again, I removed the -Werror from the makefile in src/gnome and went bravely
on until:
../../../../src/gnome/.libs/libgncgnome.so: undefined reference to `ngettext'
collect2: ld returned 1 exit status
make[5]: *** [test-link] Error 1
make[5]: Leaving directory
`/home/morten/temp1/gnucash-1.8.1/src/import-export/qif-import/test'
As I have never used quicken and don't need the import, I also throw out that
one. (Removed it from SUBDIRS in the Makefile) (I would guess that this is I
caused by an outdated or lacking library / header, but as I did not need it I
didn't bother to investigate it)
After these changes make check did not report any problems, and I seems to run
just fine, I only get the message
** WARNING **: Failed to open module gnucash/import-export/qif-import
** WARNING **: : could not locate gnucash/import-export/qif-import interface
v.0
which should not come as a surprise, since I did not compile it.
Again, thanks a lot to the developers!
Morten Sickel
More information about the gnucash-user
mailing list