libtool: link: only absolute run-paths are allowed

Matthew Vanecek mevanecek at yahoo.com
Tue Feb 25 12:38:21 CST 2003


Please CC these to the mailing list. There are others there that know
much more than I...

Have you tried compiling with the HP C compiler?

On Tue, 2003-02-25 at 10:10, Gansser, Martin wrote:
> > -----Original Message-----
> > From: Matthew Vanecek [mailto:mevanecek at yahoo.com]
> > Sent: Tuesday, February 25, 2003 4:06 PM
> > To: Gansser, Martin
> > Cc: Gnucash Devel
> > Subject: RE: libtool: link: only absolute run-paths are allowed
> > 
> > 
> > On Tue, 2003-02-25 at 08:36, Gansser, Martin wrote:
> > > > -----Original Message-----
> > > > From: Matthew Vanecek [mailto:mevanecek at yahoo.com]
> > > > Sent: Tuesday, February 25, 2003 3:03 PM
> > > > To: Gansser, Martin
> > > > Cc: David Hampton; Gnucash Devel
> > > > Subject: RE: libtool: link: only absolute run-paths are allowed
> > > > 
> > > > 
> > > > On Mon, 2003-02-17 at 04:12, Gansser, Martin wrote:
> > > > > > -----Original Message-----
> > > > > > From: David Hampton [mailto:hampton at employees.org]
> > > > > > Sent: Thursday, February 13, 2003 6:51 PM
> > > > > > To: Gansser, Martin
> > > > > > Cc: gnucash-devel at lists.gnucash.org
> > > > > > Subject: Re: libtool: link: only absolute run-paths 
> > are allowed
> > > > > > 
> > > > > > 
> > > > > > On Thu, 2003-02-13 at 06:39, Gansser, Martin wrote:
> > > > > > > Hi,
> > > > > > > 
> > > > > > > I tried to compile gnucash-1.8.1 on hpux 11.00, but I get 
> > > > > > the following error message:
> > > > > > > 
> > > > > > > ...
> > > > > > > libtool: link: only absolute run-paths are allowed
> > > > > > 
> > > > > > This vaguely rings a bell as an hpux issue that libtool 
> > > > couldn't work
> > > > > > around.  I don't think its a gnucash issue at all.  I'm not 
> > > > > > sure what to
> > > > > > suggest other than skipping the 'make' step and going 
> > > > > > straight to 'make
> > > > > > install'.  IIRC, in the former command libtool tries 
> > to set up the
> > > > > > application so it can be run from the source directory, 
> > > > thus relative
> > > > > > run-paths. In the latter, libtool links the libs for 
> > > > their ultimate
> > > > > > destination in the file system using absolute run paths.
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > I solved this problem by removing the test directory from 
> > > > SUBDIRS in the src/gnc-module/Makefile.in,
> > > > > and the compilation went well, until the start problem.
> > > > > 
> > > > > prounix_root:/opt/gnucash/bin # ./gnucash
> > > > > /usr/lib/dld.sl: Unresolved symbol: __moddi3 (code)  from 
> > > > /opt/gnucash/lib/gnucash/libgncmod-engine.sl.0
> > > > > IOT Abfrage (Hauptspeicherauszug ausgegeben)
> > > > > 
> > > > > any suggestions
> > > > > 
> > > > 
> > > > That's a symbol in the glibc libc-2*.so library:
> > > > 
> > > > me2v at reliant engine $ nm /lib/libc-2.2.5.so |grep moddi3
> > > > 00017690 T __moddi3
> > > > 00017720 T __umoddi3
> > > > 
> > > > Did you compile gnucash or one of it's dependencies 
> > against glibc, and
> > > > then try to run it against hpux libc?  There's something 
> > > > about moddi3 in
> > > > the archives (not much), but it was pretty much "that's a glibc
> > > > function".
> > > > 
> > > > Someone else may have something more informative to offer...
> > > > -- 
> > > > Matthew Vanecek
> > > 
> > > In /usr/lib/libc.* there isn't a symbol like moddi3.
> > > 
> > > the only library with moddi3 Symbols is:
> > > 
> > > # nm -v /usr/local/lib/libgcc_s.sl |grep moddi3
> > > 0007118 T __moddi3
> > > 0007130 T __moddi3
> > > 0007f78 T __umoddi3
> > > 0007f90 T __umoddi3
> > > zfem_root:/usr/lib #
> > > 
> > 
> > Have you try adding /usr/local/lib to your LD_LIBRARY_PATH, 
> > or whatever
> > equivalent HPUX has?  If you can convince your gcc-compiled 
> > apps to load
> > their symbols from libgcc.s.sl, you may get the symbols to be
> > recognized.
> > 
> > 
> > -- 
> > Matthew Vanecek
> 
> 
> I tried once again with following configure options:
> 
> #!/bin/csh -f
> #
> #setenv LINGUAS de
> setenv LDFLAGS "-L/opt/gnome/lib"
> setenv LD_LIBRARY_PATH "/usr/local/lib"
> setenv LIBS "-L/usr/local/lib -lgcc"
> gmake distclean
> rm config.cache
> rm libtool
> ./configure --prefix=/opt/gnucash --with-glib-prefix=/opt/gnome \
>             --with-gnome-includes=/opt/gnome/include \
>             --with-gnome-libs=/opt/gnome/lib \
>             --with-g-wrap-prefix=/usr/local \
>             --disable-error-on-warning \
>             --disable-openhbcitest \
>             --enable-opt-style-install \
>             --disable-guppi
> gmake
> gmake install
> 
> but it fails with the following error message:
> 
> 
> libtool: link: warning: this platform does not like uninstalled shared libraries
> libtool: link: `test-link-module' will be relinked during installation
> gcc -I../../../../src/test-core -I.. -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -g
> -O2 -Wall -Wunused -o .libs/test-link-module test-link-module.o  -L/opt/gnome/lib ../.libs/libgncmod
> -binary-import.a -L/usr/contrib/X11R6/lib -L/opt/xpm/lib -L/usr/local/lib /opt/mgansser/GNU/gnucash-
> 1.8.1/src/app-file/.libs/libgncmod-app-file.a -L/opt/gnome/lib/lib /opt/mgansser/GNU/gnucash-1.8.1/s
> rc/app-file/gnome/.libs/libgnc-app-file-gnome.sl /opt/mgansser/GNU/gnucash-1.8.1/src/gnome-utils/.li
> bs/libgncmod-gnome-utils.a /opt/mgansser/GNU/gnucash-1.8.1/src/network-utils/.libs/libgncmod-network
> -utils.a /opt/gnome/lib/libghttp.sl /opt/mgansser/GNU/gnucash-1.8.1/src/app-utils/.libs/libgncmod-ap
> p-utils.a /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/libgncmod-engine.a /opt/mgansser/GNU/gnuc
> ash-1.8.1/src/engine/.libs/libgw-engine.a /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/libgw-kvp
> .a /opt/mgansser/GNU/gnucash-1.8.1/src/gnc-module/.libs/libgncmodule.a /opt/mgansser/GNU/gnucash-1.8
> .1/src/core-utils/.libs/libcore-utils.a /usr/local/lib/libgwrap-wct.sl /usr/local/lib/libgwrap-glib.
> sl /usr/local/lib/libltdl.sl /opt/mgansser/GNU/gnucash-1.8.1/src/calculation/.libs/libgncmod-calcula
> tion.a /opt/gnome/lib/libgtkhtml.sl /opt/gnome/lib/libbonobo.sl /opt/gnome/lib/libbonobox.sl /opt/gn
> ome/lib/libgal.sl /opt/gnome/lib/libgnomeprint.sl /opt/gnome/lib/libfreetype.sl /opt/gnome/lib/libgl
> ade-gnome.sl /opt/gnome/lib/libgnomecanvaspixbuf.sl /opt/gnome/lib/libgconf-gtk-1.sl /opt/gnome/lib/
> libgconf-1.sl /opt/gnome/lib/liboaf.sl /opt/gnome/lib/libORBitCosNaming.sl /opt/gnome/lib/libORBit.s
> l /opt/gnome/lib/libIIOP.sl /opt/gnome/lib/libORBitutil.sl /opt/gnome/lib/libgdk_pixbuf.sl /usr/loca
> l/lib/libguile.sl /opt/gnome/lib/libglade.sl /opt/gnome/lib/libxml.sl /opt/gnome/lib/libgnomeui.sl /
> opt/gnome/lib/libart_lgpl.sl -lSM -lICE /opt/gnome/lib/libgnome.sl /opt/gnome/lib/libgnomesupport.sl
>  /opt/gnome/lib/libz.sl /opt/gnome/lib/libesd.sl /opt/gnome/lib/libaudiofile.sl -ldb-3 /opt/gnome/li
> b/libgdk_imlib.sl /opt/gnome/lib/libgtk.sl /opt/gnome/lib/libgdk.sl /opt/gnome/lib/libgmodule.sl -lX
> ext -lX11 /opt/gnome/lib/libglib.sl /opt/gnome/lib/libpopt.sl /opt/gnome/lib/libintl.sl /opt/gnome/l
> ib/libiconv.sl -lgcc -lm -Wl,+b -Wl,/opt/mgansser/GNU/gnucash-1.8.1/src/app-file/gnome/.libs:/opt/gn
> ome/lib:/usr/local/lib:/opt/gnucash/lib
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    xaccQueryAddDateMatchTS (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/lib
> gw-engine.a(engine-helpers.o)) (code)
>    xaccQueryAddGUIDMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/libgw
> -engine.a(engine-helpers.o)) (code)
>    xaccQueryAddNumericMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/li
> bgw-engine.a(engine-helpers.o)) (code)
>    xaccQueryAddAccountGUIDMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.lib
> s/libgw-engine.a(engine-helpers.o)) (code)
>    xaccQueryAddKVPMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/libgw-
> engine.a(engine-helpers.o)) (code)
>    xaccQueryAddStringMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/lib
> gw-engine.a(engine-helpers.o)) (code)
>    xaccQueryAddClearedMatch (first referenced in /opt/mgansser/GNU/gnucash-1.8.1/src/engine/.libs/li
> bgw-engine.a(engine-helpers.o)) (code)
> collect2: ld returned 1 exit status
> gmake[4]: *** [test-link-module] Error 1
> gmake[4]: Leaving directory `/opt/mgansser/GNU/gnucash-1.8.1/src/import-export/binary-import/test'
> gmake[3]: *** [install-recursive] Error 1
> gmake[3]: Leaving directory `/opt/mgansser/GNU/gnucash-1.8.1/src/import-export/binary-import'
> gmake[2]: *** [install-recursive] Error 1
> gmake[2]: Leaving directory `/opt/mgansser/GNU/gnucash-1.8.1/src/import-export'
> gmake[1]: *** [install-recursive] Error 1
> gmake[1]: Leaving directory `/opt/mgansser/GNU/gnucash-1.8.1/src'
> gmake: *** [install-recursive] Error 1
> prounix_root:/users/mgansser/GNU/gnucash-1.8.1 #
> 
> Martin
-- 
Matthew Vanecek
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
********************************************************************************
For 93 million miles, there is nothing between the sun and my shadow except me.
I'm always getting in the way of something...



More information about the gnucash-devel mailing list