Received: (at submit) by debbugs.gnu.org; 2 Aug 2011 17:59:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 02 13:59:32 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1QoJFa-0006OE-LO for submit <at> debbugs.gnu.org; Tue, 02 Aug 2011 13:59:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <pipping@HIDDEN>) id 1QoIf7-0005Ue-0g for submit <at> debbugs.gnu.org; Tue, 02 Aug 2011 13:21:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pipping@HIDDEN>) id 1QoIed-0006BQ-7F for submit <at> debbugs.gnu.org; Tue, 02 Aug 2011 13:21:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pipping@HIDDEN>) id 1QoIed-0006BK-5l for submit <at> debbugs.gnu.org; Tue, 02 Aug 2011 13:21:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pipping@HIDDEN>) id 1QoIeb-0004eJ-W2 for bug-libtool@HIDDEN; Tue, 02 Aug 2011 13:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pipping@HIDDEN>) id 1QoIea-0006Az-DW for bug-libtool@HIDDEN; Tue, 02 Aug 2011 13:21:17 -0400 Received: from karen.lavabit.com ([72.249.41.33]:38617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pipping@HIDDEN>) id 1QoIea-0006Ar-8u for bug-libtool@HIDDEN; Tue, 02 Aug 2011 13:21:16 -0400 Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id 02C4511BC07 for <bug-libtool@HIDDEN>; Tue, 2 Aug 2011 12:21:15 -0500 (CDT) Received: from localhost (91-65-137-66-dynip.superkabel.de [91.65.137.66]) by lavabit.com with ESMTP id KV2DTQV6VVA0 for <bug-libtool@HIDDEN>; Tue, 02 Aug 2011 12:21:14 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=sbQpF42vKcIU7/SZCXRXmLelocQuyEV3UEaS/UDvqsXPf86S4QdP+uGC2AYsR4H6Lwef0UbV2ya0dvtocUOEDr/Dxgu8XfFQR6QXAE+3u2rPd9EUITUbdKk0qvgZ5+HbzHxCVUTeLjVdstovlUG9NFL3rqaklSGZIU5d6CP6efc=; h=Date:Message-Id:To:Subject:From:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; Date: Tue, 02 Aug 2011 19:17:36 +0200 (CEST) Message-Id: <20110802.191736.2004884101306444825.pipping@HIDDEN> To: bug-libtool@HIDDEN Subject: Random (re)-linking order From: Elias Pipping <pipping@HIDDEN> X-Mailer: Mew version 6.3.51 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 02 Aug 2011 13:59:29 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hello, I have gnutls 2.10.5 installed which provides /usr/lib64/libgnutls.so.26. I'm trying to install gnutls 3.0.0 which will provide /usr/lib64/libgnutls.so.28. To that end, I run % ./configure --prefix=$HOME/tmp \ --without-p11-kit \ --enable-openssl-compatibility % make % make install Note that --enable-openssl-compatibility is actually the default. Once `make` finishes to run, I'll have a libextra/.libs/libgnutls-openssl.so. Calling `readelf -d` on this file will reveal that it was correctly linked against the newly built version of gnutls: 0x0000000000000001 (NEEDED) Shared library: [libgnutls.so.28] Here's how that file was created: libtool: link: gcc -std=gnu99 -shared .libs/gnutls_openssl.o \ .libs/openssl_compat.o -Wl,--whole-archive ../gl/.libs/libgnu.a \ -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath \ -Wl,/home/pipping/gnutls-3.0.0/lib/.libs -Wl,-rpath -Wl,/usr/lib64 \ -Wl,-rpath -Wl,/home/pipping/tmp/lib /usr/lib64/libtasn1.so -lrt \ ../lib/.libs/libgnutls.so -Wl,-soname -Wl,libgnutls-openssl.so.27 \ -o .libs/libgnutls-openssl.so.27.0.0 However, during installation, the following will happen: libtool: relink: gcc -std=gnu99 -shared .libs/gnutls_openssl.o \ .libs/openssl_compat.o -Wl,--whole-archive ../gl/.libs/libgnu.a \ -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath \ -Wl,/home/pipping/tmp/lib -L/usr/lib64 -ltasn1 -lrt \ -L/home/pipping/tmp/lib -lgnutls \ -Wl,-soname -Wl,libgnutls-openssl.so.27 \ -o .libs/libgnutls-openssl.so.27.0.0 Calling `readelf -d` on the installed libgnutls-openssl.so will reveal 0x0000000000000001 (NEEDED) Shared library: [libgnutls.so.26] This should not happen. This is in particular a problem if I set DESTDIR, then removed the old version of gnutls and moved the contents of DESTDIR to '/' as is commonly done. My installation of gnutls would then be broken. Best regards, Elias Pipping
Elias Pipping <pipping@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.owner <at> debbugs.gnu.org, bug-libtool@HIDDEN
:bug#9223
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.