GNU bug report logs - #24871
incorrect "cannot install XXX to a directory not ending in YYY"

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: Luke Shumaker <lukeshu@HIDDEN>; dated Fri, 4 Nov 2016 00:48:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 30 Nov 2016 01:06:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 20:06:18 2016
Received: from localhost ([127.0.0.1]:46679 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cBtLl-00079U-Q4
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2016 20:06:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56689)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lukeshu@HIDDEN>) id 1cBtLk-00079I-Lp
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2016 20:06:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1cBtLe-0001DJ-Vp
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2016 20:06:11 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42338)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <lukeshu@HIDDEN>)
 id 1cBtLe-0001DD-Sk
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2016 20:06:10 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47620)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1cBtLd-0003xu-Ew
 for bug-libtool@HIDDEN; Tue, 29 Nov 2016 20:06:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1cBtLa-0001BL-9f
 for bug-libtool@HIDDEN; Tue, 29 Nov 2016 20:06:09 -0500
Received: from nm7-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.100]:52435)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1cBtLa-0001Ak-1m
 for bug-libtool@HIDDEN; Tue, 29 Nov 2016 20:06:06 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048;
 t=1480467962; bh=ZDSQYbtZj4ljjapjM/79QkhX4yhlEIqYblWR4vcYupE=;
 h=Date:From:To:Subject:In-Reply-To:References:From:Subject;
 b=nUDOmK2jVoAcv0JnFytADQYS7okvBMwJ8pD0eD6JgE6TW6LPngQmb6LUxnRrZD9EZMj7ZmziGSnnMEjx1PvfwxBiMwlIy+hk6Uuyh+utnFEmkjYL4TgjwUOE300XzAF8wuD9Rn/NJxM/zYD2R2aJE76h/EsG9pFXvZQ+8gjk76Wn8OZQ2pRSNeCK2M/uwY9TWsnc+0nHGsan78PtwoVwKeO1tOs9BK2lkjO87UAIsp7XnH+s1pWIWUpgvDg4zIQzxXYPCkXaKJDA27ErE405XYZyZuKM1OnxYEEFCy5NfBOU2smB4aZYkVxIKGrckMS6BQmavtxxfmUWl0zSGNgKVQ==
Received: from [98.138.100.113] by nm7.bullet.mail.ne1.yahoo.com with NNFMP;
 30 Nov 2016 01:06:02 -0000
Received: from [98.138.84.43] by tm104.bullet.mail.ne1.yahoo.com with NNFMP;
 30 Nov 2016 01:06:02 -0000
Received: from [127.0.0.1] by smtp111.mail.ne1.yahoo.com with NNFMP;
 30 Nov 2016 01:06:02 -0000
X-Yahoo-Newman-Id: 790266.6545.bm@HIDDEN
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: tYHsSpIVM1lEyTu8NhD7iC4MiPjlCE7N9rYGYyXwtGnfaD1
 cVuf0qguKsf7WaD.DS65pARboh0jmpignwBewxqcKIMZH7ayWSFhGexsLofy
 p49xRSccbCt8ooXHFrmQz.s2tRqB3arnuOuQAPGtObGQK6zJhs4R4sUie4EH
 nqLBsflZGCFFyez72MMhWfcTQkxDxq6sQP3QsH6xtnI6IpnTeg440MrIOhSY
 FviAE_fLGo85_qWm2jsHnCRfozdbgFtEjyhDzmQ4ecAgqvYWTrbtd_GapmfB
 TFdFNfTarrMSkY2jRlOfxxifHuvUaG85Db6jR7JbBTNAJE8ZNyterEASRnUm
 6kEdikyapiZlXTVR8xQqzXpXJHbG_klt3xibFa_hsRUkBvBCShAOZUGa8Q97
 bmHGtYBg1Huyk71cA14WCwJoTK63Q681ModfRp8Z64TYbAQI1ldzU7Agm263
 gqTSQ0q1gdbkl7qxFhOZTIZPzcQv.WCdWT6RNsiOFD1l9jT.VahEo49iSa8X
 fFHAP5Lk4XD.5nmfu56aX1CTeQW.SxdYSVwQy60wq62iu6mFibq2GQLBvhLX S2t1H
