Received: (at submit) by debbugs.gnu.org; 24 Nov 2013 21:44:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 24 16:44:06 2013 Received: from localhost ([127.0.0.1]:42766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VkhTK-0004G2-E7 for submit <at> debbugs.gnu.org; Sun, 24 Nov 2013 16:44:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53447) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <tomga@HIDDEN>) id 1VkhTI-0004FQ-35 for submit <at> debbugs.gnu.org; Sun, 24 Nov 2013 16:44:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tomga@HIDDEN>) id 1VkhT6-00060m-5p for submit <at> debbugs.gnu.org; Sun, 24 Nov 2013 16:43:58 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <tomga@HIDDEN>) id 1VkhT6-00060g-3I for submit <at> debbugs.gnu.org; Sun, 24 Nov 2013 16:43:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <tomga@HIDDEN>) id 1VkhT0-0006Mg-2h for bug-libtool@HIDDEN; Sun, 24 Nov 2013 16:43:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tomga@HIDDEN>) id 1VkhSt-0005ga-OG for bug-libtool@HIDDEN; Sun, 24 Nov 2013 16:43:45 -0500 Received: from mx3.wp.pl ([212.77.101.7]:13634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <tomga@HIDDEN>) id 1VkhSt-0005gR-Dt for bug-libtool@HIDDEN; Sun, 24 Nov 2013 16:43:39 -0500 Received: (wp-smtpd smtp.wp.pl 10228 invoked from network); 24 Nov 2013 22:43:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1385329417; bh=TVahZ/KcOfJLB71N5rMxPP+JyquAAyydEUid+AzcfO4=; h=From:To:Subject; b=iuktaT6IGyA/lCcuyklp8LhwfXq0ybvOrb4r4t3NyWiBZPDkXBsOX5OzujTfeBT/s jLcjA2sHEVu2XOipAgK3hfSTX2+ZncMIuaymuK0s6Xw5mhXGYoZA9Nby44o92Vd2wA wijdm7ksQlyrkKJ6xpqSa3cIF+tBYeHKKuhrXpH8= Received: from unknown (HELO vitiris) (tomga@[217.153.177.152]) (envelope-sender <tomga@HIDDEN>) by smtp.wp.pl (WP-SMTPD) with AES128-SHA encrypted SMTP for <bug-libtool@HIDDEN>; 24 Nov 2013 22:43:36 +0100 From: Tomasz Gajewski <tomga@HIDDEN> To: bug-libtool@HIDDEN Subject: Wrong default value of OBJDUMP causes hard to diagnose problems during cross compilation for mingw Date: Sun, 24 Nov 2013 22:43:35 +0100 Message-ID: <87a9gtfpbs.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [4eMk] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: <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.1 (----) I have tried to compile on linux a project (in this case freetds but some time ago had same problem with some other which I can't remember right now) targetting mingw with shared libraries enabled. During build libtool generated a following message and refused to build dlls. *** Warning: linker path does not have real file for library -lodbccp32. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libodbccp32 and none of the candidates passed a file format test *** using a file magic. Last file checked: <path>/libodbccp32.a Message is quite nice but it has a problem, that libodbccp32.a is a proper import archive but libtool is not correctly detecting this fact. I have spent few hours (previously) to find out that libtool checks that this file is an archive library and then tries to check if objects in this archive are objects being parts of import libraries. This second check was performed using OBJDUMP which by default is objdump which in case of cross compilation does not recognize such import libraries properly. Passing OBJDUMP=i686-pc-mingw32-objdump option to configure allowed to bypass this problem, but I think that it should be addressed in libtool itself somehow. The best solution, at least from my perspective as a user, would be to change libtool to properly select proper objdump utility in case of cross compilation, because libtool itself needs this utility to work properly for internal operation. If that first solution cannot be done because of some technical problem a message should be changed at least to contain information that when targetting mingw platform proper 'objdump' utility must be passed to make this test work reliably. Regards Tomasz Gajewski
Tomasz Gajewski <tomga@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#15968
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.