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

Derek Atkins warlord@MIT.EDU
Thu, 24 Aug 2006 09:27:29 -0400


Hi,

I got the following build error on RHEL4/x86.  First, it looks like
struct ubik_client isn't defined (although that's just a warning).
I think this was reported earlier, but I'm reporting it again.

The bigger issue is that KEY_* isn't defined, probably because the
keyring support wasn't fully added until well after 2.6.9?  This
causes the build to actually fail, as opposed to spewing warnings.
Indeed, KEY_POS_* isn't defined ANYWHERE in the kernel headers, so
I think the configure test didn't work properly when it detected
keyring support.

Any suggestions for what I should look for or how to correct this?

-derek

[snip]
  CC [M]  /usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.o
In file included from /usr/src/redhat/BUILD/openafs-1.4.2rc1/src/afs/afsincludes.h:43,
                 from /usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c:26:
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:304: warning: "struct ubik_client" declared inside parameter list
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:304: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:317: warning: "struct ubik_client" declared inside parameter list
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:332: warning: "struct ubik_client" declared inside parameter list
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:347: warning: "struct ubik_client" declared inside parameter list
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/vlserver/vldbint.h:368: warning: "struct ubik_client" declared inside parameter list
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c: In function `setpag':
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c:264: error: `KEY_POS_VIEW' undeclared (first use in this function)
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c:264: error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c:264: error: for each function it appears in.)
/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.c:264: error: `KEY_POS_SEARCH' undeclared (first use in this function)
make[6]: *** [/usr/src/redhat/BUILD/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.9-22.0.1.ELhugemem-SP/osi_groups.o] Error 1
[snip]

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.16017 (%build)

-- 
       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