[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Libtool executable wrapper bug
From: |
Bob Friesenhahn |
Subject: |
Libtool executable wrapper bug |
Date: |
Sun, 3 Jan 2010 14:38:16 -0600 (CST) |
User-agent: |
Alpine 2.01 (GSO 1266 2009-07-14) |
Under Solaris 10, and using libtool 2.2.6b, I have encountered a
strange libtool uninstalled executable bug in which if I add
-no-undefined -export-symbols-regex ".*"
to the C++ library flags (la_LDFLAGS), then programs depending on that
library will only execute if they are executed with current directory
set to the top of the build tree. It seems that recorded library
dependencies include the full relative path from the top of the build
tree.
For example, this path will cause the program to successfully execute
Magick++/tests/coalesceImages
but this does not
cd Magick++/tests
./coalesceImages
due to this strange result
% ./coalesceImages
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: Magick++/lib/.libs/libGraphicsMagick++.so: open
failed: No such file or directory
ld.so.1: coalesceImages: fatal: relocation error: file
/scratch/bfriesen/build/GraphicsMagick-16-moby/Magick++/tests/.libs/coalesceImages:
symbol _ZTIN6Magick9ExceptionE: referenced symbol not found
zsh: killed ./coalesceImages
% ldd .libs/coalesceImages
Magick++/lib/.libs/libGraphicsMagick++.so => (file not found)
libGraphicsMagick.so.3 => (file not found)
liblcms.so.1 => /usr/local/lib/liblcms.so.1
libtiff.so.5 => /usr/local/lib/libtiff.so.5
/usr/local/lib/libjbig.so
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
libjasper.so.1 => /usr/local/lib/libjasper.so.1
libjpeg.so.7 => /usr/local/lib/libjpeg.so.7
libpng12.so.0 => /usr/local/lib/libpng12.so.0
libwmflite-0.2.so.7 => /usr/local/lib/libwmflite-0.2.so.7
libdpstk.so.5 => /usr/openwin/lib/libdpstk.so.5
libdps.so.5 => /usr/openwin/lib/libdps.so.5
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libbz2.so.1 => /usr/lib/libbz2.so.1
libxml2.so.2 => /usr/lib/libxml2.so.2
libz.so.1 => /usr/lib/libz.so.1
libpthread.so.1 => /lib/libpthread.so.1
libltdl.so.7 => /usr/local/lib/libltdl.so.7
libstdc++.so.6 => /usr/local/lib/libstdc++.so.6
libgomp.so.1 => /usr/local/lib/libgomp.so.1
librt.so.1 => /lib/librt.so.1
libm.so.2 => /lib/libm.so.2
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libXt.so.4 => /usr/openwin/lib/libXt.so.4
libdl.so.1 => /lib/libdl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libaio.so.1 => /lib/libaio.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
Ideas?
Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
- Libtool executable wrapper bug,
Bob Friesenhahn <=