X-Yahoo-SMTP: RfMTpXSswBAvHXkAeeQNI5gHzxpnJ2DwpMu4ffnqKdtAFQ--
Date: Tue, 29 Nov 2016 20:06:01 -0500
Message-ID: <8760n5hj46.wl-lukeshu@HIDDEN>
From: Luke Shumaker <lukeshu@HIDDEN>
To: bug-libtool@HIDDEN
Subject: Re: incorrect "cannot install XXX to a directory not ending in YYY"
In-Reply-To: <87h97oqdeq.wl-lukeshu@HIDDEN>
References: <87h97oqdeq.wl-lukeshu@HIDDEN>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1
 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Thu, 03 Nov 2016 20:47:25 -0400,
Luke Shumaker wrote:
> I have not tried using libtool build from git.

I have now verified that this issue is still present when built from
git.

However, I've also figured out that the issue goes away if the
trailing slash is removed from the `-rpath` in the link step.

	-libtool --tag=CC --mode=link cc -o libfail.la -rpath /tmp/lib/ fail.lo libpass.la
	+libtool --tag=CC --mode=link cc -o libfail.la -rpath /tmp/lib fail.lo libpass.la

-- 
Happy hacking,
~ Luke Shumaker




Information forwarded to bug-libtool@HIDDEN:
bug#24871; Package libtool. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 4 Nov 2016 00:47:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 03 20:47:52 2016
Received: from localhost ([127.0.0.1]:42031 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1c2Sfg-0006cL-MH
	for submit <at> debbugs.gnu.org; Thu, 03 Nov 2016 20:47:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44509)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lukeshu@HIDDEN>) id 1c2Sff-0006c7-3j
 for submit <at> debbugs.gnu.org; Thu, 03 Nov 2016 20:47:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1c2SfY-0007u4-EX
 for submit <at> debbugs.gnu.org; Thu, 03 Nov 2016 20:47:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59468)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <lukeshu@HIDDEN>)
 id 1c2SfY-0007ty-B5
 for submit <at> debbugs.gnu.org; Thu, 03 Nov 2016 20:47:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35474)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1c2SfX-0003Qa-59
 for bug-libtool@HIDDEN; Thu, 03 Nov 2016 20:47:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1c2SfT-0007s4-8b
 for bug-libtool@HIDDEN; Thu, 03 Nov 2016 20:47:43 -0400
Received: from nm15-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.70]:56589)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71)
 (envelope-from <lukeshu@HIDDEN>) id 1c2SfT-0007ot-0I
 for bug-libtool@HIDDEN; Thu, 03 Nov 2016 20:47:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048;
 t=1478220553; bh=2IVxGzLMAQEKXte2g4UP5jiRybuC3cSyG+hVBHiNefE=;
 h=Date:From:To:Subject:From:Subject;
 b=iWTN4jmc4DfC/4YuwAloVrRwoF+eIBLUL68L9OAnSr6ZNyoRq8jaGXIon5l5QktvfyyN4J/icbeFbjhRMc08THpEOvpJUStCawIigps4ncQ3LBSt6ES/ILaRfrgea6s9ynwWMpn9rlB3rO5w1Fp4qVVij9n14mwghvLiLLwubRrn4fANNHOAVZXAD/KL5fpynHQNeitf1b2wjtLiu5j/Et8A+9zXWncWj8BTtUrLrsd0ZgJUIK1hSyujiobBzYVv/C2wMI9Twh8kHvZ5fvOasAVBK2RpQkYxP8jSsE99ByAUxUUS24D1VjWlhOGZPEhWSWB6GyFf9ZOrRgExLp8+Yw==
Received: from [98.138.100.118] by nm15.bullet.mail.ne1.yahoo.com with NNFMP;
 04 Nov 2016 00:49:13 -0000
Received: from [98.138.226.62] by tm109.bullet.mail.ne1.yahoo.com with NNFMP;
 04 Nov 2016 00:47:29 -0000
