[OpenAFS-devel] 1.4.2rc1 fails on RHEL4 2.6.9 kernel: missing keyring defines?

Derek Atkins warlord@MIT.EDU
Thu, 24 Aug 2006 11:37:12 -0400


"chas williams - CONTRACTOR" <chas@cmf.nrl.navy.mil> writes:

>>WHICH 2.6.9 rhel kernel?  There are a dozen of them, and I only have
>>one, 2.6.9-5.  I can't test it on all of them, and I don't have the
>>"state 2" kernel (see my previous email) which is causing this particular
>>build issue.
>
> i dont understand how the test passes when you dont have linux/key.h?
> which apparently is the case with 2.6.9-5.  fixing the test for the
> cases you listed in your other mail should fix the problem in
> general.

Maybe I should be more explicit.  I have the kernel HEADERS for all
the RHEL kernels, but I only have the actual KERNEL for 2.6.9-5.  So,
I can BUILD against all the RHEL kernels, but I can only TEST against
2.6.9-5.  As for how the test passes without linux/key.h, it doesn't!
See below:

>>1) no linux/key.h
>>2) linux/key.h but no KEY_POS_*
>>3) linux/key.h with KEY_POS_* 
>>
>>2.6.9-5.EL is (1)
>>2.6.9-22.EL is (2)
>>2.6.9-34.EL is (3)
>>
>>The tests work for 1 and 3, but not 2.

When I compile against the 2.6.9-22 headers the test finds linux/key.h
but it's an unusable keyring interface.  My proposed patch fixes that.
If the keyring interface isn't usable it just completely turns off
keyring support.

> can you get /afs/cmf/users/chas/conftest.dir.tar, unpack it where you
> have the 2.6.9-5.EL kernel sources and run:
>
> 	make -C /where/is/my/bleeding/kernel M=`pwd`/conftest.dir modules

I can't do this for several hours.  I'm running the full build with my
proposed patch at the moment.  I'm not sure what this is going to test
with 2.6.9-5.  It's already known that keyring support does not exist
in 2.6.9-5, and the keyring test already "fails" and turns it off.
The issue was 2.6.9-22 (see above).  But my patch has already been
tested against 2.6.9-22 and it also causes the (patched) test to fail,
turning off keyring support for state #2.  Once my build gets to -34
I'll check and make sure the test was positive (because it looks to me
like the keyring support IS usable in 2.6.9-34).

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available