GNU logs - #20364, boring messages


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20364: libtool always outputs "libxml2.la seems to be moved" when making a C++ library
Resent-From: Jan Engelhardt <jengelh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 18 Apr 2015 09:49:01 +0000
Resent-Message-ID: <handler.20364.B.142935051819076 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 20364
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 20364 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.142935051819076
          (code B ref -1); Sat, 18 Apr 2015 09:49:01 +0000
Received: (at submit) by debbugs.gnu.org; 18 Apr 2015 09:48:38 +0000
Received: from localhost ([127.0.0.1]:59589 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YjPMb-0004xb-7C
	for submit <at> debbugs.gnu.org; Sat, 18 Apr 2015 05:48:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41521)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jengelh@HIDDEN>) id 1YjPMY-0004xN-DT
 for submit <at> debbugs.gnu.org; Sat, 18 Apr 2015 05:48:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jengelh@HIDDEN>) id 1YjPMM-0006sL-NC
 for submit <at> debbugs.gnu.org; Sat, 18 Apr 2015 05:48:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45278)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jengelh@HIDDEN>) id 1YjPMM-0006s5-Gf
 for submit <at> debbugs.gnu.org; Sat, 18 Apr 2015 05:48:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54984)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jengelh@HIDDEN>) id 1YjPMH-0001Gb-CP
 for bug-libtool@HIDDEN; Sat, 18 Apr 2015 05:48:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jengelh@HIDDEN>) id 1YjPME-0006qx-6o
 for bug-libtool@HIDDEN; Sat, 18 Apr 2015 05:48:17 -0400
Received: from ares41.inai.de ([46.4.122.207]:41446)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jengelh@HIDDEN>) id 1YjPME-0006qm-0Q
 for bug-libtool@HIDDEN; Sat, 18 Apr 2015 05:48:14 -0400
Received: by ares41.inai.de (Postfix, from userid 25121)
 id 8DBB17D73B9D; Sat, 18 Apr 2015 11:48:10 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by ares41.inai.de (Postfix) with ESMTP id 78D9D82A9712
 for <bug-libtool@HIDDEN>; Sat, 18 Apr 2015 11:48:10 +0200 (CEST)
Date: Sat, 18 Apr 2015 11:48:10 +0200 (CEST)
From: Jan Engelhardt <jengelh@HIDDEN>
Message-ID: <alpine.LSU.2.20.1504181142220.13763@HIDDEN>
User-Agent: Alpine 2.20 (LSU 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -4.1 (----)


Observed in libtool-2.4.2:

libtool warns about moved paths, yet, libtool was the one that added
the compiler-specific
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64 into the
command line in the first place.

/bin/sh ./libtool  --tag=CXX   --mode=link g++  -g -O2   -o libx.la -rpath /usr/local/lib x.lo -lxml2 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/4.8/crtbeginS.o  .libs/x.o   -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 /usr/lib64/libxml2.so -ldl -lz -llzma -L/usr/lib64/gcc/x86_64-suse-linux/4.8 -L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.8/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-suse-linux/4.8/crtendS.o /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crtn.o  -O2   -Wl,-soname -Wl,libx.so.0 -o .libs/libx.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libx.so.0" && ln -s "libx.so.0.0.0" "libx.so.0")
libtool: link: (cd ".libs" && rm -f "libx.so" && ln -s "libx.so.0.0.0" "libx.so")
libtool: link: ( cd ".libs" && rm -f "libx.la" && ln -s "../libx.la" "libx.la" )
/bin/sh ./libtool  --tag=CXX   --mode=link g++  -g -O2   -o liby.la -rpath /usr/local/lib x.lo libx.la 
libtool: link: warning: `/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libxml2.la' seems to be moved


What was expected instead:
Perhaps not use -nostdlib -L/usr/lib64/... and just let CXXLD do that itself
internally.


--- configure.ac
AC_INIT([f],[0])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
AC_PROG_CXX
AC_OUTPUT([Makefile])
---

--- Makefile.am
lib_LTLIBRARIES = libx.la liby.la
libx_la_SOURCES = x.cpp
libx_la_LIBADD = -lxml2
liby_la_SOURCES = x.cpp
liby_la_LIBADD = libx.la
---

--- x.cpp
// empty
---

--- /usr/lib64/libxml2.la
# libxml2.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libxml2.so.2'

# Names of this library.
library_names='libxml2.so.2.9.1 libxml2.so.2 libxml2.so'

# The name of the static archive.
old_library=''

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' -ldl -lz -llzma -lm'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libxml2.
current=11
age=9
revision=1

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib64'
---




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jan Engelhardt <jengelh@HIDDEN>
Subject: bug#20364: Acknowledgement (libtool always outputs "libxml2.la
 seems to be moved" when making a C++ library)
Message-ID: <handler.20364.B.142935051819076.ack <at> debbugs.gnu.org>
References: <alpine.LSU.2.20.1504181142220.13763@HIDDEN>
X-Gnu-PR-Message: ack 20364
X-Gnu-PR-Package: libtool
Reply-To: 20364 <at> debbugs.gnu.org
Date: Sat, 18 Apr 2015 09:49:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

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 20364 <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
20364: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20364
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.