Received: (at submit) by debbugs.gnu.org; 24 Jun 2013 18:09:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 24 14:09:29 2013 Received: from localhost ([127.0.0.1]:38974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UrBCj-0005ia-EV for submit <at> debbugs.gnu.org; Mon, 24 Jun 2013 14:09:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37096) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <mallet@HIDDEN>) id 1UrB5v-0005OW-RO for submit <at> debbugs.gnu.org; Mon, 24 Jun 2013 14:02:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mallet@HIDDEN>) id 1UrB5m-0008Fv-5v for submit <at> debbugs.gnu.org; Mon, 24 Jun 2013 14:02:22 -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.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mallet@HIDDEN>) id 1UrB5m-0008Fp-3R for submit <at> debbugs.gnu.org; Mon, 24 Jun 2013 14:02:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mallet@HIDDEN>) id 1UrB5h-0000F2-JT for bug-libtool@HIDDEN; Mon, 24 Jun 2013 14:02:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mallet@HIDDEN>) id 1UrB5a-0008B3-S1 for bug-libtool@HIDDEN; Mon, 24 Jun 2013 14:02:13 -0400 Received: from laas.laas.fr ([2001:660:6602:4::2]:15390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mallet@HIDDEN>) id 1UrB5a-00088G-Ho for bug-libtool@HIDDEN; Mon, 24 Jun 2013 14:02:06 -0400 Received: from cricket.laas.fr ([IPv6:2001:660:6602:4:5491:dd4f:c5e3:c790]) by laas.laas.fr (8.14.6/8.14.6) with ESMTP id r5OHaBs0015394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Jun 2013 19:36:12 +0200 (CEST) Received: from cricket.laas.fr (localhost [127.0.0.1]) by cricket.laas.fr (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id r5OHaB1r030331; Mon, 24 Jun 2013 19:36:11 +0200 Received: (from mallet@localhost) by cricket.laas.fr (8.14.4/8.14.4/Submit) id r5OHaBGi030330; Mon, 24 Jun 2013 19:36:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20936.33675.439487.590718@HIDDEN> Date: Mon, 24 Jun 2013 19:36:11 +0200 From: Anthony Mallet <anthony.mallet@HIDDEN> To: bug-libtool@HIDDEN Subject: NetBSD: ld option -l:bar.so and libtool (_LT_CHECK_MAGIC_METHOD is not pass_all) X-Mailer: VM 8.2.0b under 23.3.1 (i686-pc-linux-gnu) Organization: LAAS/CNRS - Toulouse - France X-Scanned-By: MIMEDefang 2.73 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-Mailman-Approved-At: Mon, 24 Jun 2013 14:09:27 -0400 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 (----) Hi, To make a long story short, I want to link a shared library on NetBSD (6.0.1 and -current, on amd64 && i386 for that matter), using gcc-4.5.3, ld-2.21.1 and libtool-2.4.2. % uname -sm NetBSD amd64 % libtool --mode=link gcc -rpath /foo -o libfoo.la -l:bar.so [bla bla] *** Warning: linker path does not have real file for library -l:bar.so. [bla bla] libtool: link: gcc -shared -Wl,-soname -Wl,libfoo.so.0 -o .libs/libfoo.so.0.0.0 [bla bla] libtool is dropping my -l:bar.so because it can't find a file named ':bar.so' (with a leading colon, no matter if bar.so exists or not), but ld supports the special -l:bar.so, so clearly libtool is misbehaving here. I found that the problem resides indirectly in this bit of code in libtool.m4 (summarized): # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies netbsd* | netbsdelf*-gnu) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' I would like to see lt_cv_deplibs_check_method set to "pass_all" here. But I'm not sure if this can raise unexpected side effects or what should be checked exactly in order to know if it is correct to set "pass_all" here. Or maybe would you have another suggestion for fixing the issue? Thanks in advance for any hint, Anthony
Anthony Mallet <anthony.mallet@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#14709
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.