GNU bug report logs - #16259
when cross-compiling with LT_INIT([win32-dll]) wrappers are installed instead of real programs

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: Marcin Wojdyr <wojdyr@HIDDEN>; dated Thu, 26 Dec 2013 14:01:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at 16259) by debbugs.gnu.org; 30 Jan 2014 14:45:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 09:45:19 2014
Received: from localhost ([127.0.0.1]:41245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W8srm-0003BO-Jb
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2014 09:45:19 -0500
Received: from mail-ve0-f175.google.com ([209.85.128.175]:42065)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <wojdyr@HIDDEN>) id 1W8srk-00038l-J3
 for 16259 <at> debbugs.gnu.org; Thu, 30 Jan 2014 09:45:17 -0500
Received: by mail-ve0-f175.google.com with SMTP id c14so2170601vea.6
 for <16259 <at> debbugs.gnu.org>; Thu, 30 Jan 2014 06:45:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-type;
 bh=S0dN1Gvanq54U9sHdLKiTX0n5qxK9fmZQjQ6fatGeNE=;
 b=BeVIOd2FtdrFJ88/I7ADlEH15knou4UPfm3NCdVbuWsxDBmA7SS12l6VnIH24qrBVB
 uzoj4d6BMdVC/3lQPPjOqyyoQE7Ex59YV9un2cz3DuiuariymLu3SsVQcgsoL2MG8oND
 7zr9G8MiCLyUfC/gK3B3tosmdKPatD+ywXd1RgzwDQudUoYAf2vrgXJHS63pEec/HIfv
 vzXWotbnrIHfcomW5gi1dOwS3NCRoTKrxg7MR8gv/Nkovletu6b32KYlsSw3RurjBL8j
 A6iWlVmvZxwRILJqJ89BRjESaoU6k+dloY1+dPV0tJvVxd7/AsVVcNJk6NLPHg62pWQ1
 yqFA==
X-Received: by 10.58.100.100 with SMTP id ex4mr12148920veb.2.1391093115875;
 Thu, 30 Jan 2014 06:45:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.221.69.1 with HTTP; Thu, 30 Jan 2014 06:44:55 -0800 (PST)
In-Reply-To: <8B90C1A9-46BC-44E6-9652-60F547714F8E@HIDDEN>
References: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
 <52CC0A5B.2080807@HIDDEN> <52CC2FE1.30602@HIDDEN>
 <CACaHzQX8ghsNKDhc0PLm_oPa3_TUenCC-VX61zXv-f8-G1+88w@HIDDEN>
 <8B90C1A9-46BC-44E6-9652-60F547714F8E@HIDDEN>
From: Marcin Wojdyr <wojdyr@HIDDEN>
Date: Thu, 30 Jan 2014 14:44:55 +0000
Message-ID: <CACaHzQUPOKrM3Gc5y0MCw-wPJijGi2Yf3V2Aqr39=iu-aYxyKA@HIDDEN>
Subject: Re: bug#16259: when cross-compiling with LT_INIT([win32-dll])
 wrappers are installed instead of real programs
To: "Gary V. Vaughan" <gary@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 16259
Cc: 16259 <16259 <at> debbugs.gnu.org>, Peter Rosin <peda@HIDDEN>
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> Perhaps in our shell-normalization preamble in ltmain and libtoolize we
> ought to `export GREP_OPTIONS=` or similar to prevent future issues?  Or
> maybe that's a whole can of worms...

I'd bet that clearing GREP_OPTIONS won't do any harm.
It seems to be the easiest way to fix this issue.
(just my two cents, to not let this issue be forgotten)

Marcin




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

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


Received: (at 16259) by debbugs.gnu.org; 14 Jan 2014 02:36:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 13 21:36:09 2014
Received: from localhost ([127.0.0.1]:49587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W2trN-0002jQ-6l
	for submit <at> debbugs.gnu.org; Mon, 13 Jan 2014 21:36:09 -0500
Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81]:56472
 helo=homiemail-a100.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <gary@HIDDEN>) id 1W2trK-0002jC-6j
 for 16259 <at> debbugs.gnu.org; Mon, 13 Jan 2014 21:36:07 -0500
Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id E6AA031A073;
 Mon, 13 Jan 2014 18:36:04 -0800 (PST)
