bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool-1.5.14 static vs shared bug (gettext-0.14.2 fails make check) ?


From: Mike Frysinger
Subject: libtool-1.5.14 static vs shared bug (gettext-0.14.2 fails make check) ?
Date: Sat, 12 Mar 2005 23:17:38 -0500
User-agent: KMail/1.7.2

i was upgrading from gettext-0.14.1 to gettext-0.14.2 when i noticed that 
`make check` started to fail on me when previously it did not.  the new 
gettext-0.14.2 includes libtool-1.5.14 while the old gettext-0.14.1 included 
libtool-1.5 ...

anyways, the tests i'm seeing fail are ones that build three sets of 
libraries, libpath{x,y,z} ... in this test suite, they:
 - build rpathx as shared & static
 - build rpathy as static
 - build rpathz as shared & static
 - link & run a test with rpathz

in gettext-0.14.1 (libtool-1.5), rpathz's make.log has this tidbit:

*** Warning: This system can not link to static lib 
archive 
/home/vapier/gettext-0.14.1/autoconf-lib-link/tests/rp3aaf-prefix/lib/librpathy.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
gcc -shared  .libs/rpathz.o  -Wl,--rpath 
-Wl,/home/vapier/gettext-0.14.1/autoconf-lib-link/tests/rp3aaf-prefix/lib 
-Wl,--rpath -Wl,/home/vapier/gettext-0.14.1/auto
(cd .libs && rm -f librpathz.so.0 && ln -s librpathz.so.0.0.0 librpathz.so.0)
(cd .libs && rm -f librpathz.so && ln -s librpathz.so.0.0.0 librpathz.so)

in gettext-0.14.2 (libtool-1.5.14), rpathz's make.log lacks such a warning and 
in fact tries to link librpathz.so with librpathy.a which obviously fails on 
amd64 (.a is built w/out PIC and .so's cannot be linked with non-PIC 
objects):

gcc -shared  .libs/rpathz.o 
-Wl,--whole-archive 
/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib/librpathy.a
 
-Wl,--no-whole-archive  -Wl,--rpath 
-Wl,/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib 
-Wl,--rpath 
-Wl,/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib 
-L/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib 
/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib/librpathx.so
 
-lc  -Wl,-soname -Wl,librpathz.so.0 -o .libs/librpathz.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld:
 
/home/vapier/gettext-0.14.2/autoconf-lib-link/tests/rp3aaf-prefix/lib/librpathy.a(rpathy.o):
 
relocation R_X86_64_PC32 against `rpathx_value' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld:
 
final link failed: Bad value
collect2: ld returned 1 exit status

build machine info (not that it should too much since gettext has all the 
autotool packages bundled in ...):
Gentoo amd64
libtool-1.5.10
autoconf-2.59
automake-1.9.5

quick links for the lazy:
http://ftp.gnu.org/gnu/gettext/gettext-0.14.1.tar.gz
http://ftp.gnu.org/gnu/gettext/gettext-0.14.2.tar.gz

comments/thoughts/etc... ?
-mike




reply via email to

[Prev in Thread] Current Thread [Next in Thread]