Compile Error

Casey Cichon casey at wizkid.homelinux.net
Mon Mar 26 12:37:01 EDT 2012


On Mon, Mar 26, 2012 at 12:28:39PM -0400, Derek Atkins wrote:
> 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
> 

Ok ... 

make uninstall (to uninstall /usr/local)
make   (No errors)


So I'm all good again.

Thanks.

> > No errors before this.
> 
> Not surprising; those QOF APIs probably didn't change before now.
>


Casey

> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20120326/40940c78/attachment.sig>


More information about the gnucash-devel mailing list