[Top][All Lists]

[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 
*** 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,--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 

gcc -shared  .libs/rpathz.o 
-Wl,--no-whole-archive  -Wl,--rpath 
-lc  -Wl,-soname -Wl,librpathz.so.0 -o .libs/librpathz.so.0.0.0
relocation R_X86_64_PC32 against `rpathx_value' can not be used when making a 
shared object; recompile with -fPIC
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

quick links for the lazy:

comments/thoughts/etc... ?

reply via email to

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