Libtool problems
Herbert Thoma
tma@iis.fhg.de
Mon, 12 Nov 2001 22:31:08 +0100
Derek Atkins schrieb:
>
> 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.
This is in the .libs directory:
-rw-r--r-- 1 herbie 1596934 Nov 12 21:43 libgncmod-engine.a
lrwxrwxrwx 1 herbie 22 Nov 12 21:43 libgncmod-engine.la -> ../libgncmod-engine.la
-rw-r--r-- 1 herbie 1020 Nov 12 21:43 libgncmod-engine.lai
-rw-r--r-- 1 herbie 550896 Nov 12 21:43 libgw-engine.a
lrwxrwxrwx 1 herbie 18 Nov 12 21:43 libgw-engine.la -> ../libgw-engine.la
-rw-r--r-- 1 herbie 825 Nov 12 21:43 libgw-engine.lai
-rw-r--r-- 1 herbie 99872 Nov 12 21:43 libgw-glib.a
lrwxrwxrwx 1 herbie 16 Nov 12 21:43 libgw-glib.la -> ../libgw-glib.la
-rw-r--r-- 1 herbie 819 Nov 12 21:43 libgw-glib.lai
-rw-r--r-- 1 herbie 116676 Nov 12 21:43 libgw-kvp.a
lrwxrwxrwx 1 herbie 15 Nov 12 21:43 libgw-kvp.la -> ../libgw-kvp.la
-rw-r--r-- 1 herbie 816 Nov 12 21:43 libgw-kvp.lai
in .../engine I have:
-rw-r--r-- 1 herbie 1139 Nov 12 21:43 libgncmod-engine.la
-rw-r--r-- 1 herbie 824 Nov 12 21:43 libgw-engine.la
-rw-r--r-- 1 herbie 818 Nov 12 21:43 libgw-glib.la
-rw-r--r-- 1 herbie 815 Nov 12 21:43 libgw-kvp.la
> There seems to be something really wrong with your development
> environment. Perhaps it isn't figuring out how to build shared
> libraries?
This may be a clue. Here is a piece of the output of autogen.sh:
<...>
checking whether the linker (/usr/i486-suse-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
<...>
May be I should get another libtool?
Herbert.
> -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
--
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/