From: Alan Third <alan@idiocy.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 28571@debbugs.gnu.org
Subject: bug#28571: 25.3; Compile error on macOS Sierra
Date: Sun, 24 Sep 2017 12:06:58 +0100 [thread overview]
Message-ID: <20170924110658.GA30865@breton.holly.idiocy.org> (raw)
In-Reply-To: <CAArVCkR+JroqYZQhi6CZkASAQh6WPGMN51ozuUJQJ-CBt0mY6w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
On Sun, Sep 24, 2017 at 07:49:55AM +0000, Philipp Stephani wrote:
> Alan Third <alan@idiocy.org> schrieb am Sa., 23. Sep. 2017 um 21:31 Uhr:
> >
> > Is there maybe a test in configure that’s incorrectly identifying this
> > utimens.c stuff as OK?
> >
> >
> I do have configure output like this:
>
> checking for futimens... yes
> checking for utimensat... yes
>
> So I think the functions are there, but the compilation shouldn't use them
> since they would make the binary incompatible with old versions of macOS.
I agree. I’ve attached a patch that should sort it.
I’m not 100% sure that DARWIN_OS is the right define to check for, but
it seems more appropriate than any others I can think of.
--
Alan Third
[-- Attachment #2: 0001-Fix-build-on-macOS-bug-28571.patch --]
[-- Type: text/plain, Size: 844 bytes --]
From d77a2e45004f5d6d8496e5fed260774205efe42a Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Sun, 24 Sep 2017 12:01:03 +0100
Subject: [PATCH] Fix build on macOS (bug#28571)
* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT) [DARWIN_OS]:
Undefine.
---
src/conf_post.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/conf_post.h b/src/conf_post.h
index febdb8b8bf..dfdb0aa3eb 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -397,3 +397,11 @@ extern int emacs_setenv_TZ (char const *);
#else
# define UNINIT /* empty */
#endif
+
+/* macOS 10.13 supports futimens and futimesat, older versions don't
+ but can appear as though they do. Disable them entirely to avoid
+ breaking cross-version builds on macOS. */
+#ifdef DARWIN_OS
+# undef HAVE_FUTIMENS
+# undef HAVE_FUTIMESAT
+#endif
--
2.14.1
next prev parent reply other threads:[~2017-09-24 11:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-23 19:08 bug#28571: 25.3; Compile error on macOS Sierra Philipp
2017-09-23 19:31 ` Alan Third
2017-09-24 7:49 ` Philipp Stephani
2017-09-24 11:06 ` Alan Third [this message]
2017-09-24 11:23 ` Philipp Stephani
2017-09-24 12:09 ` Alan Third
2017-09-28 18:07 ` Alan Third
2017-09-29 7:23 ` Eli Zaretskii
2017-09-25 0:29 ` YAMAMOTO Mitsuharu
2017-09-30 19:17 ` Philipp Stephani
2017-10-01 5:51 ` YAMAMOTO Mitsuharu
2017-09-28 20:58 ` mituharu
2017-09-28 21:39 ` Alan Third
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=20170924110658.GA30865@breton.holly.idiocy.org \
--to=alan@idiocy.org \
--cc=28571@debbugs.gnu.org \
--cc=p.stephani2@gmail.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.