Compile Error

Derek Atkins derek at ihtfp.com
Mon Mar 26 12:28:39 EDT 2012


Hi,

On Mon, March 26, 2012 12:19 pm, Casey Cichon wrote:
> Grabbed the latest version of trunk, got an error when compiling:
>
[snip]
> /usr/local/lib/gnucash/libgncmod-ledger-core.so: undefined reference to
> `qof_book_uses_autofreeze'
> /usr/local/lib/gnucash/libgncmod-ledger-core.so: undefined reference to
> `qof_book_get_autofreeze_gdate'
> collect2: ld returned 1 exit status
> make[4]: *** [gnucash] Error 1
> make[4]: Leaving directory `/home/casey/Downloads/gnucash/src/bin'
> make[3]: *** [all-recursive] Error 1

The issue here is that the linker is finding an old version of some
GnuCash libraries in /usr/local/lib and is trying to use them instead of
using the version you've just compiled.

The solution:

1) Uninstall gnucash from /usr/local
2) re-configure gnucash with --prefix=/opt/gnucash
3) re-build and re-install gnucash into /opt/gnucash

> No errors before this.

Not surprising; those QOF APIs probably didn't change before now.

> Casey

-derek




More information about the gnucash-devel mailing list