Quoting Mitani ([email protected]): > Hi, > > > I tired to upgrade "libcap" from "libcap-1.0-20" to "libcap-2.11". > My system is RHEL4.8 (x86) and kernel version is 2.6.9-89.ELsmp.
Oh, I'm sorry, I misunderstood from the first. I thought you wanted to test a modern kernel on an older distro. So the real problem in your original email wasn't that cap_bounds_r.c wouldn't compile, but that it tried to compile. Maybe the attached ltp patch will do a better job of not trying to compile. Though I'm not sure what is the best way to detect both 64-bit caps in kernel and libcap2 userspace. -serge Date: Mon, 5 Apr 2010 08:17:46 -0500 Subject: [PATCH ltp] don't compile cap_bounds on older systems Only define HAVE_LIBCAP for libcap2 and 64-bit caps. Signed-off-by: Serge Hallyn <[email protected]> --- m4/ltp-cap.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/m4/ltp-cap.m4 b/m4/ltp-cap.m4 index caa436f..6248ff3 100644 --- a/m4/ltp-cap.m4 +++ b/m4/ltp-cap.m4 @@ -27,7 +27,7 @@ AH_TEMPLATE(HAVE_LIBCAP, [Define to 1 if you have libcap-2 installed.]) AC_CHECK_HEADERS(sys/capability.h,[ LTP_CAPABILITY_SUPPORT=yes - AC_CHECK_LIB(cap,cap_compare,[AC_DEFINE(HAVE_LIBCAP) CAP_LIBS="-lcap"], [CAP_LIBS=""]) + AC_CHECK_DECL(VFS_CAP_REVISION_2,[AC_DEFINE(HAVE_LIBCAP) CAP_LIBS="-lcap"],[CAP_LIBS=""],[#include "linux/capability.h"]) AC_CHECK_PROG(HAVE_SETCAP,setcap,setcap,false) ])] AC_SUBST(CAP_LIBS) -- 1.6.3.3 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
