Libtool problems

Herbert Thoma tma@iis.fhg.de
Mon, 12 Nov 2001 21:12:14 +0100


Hi,

Derek Atkins schrieb:
> 
> I cannot reproduce this on my RH7.1 system...  Are you sure you
> started with a clean source tree?  You might want to check out a new
> tree to make sure you've got a completely clean source tree:
> 
> rm -rf gnucash
> cvs -d ... co gnucash
> cd gnucash
> ./autogen.sh ...
> make

I did exactly this. And I did this again about half an hour ago
and it still fails :-(

Dave Peticolas schrieb:
>  know the debian-unstable people had to do something
> because of autoconf 2.5, but I'm not sure if that was
> a debian-specific fix or not. Anybody remember?
> 
> I don't think the order should matter, but you might
> try moving the line in src/engine/test/Makefile.am
> 
>   ../libgncmod-engine.la \
> 
> farther down the list in LDADD.

this did not help.

 Herbert.

> Herbert Thoma <tma@iis.fhg.de> writes:
> 
> > Hi Dave, all!
> >
> > I tried a few things: I got a fresh cvs checkout, I reinstalled libtool,
> > I even upgraded to SuSE 7.3 which brings libtool 1.4.1, but I
> > still can not build GnuCash.
> >
> > If I call make with -k then not only the linking of test-core
> > fails, but also every other linking fails because of undefined references.
> >
> > I now have installed:
> > libtool 1.4.1
> > automake 1.4-p5
> > autoconf 2.52
> > gcc 2.95.3
> >
> > Any suggestions what I should check or try?
> >
> >  Herbert.
> >
> > This is the command that fails:
> >
> > gcc -I../../../src/gnc-module -I../../../src/test-core -I.. -I../test-core -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wall -Wno-unused
> > -Werror-implicit-function-declaration -o test-commodities test-commodities.o  ../../../src/gnc-module/.libs/libgncmodule.a -L/usr/local/lib -L/usr/lib ../../../src/test-core/.libs/libgncmod-test.a
> > ../.libs/libgncmod-engine.a /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/.libs/libgw-engine.a /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/.libs/libgw-glib.a
> > /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/.libs/libgw-kvp.a ../.libs/libgw-engine.a ../.libs/libgw-glib.a ../.libs/libgw-kvp.a ../test-core/.libs/libgncmod-test-engine.a
> > /opt/gnucash/gnucash_cvs/gnucash_work/src/gnc-module/.libs/libgncmodule.a /usr/local/lib/libg-wrap-runtime-guile.so /usr/lib/libguile.so /usr/lib/libqthreads.so -lpthread /usr/lib/libglib.so
> > /usr/lib/libltdl.so -ldl /usr/lib/libpopt.so -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
> > /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/.libs/libgw-engine.a(engine-helpers.o): In function `gnc_scm2query_term_query':
> > /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/engine-helpers.c:891: undefined reference to `xaccMallocQuery'
> > /opt/gnucash/gnucash_cvs/gnucash_work/src/engine/engine-helpers.c:938: undefined reference to `xaccQueryAddDateMatchTS'
> >
> > lots of other undefined references follow
> >
> >
> > Dave Peticolas schrieb:
> > >
> > > On Thu, 2001-11-08 at 13:39, Herbert Thoma wrote:
> > > > Dave Peticolas wrote:
> > > > > CVS is getting confused by the existing ltmain.sh.
> > > > > Remove ltmain.sh and do a 'cvs up ltmain.sh'. Then
> > > > > rerun autogen.sh and you should be ok.
> > > > >
> > > > > dave
> > > > >
> > > >
> > > > Thanks Dave, this fixed the problem,
> > > > but now I get another error later:
> > >
> > > Hmm, I get similar output for linking the engine, but linking
> > > test-core succeeds. If you didn't already, you might try a
> > > 'make clean' first. Normally, you don't need to but the latest
> > > changes were substantial enough that it may be necessary.
> > >
> > > dave
> > >
> > >   --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > >    Part 1.2Type: application/pgp-signature
> >
> > --
> > Herbert Thoma
> > FhG-IIS A, Studio Department
> > Am Weichselgarten3, 91058 Erlangen, Germany
> > Phone: +49-9131-776-323
> > Fax:   +49-9131-776-399
> > email: tma@iis.fhg.de
> > www: http://www.iis.fhg.de/
> > _______________________________________________
> > gnucash-devel mailing list
> > gnucash-devel@lists.gnumatic.com
> > http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel
> 
> --
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord@MIT.EDU                        PGP key available

-- 
Herbert Thoma
FhG-IIS A, Studio Department
Am Weichselgarten3, 91058 Erlangen, Germany
Phone: +49-9131-776-323
Fax:   +49-9131-776-399
email: tma@iis.fhg.de
www: http://www.iis.fhg.de/