From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: attr module compile failure
Date: Thu, 27 Aug 2015 20:58:27 +0200 [thread overview]
Message-ID: <CAHYJk3QAm1d7zdQC7rA5eHfAJg1VJUtzCy_LqzFRCACODOcSxA@mail.gmail.com> (raw)
I recently upgraded libcap to 2.24 from 2.22 and this inexplicable
error started happening,
In file included from /usr/include/sys/capability.h:30:0,
from ../../Src/zsh_system.h:514,
from ../../Src/zsh.mdh:17,
from attr.mdh:17,
from attr.c:30:
/usr/include/sys/xattr.h:31:3: error: expected identifier before
numeric constant
XATTR_CREATE = 1, /* set value, fail if attr already exists. */
^
make[3]: *** [attr..o] Error 1
Fortunately, this random code permutation makes the error go away.
diff --git i/Src/Modules/attr.c w/Src/Modules/attr.c
index 78c1104..f4bd049 100644
--- i/Src/Modules/attr.c
+++ w/Src/Modules/attr.c
@@ -27,12 +27,12 @@
*
*/
-#include "attr.mdh"
-#include "attr.pro"
-
#include <sys/types.h>
#include <sys/xattr.h>
+#include "attr.mdh"
+#include "attr.pro"
+
static ssize_t
xgetxattr(const char *path, const char *name, void *value, size_t
size, int symlink)
{
If anyone has any educated guesses about what's going on here, I'm interested.
--
Mikael Magnusson
next reply other threads:[~2015-08-27 18:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 18:58 Mikael Magnusson [this message]
2015-08-28 2:00 ` Bart Schaefer
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=CAHYJk3QAm1d7zdQC7rA5eHfAJg1VJUtzCy_LqzFRCACODOcSxA@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/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 public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).