Received: from kamala.telecom (122-61-107-30.jetstream.xtra.co.nz
 [122.61.107.30]) (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: gary@HIDDEN)
 by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPSA id B78BD31A070;
 Mon, 13 Jan 2014 18:36:02 -0800 (PST)
Content-Type: multipart/signed;
 boundary="Apple-Mail=_819E480E-850F-44DA-BF68-5E1BC0971BA6";
 protocol="application/pgp-signature"; micalg=pgp-sha1
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
Subject: Re: bug#16259: when cross-compiling with LT_INIT([win32-dll])
 wrappers are installed instead of real programs
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <CACaHzQX8ghsNKDhc0PLm_oPa3_TUenCC-VX61zXv-f8-G1+88w@HIDDEN>
Date: Tue, 14 Jan 2014 15:36:01 +1300
Message-Id: <8B90C1A9-46BC-44E6-9652-60F547714F8E@HIDDEN>
References: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
 <52CC0A5B.2080807@HIDDEN> <52CC2FE1.30602@HIDDEN>
 <CACaHzQX8ghsNKDhc0PLm_oPa3_TUenCC-VX61zXv-f8-G1+88w@HIDDEN>
To: Marcin Wojdyr <wojdyr@HIDDEN>
X-Mailer: Apple Mail (2.1827)
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 16259
Cc: 16259 <at> debbugs.gnu.org, Peter Rosin <peda@HIDDEN>
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)


--Apple-Mail=_819E480E-850F-44DA-BF68-5E1BC0971BA6
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On Jan 14, 2014, at 3:07 PM, Marcin Wojdyr <wojdyr@HIDDEN> wrote:
> I've found the reason. In my case the problem was caused by env. variable:
> GREP_OPTIONS='-I'
> (libtool greps for magic string in binary file; I rarely search
> strings in binaries so I have it switched off by default).

Perhaps in our shell-normalization preamble in ltmain and libtoolize we
ought to `export GREP_OPTIONS=` or similar to prevent future issues?  Or
maybe that's a whole can of worms...

Thoughts?

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)

--Apple-Mail=_819E480E-850F-44DA-BF68-5E1BC0971BA6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlLUopEACgkQFRMICSmD1gb4MgCfX3V57uloikTo5SONAm9mERpK
+DgAn0zCekOWW8DqZQIQLz+/QskCJLhy
=J/U1
-----END PGP SIGNATURE-----

--Apple-Mail=_819E480E-850F-44DA-BF68-5E1BC0971BA6--




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

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


Received: (at 16259) by debbugs.gnu.org; 14 Jan 2014 02:08:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 13 21:08:04 2014
Received: from localhost ([127.0.0.1]:49578 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W2tQB-0001ta-SO
	for submit <at> debbugs.gnu.org; Mon, 13 Jan 2014 21:08:04 -0500
Received: from mail-qe0-f47.google.com ([209.85.128.47]:65159)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <wojdyr@HIDDEN>) id 1W2tQA-0001tE-77
 for 16259 <at> debbugs.gnu.org; Mon, 13 Jan 2014 21:08:02 -0500