Received: from [127.0.0.1] by smtp213.mail.ne1.yahoo.com with NNFMP;
 04 Nov 2016 00:47:29 -0000
X-Yahoo-Newman-Id: 558637.44847.bm@HIDDEN
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: qbie4cYVM1ltNgIRXRrlkYnSuuR.YSsbDkgb9NK3fmoGeUb
 ZPloWOryJnJ249eiXteFhTgIedWdxTba6zWnZiJv55ozDQOnmnEt_tc4g_Ti
 CFZfh9mKtmCDR25OrFqY2n2V6lcIIUwa3GScXeL_uDwMNjph2sWbxATS9_Yf
 6TnXekOMU04kj4Nq94EICv3E4WQ73ZMQ_9UzrHBoA16RVFQFclwKew3rpElj
 iTmaHyTTibiiZTKcGxE7lu4falCbp9Uq5nz8_Ni5H7hfzHszbeZo7HsmqNHQ
 voALL5RHpuo9qfmgbedEXTvz.ow5gmFh9vrhJ2lQKcuSaj4LjiS41_VC1CHv
 KCjPItcB0CxBoAyDqvDihg8ZfBnC.gSJbciuHwF1Ag722yjKb1A0RcwnAYWE
 8ALw.CbDa2D917BC1BMlswX78hBqbmdIEhxvpQVI3gFqxeexzK_cNVVRc4GQ
 be3HCIu3792bihedBODffO5hWUamfoVoyXaMa5uMShJ9Xm6dTuGLV9ARRW.d
 xAeBY031SKKWWF9fZJrzDIaFmC7qRJSTNHDw_1LNAms.7Ge5aEGgX7hJ.Yg2 ixmfW
X-Yahoo-SMTP: RfMTpXSswBAvHXkAeeQNI5gHzxpnJ2DwpMu4ffnqKdtAFQ--
Date: Thu, 03 Nov 2016 20:47:25 -0400
Message-ID: <87h97oqdeq.wl-lukeshu@HIDDEN>
From: Luke Shumaker <lukeshu@HIDDEN>
To: bug-libtool@HIDDEN
Subject: incorrect "cannot install XXX to a directory not ending in YYY"
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1
 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

I believe I've found a bug in libtool:

	$ libtool --tag=CC --mode=install install -D libfail.la /tmp/lib/libfail.la
	libtool:   error: error: cannot install 'libfail.la' to a directory not ending in /tmp/lib/

When the install directory clearly does end in the required string.

I belive that this is a duplicate of a previous message that was never resolved:
  http://lists.gnu.org/archive/html/bug-libtool/2009-12/msg00001.html

But, unlike the previous message, I have a minimal test case!

	# build the first library
	echo > pass.c
	libtool --tag=CC --mode=compile cc -c -o pass.lo pass.c
	libtool --tag=CC --mode=link    cc -o libpass.la -rpath /tmp/lib/ pass.lo
	
	# build a second library (that will fail to install)
	echo > fail.c
	libtool --tag=CC --mode=compile cc -c -o fail.lo fail.c
	libtool --tag=CC --mode=link    cc -o libfail.la -rpath /tmp/lib/ fail.lo libpass.la
	
	# try to install them
	libtool --tag=CC --mode=install install -D libpass.la /tmp/lib/libpass.la
	libtool --tag=CC --mode=install install -D libfail.la /tmp/lib/libfail.la

libpass will install fine, but libfail will fail to install, with the
error message I posted at the top.

I am using libtool 2.4.5 on an x86_64 GNU/Linux box (Parabola
GNU/Linux-libre; similar to Arch Linux):

	$ pacman -Q libtool
	libtool 2.4.6-6

	$ libtool --version
	libtool (GNU libtool) 2.4.6
	Written by Gordon Matzigkeit, 1996
	
	Copyright (C) 2014 Free Software Foundation, Inc.
	This is free software; see the source for copying conditions.  There is NO
	warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The error occurs both with the system `libtool`, and
`./configure`-generated libtool.

I have not tried using libtool build from git.

-- 
Happy hacking,
~ Luke Shumaker




Acknowledgement sent to Luke Shumaker <lukeshu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#24871; 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: 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.