Compile error

Neil Williams linux at codehelp.co.uk
Sun Nov 20 17:22:51 EST 2005


On Sunday 20 November 2005 8:53 pm, Vinay Pai wrote:
> Ok, I checked my dpkg versions like you describe below and they're all
> exactly the same as yours except that I don't have guile1.4 and
> guile1.4-slib installed.  You don't need both guile-1.6 and guile1.4,
> right?

Correct. Guile1.4 is just a hangover from previous builds but, importantly, it 
does not interfere with the G2 build - unlike the rest of the older guile 
related packages.

> I erased my working directory and checked out the sources again with:

That'll do, but you should find that make distclean saves a lot of downloads.
:-)

> $ svn co http://svn.gnucash.org/repo/gnucash/trunk gnucash
> Checked out revision 11992.
> $ ./autogen.sh
> $ ./configure --enable-error-on-warning --enable-compile-warnings

--enable-maintainer-mode ?

You don't need to start again for that, just re-run configure with that option 
as well as your others.

Also, if you want to install in a non-privileged directory, specify a --prefix
--prefix=/opt/installed/gnucash
(that allows you to run make install without needing sudo or su)

>   Options detected/selected
...
>   QOF support ...........: 0.6.0
>   QOF location ..........: /usr
>   QOF library dir .......: /usr/lib
>   QOF backend config ....: /usr/share/xml/qof/qsf

:-)

Nice to see you're using external QOF support!!!

> This time I got a different error:
> -Wl,/usr/local/lib/gnucash /usr/bin/ld: warning: libgoffice-1.so.0, needed
> by /usr/local/lib/gnucash/libgncmod-gnome-utils.so.0, not found (try
> using -rpath or

Ooh. That's not good. This should have been picked up in the configure. You 
appear to not have libgoffice installed. On Debian, you can install 
libgoffice-1-1 (v0.1.2-1) 

$ dpkg -l libgoffice-1-1
ii  libgoffice-1-1     0.1.2-1

*And it's -dev package:*
ii  libgoffice-1-dev   0.1.2-1 

Not sure why this wasn't picked up before.

> I had goffice-1-1 installed.

Maybe not the -dev ?

> I purged libgoffice-1-1, 
> libgoffice-1-common and libgoffice-1 and then forced version 0.0.4-1
> from testing. 

Nasty - I don't think you needed to do that, sorry.
:-(

> Then distclean, autogen and configure and make.  Now I'm 
> getting the old error again:

(Glad to see you are persistent! )

> ../../../../src/gnome/.libs/libgncgnome.so: undefined reference to
> `gnc_pricedb_set_bulk_update'

Hmm. I wouldn't worry about how you've ended up here again. I think your best 
option is to go back to libgoffice-1-1 with it's dev package.

Maybe you're missing libgsf:
 libgsf-1-113       1.13.3-1 

and it's dev package:
 libgsf-1-dev       1.13.3-1

Still can't see why configure didn't tell you the same.

> I've got automake 1.9.6, autoconf 2.59, libtool 1.5.20, gcc 4.0.3.  I'm
> running Debian Unstable on a 32-bit pentium-4.
>
> Hopefully I haven't omitted any important details this time. Thanks for
> your patience :)

You have had a hard time with all this, I think we should be glad you've got 
enough patience to get this far!

Try using a helpful bash script to do all the build commands using:

#!/bin/bash
./autogen.sh
result=$?
case "$result" in
        0)
        ./configure --options
# repeat with whichever commands you need in turn, make etc.
        ;;
        *)
        exit
        ;;
esac
for each command. That way, you are certain to catch all errors.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20051120/c5e434e6/attachment.bin


More information about the gnucash-devel mailing list