All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rishikesh K Rajak <risrajak@linux.vnet.ibm.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: Rishikesh K Rajak <risrajak@in.ibm.com>,
	"ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>,
	Iranna D Ankad <iranna.ankad@in.ibm.com>
Subject: Re: [LTP] LTP's filecaps test gives false positive results
Date: Wed, 3 Mar 2010 11:26:19 +0530	[thread overview]
Message-ID: <20100303055619.GA19084@linux.vnet.ibm.com> (raw)
In-Reply-To: <5EEDD2C4-6C6C-4008-81AA-65B78FA3E7C8@gmail.com>

On Tue, Mar 02, 2010 at 10:25:23AM -0800, Garrett Cooper wrote:
> On Mar 2, 2010, at 9:35 AM, "Serge E. Hallyn" <serue@us.ibm.com> wrote:
> 
> > Quoting Garrett Cooper (yanegomi@gmail.com):
> >>
> >> 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:
> >
> > [root@oracer4b ltp-dev]# rpm -qa|grep libcap
> > libcap-2.10-2.fc10.x86_64
> > libcap-devel-2.10-2.fc10.x86_64
> >
> > [root@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 "ltp-results@lists.sourceforge.net"
| #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&#174; 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2010-03-03  5:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-02 10:11 [LTP] LTP's filecaps test gives false positive results Iranna D Ankad
2010-03-02 15:21 ` Serge E. Hallyn
2010-03-02 16:25   ` Garrett Cooper
2010-03-02 17:35     ` Serge E. Hallyn
2010-03-02 18:25       ` Garrett Cooper
2010-03-03  5:56         ` Rishikesh K Rajak [this message]
2010-03-03  9:14           ` Garrett Cooper
2010-03-03  9:23             ` Rishikesh K Rajak
2010-03-03 16:00             ` Serge E. Hallyn
2010-03-18  9:25             ` Rishikesh K Rajak
2010-03-18 14:55               ` Serge E. Hallyn
2010-03-18 19:13                 ` Garrett Cooper
2010-03-02 16:39 ` Garrett Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100303055619.GA19084@linux.vnet.ibm.com \
    --to=risrajak@linux.vnet.ibm.com \
    --cc=iranna.ankad@in.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=risrajak@in.ibm.com \
    --cc=yanegomi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.