[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] 2.7 CentOS compilation failure: ATTR_ACTION_PERMISSIONS
From: |
Karl Berry |
Subject: |
Re: [bug-patch] 2.7 CentOS compilation failure: ATTR_ACTION_PERMISSIONS |
Date: |
Fri, 14 Sep 2012 13:55:05 GMT |
Hi Andreas,
is attr/libattr.h on CentOS 5.8 too old to define ATTR_ACTION_PERMISSIONS?
Evidently. It's the current release of CentOS (5). There is not much
in /usr/include/attr/libattr.h (appended).
I tried again with configure --disable-xattr and that went through fine.
So I suppose the thing to do is have configure do that (disable-xattr)
automatically if ATTR_ACTION_PERMISSIONS is not defined?
Which package does your attr/libattr.h belong to (rpm -qf)?
libattr-devel-2.4.32-1.1
(but version numbers don't mean much with RH-derived systems, in my
experience...)
Thanks,
k
--------------------------------------------------
#ifndef __LIBATTR_H
#define __LIBATTR_H
#ifdef __cplusplus
extern "C" {
#endif
struct error_context;
extern int attr_copy_file (const char *, const char *,
int (*) (const char *, struct error_context *),
struct error_context *);
extern int attr_copy_fd (const char *, int, const char *, int,
int (*) (const char *, struct error_context *),
struct error_context *);
/* The default check function used by attr_copy_{fd,file}. */
extern int attr_copy_check_permissions(const char *, struct error_context *);
#ifdef __cplusplus
}
#endif
#endif