GNU bug report logs - #8726
rpath encoded in binary linking a .la-.so file

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Jan Engelhardt <jengelh@HIDDEN>; dated Tue, 24 May 2011 16:13:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 May 2011 16:12:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 24 12:12:10 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 1QOuDJ-0006o9-1z
	for submit <at> debbugs.gnu.org; Tue, 24 May 2011 12:12:09 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTd-00030K-4C
	for submit <at> debbugs.gnu.org; Tue, 24 May 2011 09:16:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTX-0004Qy-0d
	for submit <at> debbugs.gnu.org; Tue, 24 May 2011 09:16:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40696)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTW-0004Qu-VN
	for submit <at> debbugs.gnu.org; Tue, 24 May 2011 09:16:42 -0400
Received: from eggs.gnu.org ([140.186.70.92]:47784)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTV-0006qE-MQ
	for bug-libtool@HIDDEN; Tue, 24 May 2011 09:16:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTT-0004QU-1e
	for bug-libtool@HIDDEN; Tue, 24 May 2011 09:16:41 -0400
Received: from seven.medozas.de ([188.40.89.202]:34159)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1QOrTS-0004QG-TP
	for bug-libtool@HIDDEN; Tue, 24 May 2011 09:16:39 -0400
Received: by seven.medozas.de (Postfix, from userid 25121)
	id 4AEF421A023A; Tue, 24 May 2011 15:16:36 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by seven.medozas.de (Postfix) with ESMTP id 2AE8621A0217;
	Tue, 24 May 2011 15:16:36 +0200 (CEST)
Date: Tue, 24 May 2011 15:16:36 +0200 (CEST)
From: Jan Engelhardt <jengelh@HIDDEN>
To: bug-libtool@HIDDEN
Subject: rpath encoded in binary linking a .la-.so file
In-Reply-To: <1306242102.24622.40.camel@tablet>
Message-ID: <alpine.LNX.2.01.1105241504140.23757@HIDDEN>
References: <1306233546.24622.19.camel@tablet>
	<alpine.LNX.2.01.1105241419010.15351@HIDDEN>
	<1306242102.24622.40.camel@tablet>
User-Agent: Alpine 2.01 (LNX 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="683461209-2019833658-1306242996=:23757"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 24 May 2011 12:12:08 -0400
Cc: Peter Volkov <pva@HIDDEN>, Jozsef Kadlecsik <kadlec@HIDDEN>
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/pipermail/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: -6.0 (------)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--683461209-2019833658-1306242996=:23757
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Tuesday 2011-05-24 15:01, Peter Volkov wrote via private mail:
>
>>>Final ipset binary is linked with:
>>>/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc
>>>-std=gnu99  -O2 -DNDEBUG -O2 -pipe -march=native -mtune=native -ggdb
>>>-static -Wl,--as-needed,--hash-style=gnu -o ipset ipset.o
>>>[...] ../lib/libipset.la 
>>>libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -DNDEBUG -O2 -pipe
>>>-march=native -mtune=native -ggdb -Wl,--as-needed -Wl,--hash-style=gnu
>>>-o ipset ipset.o [...]  ../lib/.libs/libipset.so -L/lib64 -lmnl
>>>-Wl,-rpath -Wl,/vt/gentoo/work/ipset-6.6/lib/.libs
>>>[and I wonder where the rpath comes from]


I investigated into --disable-static builds, and it looks like a libtool 
bug to me.

A testcase is attached for the libtool devs, and so this goes Cc there.

DESC: If -static is specified at the libtool command line, it ignores 
the fact that it may nevertheless has to link against a .la/.so file 
(e.g. due to ./configure --disable-static or AC_DISABLE_STATIC), and 
thus wrongly encodes an rpath into the binary that I believe it should 
not. What libtool should have done is to create the helper script as it 
would when -static was not specified.
--683461209-2019833658-1306242996=:23757
Content-Type: APPLICATION/octet-stream; name=tc.tar.xz
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.LNX.2.01.1105241516360.23757@HIDDEN>
Content-Description: 
Content-Disposition: attachment; filename=tc.tar.xz

/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Cf/AYxdADoYwd6V4XBV4z1CMml6
2LtbomrfTQChaIN00F9vpMbsvNa3ksM6uPNoITKU/sfrM6DtPqTmGUVCVS3T
3FqmdwfhmdLqb/DIiJrZN/CHYuinkmCh8kU9LxBJbGYD7tZUNzS890mtmBtz
7Zl9FQo4WqO/cp7srbnoEYOAfJ3rOSU8XUTY5iCU1cfEoGfidTSOo9/3xLAa
odOhrVoIsF0k5tIv+N1zWgZFyybZbTcs8itnwXcnbkSotrbQYqb0bN8rmjYL
hejNerGtLCmDk9S5U6Ds9L+x2vXM9539v3ZxH04m67SPKFhCzmFSiAunt8Qx
NlzB/nhiLkDBy/oTJDpLM+OHE8Ed802uBIaLZtXP7+4/sQKEkVuQhmBLvYhd
1ENcE+UIZxDn+hTR2a18pHQafKjFHAVUg6nYNOF0yZMS6ee5UqYKNYb53feT
hdbHKoIr8obzCNgq/9hgCC7a5MovkhHhf2tKez4SKSKeksxBR6UP6dcfTHSg
yVORqvuPzaYYgeZWRxGUT0WVNW+fAADtMKtK9mVw1gABqAOAUAAABaVf8LHE
Z/sCAAAAAARZWg==

--683461209-2019833658-1306242996=:23757--




Acknowledgement sent to Jan Engelhardt <jengelh@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:
bug#8726; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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