Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
attr module compile failure
- X-seq: zsh-workers 36302
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: attr module compile failure
- Date: Thu, 27 Aug 2015 20:58:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WeLjLSuc3xop9fEaaAZt7l70eoBifPSfJ0cas2bZTfc=; b=Okw37MzoXwR/37LWbnJnSMEOrK5VM0QQjOmG3Mxcr43E8bxF5/TP2pJSv+MtqRdQEU TGVh7bXCIpLwtFi3kuayjtLmfIUh0puWusF2kJkaKs/HocSxqBrQG8Gm7XVUIsiTPcX/ z/yUmQzcCfRwa9RLuZFA4M/gcof9+UX19kc5zTYXhFyi8goZcCEdOu56sLxeK5a6Zew3 c+jwl+v4lwQOLYpY4kiRNRmjXKJUNIks794J+q2T6Var/vaumfKiMeARYhiyElOt4zg6 fJqTfKZOVXlBN2Egyl37DUJZq71enHQnXM7roSfOkoUeN23J3cj3vCuL2hE9OWE+mIOm ygsA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author