From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8465 invoked by alias); 27 Aug 2015 18:58:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36302 Received: (qmail 412 invoked from network); 27 Aug 2015 18:58:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 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== MIME-Version: 1.0 X-Received: by 10.55.48.5 with SMTP id w5mr9021286qkw.94.1440701907190; Thu, 27 Aug 2015 11:58:27 -0700 (PDT) Date: Thu, 27 Aug 2015 20:58:27 +0200 Message-ID: Subject: attr module compile failure From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 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 #include +#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