GNU logs - #9223, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9223: Random (re)-linking order
Resent-From: Elias Pipping <pipping@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Tue, 02 Aug 2011 18:00:02 +0000
Resent-Message-ID: <handler.9223.B.131230797224570 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9223
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 9223 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.131230797224570
          (code B ref -1); Tue, 02 Aug 2011 18:00:02 +0000
Received: (at submit) by debbugs.gnu.org; 2 Aug 2011 17:59:32 +0000
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>
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-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





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Elias Pipping <pipping@HIDDEN>
Subject: bug#9223: Acknowledgement (Random (re)-linking order)
Message-ID: <handler.9223.B.131230797224570.ack <at> debbugs.gnu.org>
References: <20110802.191736.2004884101306444825.pipping@HIDDEN>
X-Gnu-PR-Message: ack 9223
X-Gnu-PR-Package: libtool
Reply-To: 9223 <at> debbugs.gnu.org
Date: Tue, 02 Aug 2011 18:00:03 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-libtool@HIDDEN

If you wish to submit further information on this problem, please
send it to 9223 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9223: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9223
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.