On Tue, Mar 02, 2010 at 10:25:23AM -0800, Garrett Cooper wrote: > On Mar 2, 2010, at 9:35 AM, "Serge E. Hallyn" <[email protected]> wrote: > > > Quoting Garrett Cooper ([email protected]): > >> > >> That would be from me; I do that via autoconf and they probably > >> fubared the headers on Redhat or something... Do you have > > > > Oh, ok. Well I suspect we can ditch the check_simple_capset.c > > altogether if autoconf is (eventually :) doing the detection for > > us. The only point of check_simple_capset.c was to check whether > > libcap is there and whether we should run the real tests. > > > >> libcap-devel installed? > > > > yup: > > > > [r...@oracer4b ltp-dev]# rpm -qa|grep libcap > > libcap-2.10-2.fc10.x86_64 > > libcap-devel-2.10-2.fc10.x86_64 > > > > [r...@oracer4b ltp-dev]# grep CAP_LIB * > > config.log:CAP_LIBS='' > > config.status:S["CAP_LIBS"]="" > > configure:CAP_LIBS' > > configure: CAP_LIBS="-lcap" > > > > so somehow -lcap was not detected by configure? > > Well some of the definitions are there but maybe not all of them. > config.log would help... >
Here is the config.log snapshot, it seems it has some error: ... configure:5543: checking whether CAP_BSET_DROP is declared configure:5574: gcc -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:38: error: 'CAP_BSET_DROP' undeclared (first use in this function) conftest.c:38: error: (Each undeclared identifier is reported only once conftest.c:38: error: for each function it appears in.) configure:5581: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "ltp" | #define PACKAGE_TARNAME "ltp" | #define PACKAGE_VERSION "LTP_VERSION" | #define PACKAGE_STRING "ltp LTP_VERSION" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "ltp" | #define VERSION "LTP_VERSION" | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_IFADDRS_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_LINUX_GENETLINK_H 1 | #define HAVE_LINUX_MEMPOLICY_H 1 | #define HAVE_LINUX_NETLINK_H 1 | #define HAVE_SYS_EPOLL_H 1 | #define HAVE_SYS_INOTIFY_H 1 | #define HAVE_SYS_PRCTL_H 1 | #define HAVE_SYS_CAPABILITY_H 1 | #define HAVE_ATTR_XATTR_H 1 | /* end confdefs.h. */ | #include <sys/capability.h> | | | int | main () | { | #ifndef CAP_BSET_DROP | (void) CAP_BSET_DROP; | #endif | | ; | return 0; 2879,13 Which file will contains this macro definition ? -- Thanks & Regards Rishi LTP Maintainer IBM, LTC, Bangalore Please join IRC #ltp @ irc.freenode.net ------------------------------------------------------------------------------ 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