Received: by mail-qe0-f47.google.com with SMTP id 5so7977051qeb.34
 for <16259 <at> debbugs.gnu.org>; Mon, 13 Jan 2014 18:08:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-type;
 bh=VTG9JnJEw0BZYIyJGj3W9st9VsDRUkQDisoR5nLRcdU=;
 b=Wdg6b5PYBf2XTz1GNQ2z2QYCSF3jw15X713K5Vh3zr/sjdLkm+fXyE5d8Lw8ld6vC9
 0yPUqnxYrXYoLSaLT4SSyRl3iMXMEQMnKtI4HKUcT++rucZ8yUk50I0yxqcIZsME2v7d
 gEIfxyO3Tkm1roEq7tczoI7N7ogIAewRp2qr8v3ERLL/ZG7xYKdiHKPlX3WQg19XM1TK
 Xx75zBxJ+9QkfIkB+EZb9y2/RtNNBdLBCo4jXTsSkRa1vdtsCWsJmMkMv58Zob+iu7Nq
 xrH2IlSpnVXOTGhithXLttSXKtYJjzzPso5UGfG30VztAjAe74s7obCaj2ONdEirXv3e
 Jm8A==
X-Received: by 10.49.3.7 with SMTP id 7mr14131080qey.60.1389665281627; Mon, 13
 Jan 2014 18:08:01 -0800 (PST)
MIME-Version: 1.0
Received: by 10.96.51.74 with HTTP; Mon, 13 Jan 2014 18:07:41 -0800 (PST)
In-Reply-To: <52CC2FE1.30602@HIDDEN>
References: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
 <52CC0A5B.2080807@HIDDEN> <52CC2FE1.30602@HIDDEN>
From: Marcin Wojdyr <wojdyr@HIDDEN>
Date: Tue, 14 Jan 2014 02:07:41 +0000
Message-ID: <CACaHzQX8ghsNKDhc0PLm_oPa3_TUenCC-VX61zXv-f8-G1+88w@HIDDEN>
Subject: Re: bug#16259: when cross-compiling with LT_INIT([win32-dll])
 wrappers are installed instead of real programs
To: Peter Rosin <peda@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 16259
Cc: 16259 <at> debbugs.gnu.org
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

I've found the reason. In my case the problem was caused by env. variable:
GREP_OPTIONS='-I'
(libtool greps for magic string in binary file; I rarely search
strings in binaries so I have it switched off by default).

Thanks for looking into it

Marcin




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

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


Received: (at 16259) by debbugs.gnu.org; 7 Jan 2014 16:48:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 07 11:48:41 2014
Received: from localhost ([127.0.0.1]:41230 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W0ZpY-0008Qu-4f
	for submit <at> debbugs.gnu.org; Tue, 07 Jan 2014 11:48:40 -0500
Received: from mail.lysator.liu.se ([130.236.254.3]:53452)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <peda@HIDDEN>) id 1W0ZpU-0008Qg-TH
 for 16259 <at> debbugs.gnu.org; Tue, 07 Jan 2014 11:48:38 -0500
Received: from mail.lysator.liu.se (localhost [127.0.0.1])
 by mail.lysator.liu.se (Postfix) with ESMTP id 774DF40029;
 Tue,  7 Jan 2014 17:48:35 +0100 (CET)
Received: from [192.168.0.64] (90-227-119-221-no95.business.telia.com
 [90.227.119.221])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mail.lysator.liu.se (Postfix) with ESMTPSA id 1B0E140023;
 Tue,  7 Jan 2014 17:48:35 +0100 (CET)
Message-ID: <52CC2FE1.30602@HIDDEN>
Date: Tue, 07 Jan 2014 17:48:33 +0100
From: Peter Rosin <peda@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: Marcin Wojdyr <wojdyr@HIDDEN>, 16259 <at> debbugs.gnu.org
Subject: Re: bug#16259: when cross-compiling with LT_INIT([win32-dll]) wrappers
 are installed instead of real programs
References: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
 <52CC0A5B.2080807@HIDDEN>
In-Reply-To: <52CC0A5B.2080807@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 16259
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On 2014-01-07 15:08, Peter Rosin wrote:
> On 2013-12-26 15:00, Marcin Wojdyr wrote:
>> Hello,
>> 1.5 years ago I reported this as a bug for automake.
>> Stefano Lattarini just replied that it
>> looks like a libtool bug rather than an Automake one.
>> The details are here:
>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11155
> 
> Hi Marcin!
> 
> I fail to reproduce. What is your $host and $build? Can you provide a
> stripped down example?

