Libtool problems
Derek Atkins
warlord@MIT.EDU
12 Nov 2001 15:54:13 -0500
Are you use you added "libgncmod-engine.la" and not
"libgncmod-engine.a"? The link-line below seems to imply that you
have static libraries, not shared libraries (all the .a files in the
link-line). You might also want to "ls -l
..../engine/.libs/libgncmod*" and see what libraries actually got
built.
There seems to be something really wrong with your development
environment. Perhaps it isn't figuring out how to build shared
libraries?
-derek
Herbert Thoma <tma@iis.fhg.de> writes:
> > ../libgncmod-engine.la \
> >
> > farther down the list in LDADD.
>
> this did not help.
>
> > > 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'
--
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