From: "Mitani" <mitani@ryobi.co.jp>
To: "'Serge E. Hallyn'" <serue@us.ibm.com>,
Rishikesh K Rajak <risrajak@linux.vnet.ibm.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] cap_bounds_r.c build failure
Date: Fri, 2 Apr 2010 11:20:59 +0900 [thread overview]
Message-ID: <000301cad20b$2269c230$673d4690$@co.jp> (raw)
In-Reply-To: <20100401152647.GH22648@us.ibm.com>
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.
I downloaded "libcap-2.11.tar.gz" from following URL :
ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2
I extended it, and I confirmed that there are ".../libcap/include/
linux/capability.h" and ".../libcap/include/sys/capability.h" .
".../libcap/include/linux/capability.h" has "CAP_LAST_CAP" definition.
I did "make" and "make install".
But "/usr/include/linux/capability.h" was not changed.
the "README" of "libcap-2.11" shows follows:
------------
# INSTALLATION
Linux-Caps % make
builds the library and the programs
Linux-Caps % make install
installs the library libcap.XX.Y in /lib/
the binaries in /sbin/
the <sys/capability.h> file in /usr/include
------------
It doesn't mention about "/usr/include/linux/capability.h" .
In fact, "/usr/include/sys/capability.h" was replaced, but
"/usr/include/linux/capability.h" was not.
I checked where <linux/capability.h> came from, and knew that
"/usr/include/linux/capability.h" is from "glibc-kernheaders" :
------------
[root@RHEL4-8 cap_bound]# rpm -qf /usr/include/linux/capability.h
glibc-kernheaders-2.4-9.1.103.EL
[root@RHEL4-8 cap_bound]#
------------
There are two ways to upgrade "/usr/include/linux/capability.h" in
RHEL system, I think.
1) Upgrade "glibc-kernheaders".
2) Replace manually "/usr/include/sys/capability.h" with
"linux/capability.h" of "libcap-2.11".
1) "glibc-kernheaders" is referenced from many modules of kernel.
If I want to upgrade "glibc-kernheaders", kernel upgrade is needed,
I think.
It deviates from an original purpose (I want to test RHEL4.8 system).
2) Manually replace is not an original way and it is dangerous.
First of all, I replaced manually "/usr/include/linux/capability.h" .
And I succeeded to build "cap_bounds_r.c" and "cap_bounds_r.c".
But upgrading "libcap" in RHEL system still includes the above
problems, I think
------
After this, another build failed.
But it is different from above problems, I think.
Therfore, I will report it another thread.
Regards--
-Tomonori Mitani
> -----Original Message-----
> From: Serge E. Hallyn [mailto:serue@us.ibm.com]
> Sent: Friday, April 02, 2010 12:27 AM
> To: Mitani
> Cc: 'Rishikesh K Rajak'; ltp-list@lists.sourceforge.net
> Subject: Re: [LTP] cap_bounds_r.c build failure
>
> Quoting Mitani (mitani@ryobi.co.jp):
> > Hi Rishi,
> >
> > I installed "libcap-devel", but after configure, build failed, too.
> >
> > ------------
> > [root@RHEL4-8 mitani]# rpm -qa | grep libcap
> > libcap-devel-1.10-20
> > libcap-1.10-20
> > [root@RHEL4-8 mitani]#
> > ------------
> >
> > "libcap-1.10-20" version is normal version in my system (RHEL4.8
> > 2.6.9-89.ELsmp).
> > In this version, capability.h doesn't have CAP_LAST_CAP definition.
> > I try to upgrade version "2.11".
>
> Yeah, you need libcap2 for these tests. I guess we could stand
> to add a rule to m4/ltp-cap.m4 to check for the existance of
> libcap.so.2.X, X > oh say 12.
>
> -serge
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2010-04-02 2:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 8:13 [LTP] cap_bounds_r.c build failure Mitani
2010-04-01 8:35 ` Rishikesh K Rajak
2010-04-01 9:23 ` Mitani
2010-04-01 9:35 ` Rishikesh K Rajak
2010-04-01 11:24 ` Mitani
2010-04-01 15:26 ` Serge E. Hallyn
2010-04-02 2:20 ` Mitani [this message]
2010-04-05 13:20 ` Serge E. Hallyn
2010-04-09 7:49 ` Mitani
2010-04-16 18: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='000301cad20b$2269c230$673d4690$@co.jp' \
--to=mitani@ryobi.co.jp \
--cc=ltp-list@lists.sourceforge.net \
--cc=risrajak@linux.vnet.ibm.com \
--cc=serue@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox