zsh-workers
 help / color / mirror / code / Atom feed
* attr module compile failure
@ 2015-08-27 18:58 Mikael Magnusson
  2015-08-28  2:00 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2015-08-27 18:58 UTC (permalink / raw)
  To: zsh workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-28  2:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 18:58 attr module compile failure Mikael Magnusson
2015-08-28  2:00 ` Bart Schaefer

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).