I just realized that I didn't cross-compile. Oops. But I still cannot
reproduce (when crossing from Cygwin to MinGW), so the question still
holds: What is your $host and $build?

Cheers,
Peter

$ cat lttest.c
int foo(void)
{
  return 1;
}
$ cat ltexe.c
int foo(void);
int main(void)
{
  foo();
  return 0;
}
$ cat configure.ac
AC_INIT([lttest], [0.1], [bugme@HIDDEN])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AC_PROG_CC
LT_INIT([win32-dll])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
$ cat Makefile.am
AUTOMAKE_OPTIONS = subdir-objects foreign
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = liblttest.la
liblttest_la_SOURCES = lttest.c
liblttest_la_LDFLAGS = -shared -no-undefined
bin_PROGRAMS = ltexe
ltexe_SOURCES = ltexe.c
ltexe_LDADD = liblttest.la
$ mkdir -p build-aux m4
$ autoreconf -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:5: installing 'build-aux/compile'
configure.ac:6: installing 'build-aux/config.guess'
configure.ac:6: installing 'build-aux/config.sub'
configure.ac:4: installing 'build-aux/install-sh'
configure.ac:4: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
$ ./configure --host=i686-pc-mingw32 --prefix=/home/peda/src/junk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-pc-mingw32-strip... i686-pc-mingw32-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
.
. *snip*
.
checking whether to build static libraries... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
$ ./libtool --version
libtool (GNU libtool) 2.4
Written by Gordon Matzigkeit <gord@HIDDEN>, 1996

Copyright (C) 2010 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.
$ make V=0
  CC       lttest.lo
  CCLD     liblttest.la
  CC       ltexe.o
  CCLD     ltexe.exe
$ make install
make[1]: Entering directory '/home/peda/src/junk'
 /usr/bin/mkdir -p '/home/peda/src/junk/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   liblttest.la '/home/peda/src/junk/lib'
libtool: install: /usr/bin/install -c .libs/liblttest.dll.a /home/peda/src/junk/lib/liblttest.dll.a
libtool: install: base_file=`basename liblttest.la`
libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'liblttest.la'i; echo liblttest-0.dll'`
libtool: install:  dldir=/home/peda/src/junk/lib/`dirname ../bin/liblttest-0.dll`
libtool: install:  test -d /home/peda/src/junk/lib/../bin || mkdir -p /home/peda/src/junk/lib/../bin
libtool: install:  /usr/bin/install -c .libs/liblttest-0.dll /home/peda/src/junk/lib/../bin/liblttest-0.dll
libtool: install:  chmod a+x /home/peda/src/junk/lib/../bin/liblttest-0.dll
libtool: install:  if test -n '' && test -n 'i686-pc-mingw32-strip --strip-unneeded'; then eval 'i686-pc-mingw32-strip --strip-unneeded /home/peda/src/junk/lib/../bin/liblttest-0.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/liblttest.lai /home/peda/src/junk/lib/liblttest.la
 /usr/bin/mkdir -p '/home/peda/src/junk/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c ltexe.exe '/home/peda/src/junk/bin'
libtool: install: /usr/bin/install -c .libs/ltexe.exe /home/peda/src/junk/bin/ltexe.exe
make[1]: Nothing to be done for 'install-data-am'.
make[1]: Leaving directory '/home/peda/src/junk'





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

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


Received: (at 16259) by debbugs.gnu.org; 7 Jan 2014 14:08:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 07 09:08:34 2014
Received: from localhost ([127.0.0.1]:40562 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W0XKb-0003us-H5
	for submit <at> debbugs.gnu.org; Tue, 07 Jan 2014 09:08:34 -0500
Received: from mail.lysator.liu.se ([130.236.254.3]:36038)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <peda@HIDDEN>) id 1W0XKY-0003uj-Lb
 for 16259 <at> debbugs.gnu.org; Tue, 07 Jan 2014 09:08:31 -0500
