GNU bug report logs - #20364
libtool always outputs "libxml2.la seems to be moved" when making a C++ library

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 Sat, 18 Apr 2015 09:49:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 18 Apr 2015 09:48:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 18 05:48:38 2015
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>
To: bug-libtool@HIDDEN
Subject: libtool always outputs "libxml2.la seems to be moved" when making
 a C++ library
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-Debbugs-Envelope-To: submit
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'
---




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 bug-libtool@HIDDEN:
bug#20364; 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.