Build problems

Phil Longstaff plongstaff at newearth.org
Sat Oct 9 12:14:47 EDT 2004


I downloaded CVS source (1.8.10?) on my suse 9.1 system.  I had the
following build problems:

1) in directory import-export/qif/test, linking test-qif produced:
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: warning: libpopt.so.1, needed by /opt/gnome/lib/liboaf.so, may conflict with libpopt.so.0../.libs/libgncmod-qif.a(qif-file.o)(.text+0x460): In function `qif_file_new':/home/phil/gnucash/src/import-export/qif/qif-file.c:127: undefined reference to`gnc_should_log'../.libs/libgncmod-qif.a(qif-file.o)(.text+0x4c2):/home/phil/gnucash/src/import-export/qif/qif-file.c:160: undefined reference to `gnc_should_log'../.libs/libgncmod-qif.a(qif-file.o)(.text+0x585):/home/phil/gnucash/src/import-export/qif/qif-file.c:200: undefined reference to `gnc_log_prettify'

+ lots more errors like that

2) in directory import-export/test, linking test-import-parse produced:
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: warning: libpopt.so.1, needed by /opt/gnome/lib/liboaf.so, may conflict with libpopt.so.0
/home/phil/gnucash/src/engine/.libs/libgw-engine.a(engine-helpers.o)(.text+0xccb): In function `gnc_query_sort2scm':
/home/phil/gnucash/src/engine/engine-helpers.c:1640: undefined reference
to `qof_query_sort_get_param_path'
/home/phil/gnucash/src/engine/.libs/libgw-engine.a(engine-helpers.o)(.text+0xcf5):/home/phil/gnucash/src/engine/engine-helpers.c:1645: undefined reference to `qof_query_sort_get_sort_options'
/home/phil/gnucash/src/engine/.libs/libgw-engine.a(engine-helpers.o)(.text+0xd0e):/home/phil/gnucash/src/engine/engine-helpers.c:1646: undefined reference to `qof_query_sort_get_increasing'
/home/phil/gnucash/src/engine/.libs/libgw-engine.a(engine-helpers.o)(.text+0x13fc): In function `gnc_scm2query_term_query':
/home/phil/gnucash/src/engine/engine-helpers.c:1014: undefined reference
to `qof_query_string_predicate'

+ lots more errors like that

I "solved" both of those by modifying the Makefiles to ignore those
directories.  Gnucash continued to build, but when I try to run it, I
get:

ERROR: In procedure dynamic-link:
ERROR: file: "libgw-gnc", message: "/opt/gnucash/lib/libgw-gnc.a:
invalid ELF header"

However, 

readelf /opt/gnucash/lib/libgw-gnc.a

seems to look OK.

Any ideas where to look?

Phil



More information about the gnucash-devel mailing list