Received: from mail.lysator.liu.se (localhost [127.0.0.1])
 by mail.lysator.liu.se (Postfix) with ESMTP id 6A94540023;
 Tue,  7 Jan 2014 15:08:29 +0100 (CET)
Received: from [192.168.0.64] (90-227-119-221-no95.business.telia.com
 [90.227.119.221])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mail.lysator.liu.se (Postfix) with ESMTPSA id 0246540004;
 Tue,  7 Jan 2014 15:08:28 +0100 (CET)
Message-ID: <52CC0A5B.2080807@HIDDEN>
Date: Tue, 07 Jan 2014 15:08:27 +0100
From: Peter Rosin <peda@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: Marcin Wojdyr <wojdyr@HIDDEN>, 16259 <at> debbugs.gnu.org
Subject: Re: bug#16259: when cross-compiling with LT_INIT([win32-dll]) wrappers
 are installed instead of real programs
References: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
In-Reply-To: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 16259
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On 2013-12-26 15:00, Marcin Wojdyr wrote:
> Hello,
> 1.5 years ago I reported this as a bug for automake.
> Stefano Lattarini just replied that it
> looks like a libtool bug rather than an Automake one.
> The details are here:
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11155

Hi Marcin!

I fail to reproduce. What is your $host and $build? Can you provide a
stripped down example?

Cheers,
Peter

$ uname -a
CYGWIN_NT-6.1-WOW64 PEDA-PC 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin
$ libtool --version
libtool (GNU libtool) 2.4
Written by Gordon Matzigkeit <gord@HIDDEN>, 1996

Copyright (C) 2010 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.
$ cat lttest.c
int foo(void)
{
  return 1;
}
$ cat ltexe.c
int foo(void);
int main(void)
{
  foo();
  return 0;
}
$ libtool --mode=compile gcc -o lttest.lo -c lttest.c
libtool: compile:  gcc -c lttest.c  -DDLL_EXPORT -DPIC -o .libs/lttest.o
libtool: compile:  gcc -c lttest.c -o lttest.o >/dev/null 2>&1
$ libtool --mode=compile gcc -o ltexe.lo -c ltexe.c
libtool: compile:  gcc -c ltexe.c  -DDLL_EXPORT -DPIC -o .libs/ltexe.o
libtool: compile:  gcc -c ltexe.c -o ltexe.o >/dev/null 2>&1
$ libtool --mode=link gcc -o liblttest.la lttest.lo -shared -no-undefined -rpath /home/peda/src/junk/lib
libtool: link: gcc -shared  .libs/lttest.o      -o .libs/cyglttest-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/liblttest.dll.a
libtool: link: ( cd ".libs" && rm -f "liblttest.la" && ln -s "../liblttest.la" "liblttest.la" )
$ libtool --mode=link gcc -o ltexe ltexe.lo ./liblttest.la
libtool: link: gcc -o .libs/ltexe .libs/ltexe.o  ./.libs/liblttest.dll.a  -L/home/peda/src/junk/lib
$ mkdir -p /home/peda/src/junk/lib
$ mkdir -p /home/peda/src/junk/bin
$ libtool --mode=install /usr/bin/install -c liblttest.la /home/peda/src/junk/lib
libtool: install: /usr/bin/install -c .libs/liblttest.dll.a /home/peda/src/junk/lib/liblttest.dll.a
libtool: install: base_file=`basename liblttest.la`
libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'liblttest.la'i; echo cyglttest-0.dll'`
libtool: install:  dldir=/home/peda/src/junk/lib/`dirname ../bin/cyglttest-0.dll`
libtool: install:  test -d /home/peda/src/junk/lib/../bin || mkdir -p /home/peda/src/junk/lib/../bin
libtool: install:  /usr/bin/install -c .libs/cyglttest-0.dll /home/peda/src/junk/lib/../bin/cyglttest-0.dll
libtool: install:  chmod a+x /home/peda/src/junk/lib/../bin/cyglttest-0.dll
libtool: install:  if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /home/peda/src/junk/lib/../bin/cyglttest-0.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/liblttest.lai /home/peda/src/junk/lib/liblttest.la
$ libtool --mode=install /usr/bin/install -c ltexe.exe /home/peda/src/junk/bin
libtool: install: /usr/bin/install -c .libs/ltexe.exe /home/peda/src/junk/bin/ltexe.exe
$ 


