From: Paul Eggert <eggert@cs.ucla.edu>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Zack Weinberg <zackw@panix.com>, Gnulib bugs <bug-gnulib@gnu.org>,
40205@debbugs.gnu.org
Subject: bug#40205: 32bit or LTO movemail build fails on macOS
Date: Tue, 24 Mar 2020 19:58:19 -0700 [thread overview]
Message-ID: <547efadc-1a0c-2d47-4b03-5c4cd426f128__10810.901962553$1585105157$gmane$org@cs.ucla.edu> (raw)
In-Reply-To: <wllfnqo35o.wl-mituharu@math.s.chiba-u.ac.jp>
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
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 <https://bugs.gnu.org/40205>.
[-- Attachment #2: getopt-apple.diff --]
[-- Type: text/x-patch, Size: 771 bytes --]
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 <https://bugs.gnu.org/40205>. */
+# 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. */
next prev parent reply other threads:[~2020-03-25 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 3:14 bug#40205: 28.0.50; 32bit or LTO movemail build fails on macOS YAMAMOTO Mitsuharu
2020-03-25 2:58 ` Paul Eggert [this message]
[not found] <547efadc-1a0c-2d47-4b03-5c4cd426f128@cs.ucla.edu>
2020-03-25 4:07 ` bug#40205: " YAMAMOTO Mitsuharu
2020-03-25 20:43 ` Paul Eggert
2020-03-25 13:14 ` Zack Weinberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='547efadc-1a0c-2d47-4b03-5c4cd426f128__10810.901962553$1585105157$gmane$org@cs.ucla.edu' \
--to=eggert@cs.ucla.edu \
--cc=40205@debbugs.gnu.org \
--cc=bug-gnulib@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
--cc=zackw@panix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.