From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#40205: 32bit or LTO movemail build fails on macOS Date: Tue, 24 Mar 2020 19:58:19 -0700 Organization: UCLA Computer Science Department Message-ID: <547efadc-1a0c-2d47-4b03-5c4cd426f128__10810.901962553$1585105157$gmane$org@cs.ucla.edu> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------A26BA70D591678B9F817A20E" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="79433"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: Zack Weinberg , Gnulib bugs , 40205@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 25 03:59:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGwG9-000KYq-1V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Mar 2020 03:59:13 +0100 Original-Received: from localhost ([::1]:58492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGwG8-0000qZ-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Mar 2020 22:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45350) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGwFz-0000qT-Dg for bug-gnu-emacs@gnu.org; Tue, 24 Mar 2020 22:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGwFy-0004ek-8p for bug-gnu-emacs@gnu.org; Tue, 24 Mar 2020 22:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGwFy-0004ea-5h for bug-gnu-emacs@gnu.org; Tue, 24 Mar 2020 22:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGwFy-0008FS-4l for bug-gnu-emacs@gnu.org; Tue, 24 Mar 2020 22:59:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2020 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40205 X-GNU-PR-Package: emacs Original-Received: via spool by 40205-submit@debbugs.gnu.org id=B40205.158510511031647 (code B ref 40205); Wed, 25 Mar 2020 02:59:02 +0000 Original-Received: (at 40205) by debbugs.gnu.org; 25 Mar 2020 02:58:30 +0000 Original-Received: from localhost ([127.0.0.1]:55822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGwFS-0008EM-0J for submit@debbugs.gnu.org; Tue, 24 Mar 2020 22:58:30 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGwFP-0008E9-0j for 40205@debbugs.gnu.org; Tue, 24 Mar 2020 22:58:27 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 448B416008E; Tue, 24 Mar 2020 19:58:21 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Z0DWsq7wMVIs; Tue, 24 Mar 2020 19:58:20 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5AB031600C7; Tue, 24 Mar 2020 19:58:20 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hYX2U3Uxaj5H; Tue, 24 Mar 2020 19:58:20 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2B39C16008E; Tue, 24 Mar 2020 19:58:20 -0700 (PDT) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177697 Archived-At: This is a multi-part message in MIME format. --------------A26BA70D591678B9F817A20E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the bug report. Does the attached patch to getopt-pfx-core.h fix the bug for you? I'll CC: this to bug-gnulib and to Zack Weinberg, who wrote that file. For those new to this thread, please see . --------------A26BA70D591678B9F817A20E Content-Type: text/x-patch; charset=UTF-8; name="getopt-apple.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="getopt-apple.diff" diff --git a/lib/getopt-pfx-core.h b/lib/getopt-pfx-core.h index 31a747d67..a4891bc80 100644 --- a/lib/getopt-pfx-core.h +++ b/lib/getopt-pfx-core.h @@ -48,6 +48,14 @@ # define optind __GETOPT_ID (optind) # define optopt __GETOPT_ID (optopt) +/* Work around a a problem on macOS, which declares getopt with a + trailing __DARWIN_ALIAS(getopt) that would expand to something like + __asm("_" "rpl_getopt" "$UNIX2003") were it not for the following + hack to suppress the macOS declaration . */ +# ifdef __APPLE__ +# define _GETOPT +# endif + /* The system's getopt.h may have already included getopt-core.h to declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that getopt-core.h declares them with prefixes. */ --------------A26BA70D591678B9F817A20E--