Cheers,
Peter





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

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


Received: (at submit) by debbugs.gnu.org; 26 Dec 2013 14:00:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 26 09:00:57 2013
Received: from localhost ([127.0.0.1]:43045 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VwBUc-0003zJ-Jm
	for submit <at> debbugs.gnu.org; Thu, 26 Dec 2013 09:00:56 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42309)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUZ-0003z8-3T
 for submit <at> debbugs.gnu.org; Thu, 26 Dec 2013 09:00:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUX-0005vj-Lw
 for submit <at> debbugs.gnu.org; Thu, 26 Dec 2013 09:00:50 -0500
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,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49519)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUX-0005ve-IU
 for submit <at> debbugs.gnu.org; Thu, 26 Dec 2013 09:00:49 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44026)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUW-0005sz-88
 for bug-libtool@HIDDEN; Thu, 26 Dec 2013 09:00:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUQ-0005uj-2W
 for bug-libtool@HIDDEN; Thu, 26 Dec 2013 09:00:48 -0500
Received: from mail-qe0-x233.google.com ([2607:f8b0:400d:c02::233]:38274)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wojdyr@HIDDEN>) id 1VwBUP-0005ud-Tq
 for bug-libtool@HIDDEN; Thu, 26 Dec 2013 09:00:41 -0500
Received: by mail-qe0-f51.google.com with SMTP id 1so7917372qee.38
 for <bug-libtool@HIDDEN>; Thu, 26 Dec 2013 06:00:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to:content-type;
 bh=+5E2AJcoy5RJeGgnPVHTQoKasWK3Rb7q+jJ3h+K9si4=;
 b=fSbrksKW2fHEhPg70VQohkP221vI3YCTQ/t/J2OZSqIMlU4ZaP9KMgs/QRjqry8hqw
 TPOgqZlJcB9WrDAZr4BASmlGEk7xJY9mPZb6F+j2BcYL1KW7s1FrV1XPAL5cKh77K2cp
 LeuYiyBEMhHnU3JIdnWV+8+LiLTj5qUd7O0Y9lsHdnXOJrwIa2rp6Ye9pWOvScPDkuXO
 BqSVse6Gyb+KubNAgzbefTiCk/AEtjQJwl4EApuHKaU51PEs67M9jZxclUwQqfNDEaxV
 ynlnU1+DYL5uZ/TVxZs2x0/j8MDa3W0sFmI5kJlUyFBdHZNZMGJuAW6/1hJ/4Lyp48Hg
 /Xyw==
X-Received: by 10.224.74.201 with SMTP id v9mr71100306qaj.93.1388066440254;
 Thu, 26 Dec 2013 06:00:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.96.51.74 with HTTP; Thu, 26 Dec 2013 06:00:20 -0800 (PST)
From: Marcin Wojdyr <wojdyr@HIDDEN>
Date: Thu, 26 Dec 2013 14:00:20 +0000
Message-ID: <CACaHzQU-uoYhGzreFLTWu=vUGhx-bK1odRuFk47uA1rT=0cZgg@HIDDEN>
Subject: when cross-compiling with LT_INIT([win32-dll]) wrappers are installed
 instead of real programs
To: bug-libtool@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
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.0 (----)
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: <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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hello,
1.5 years ago I reported this as a bug for automake.
Stefano Lattarini just replied that it
looks like a libtool bug rather than an Automake one.
The details are here:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11155

Marcin




Acknowledgement sent to Marcin Wojdyr <wojdyr@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#16259; 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.