[OpenAFS] compiling 1.2.13 for RHEL 3 amd64/x86_64

Derrick J Brashear shadow@dementia.org
Wed, 8 Dec 2004 13:11:54 -0500 (EST)


On Wed, 8 Dec 2004, Lee Damon wrote:

> gcc  -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
> -fno-common -pipe -mcmodel=kernel -D__KERNEL__ -DKERNEL -D_KERNEL -DMODULE
> -DREDHAT_FIX -I. -I../ -I/tmp/rpmbuild/openafs-1.2.13/src/config -c
> ../afs/osi_groups.c
> ../afs/osi_groups.c:181: syntax error before "old_gid_t"
> ../afs/osi_groups.c:182: syntax error before "old_gid_t"
> ../afs/osi_groups.c: In function `afs32_xsetgroups':
> ../afs/osi_groups.c:194: `gidsetsize' undeclared (first use in this function)
> ../afs/osi_groups.c:194: (Each undeclared identifier is reported only once
> ../afs/osi_groups.c:194: for each function it appears in.)
> ../afs/osi_groups.c:194: `grouplist' undeclared (first use in this function)
[]
> This compile is for the kernel that comes on the rhel-3-U3-x86_64-es CD.  For
> reasons I'd prefer not to go into I need to get a working OpenAFS for the
> 'stock' kernel in this distro, so upgrading to whatever patch release is
> out today isn't an option for me (sad, sad, but resolved as soon as I
> get this working).

The answer would be downgrading. This is fixed in 1.3.x but the original 
x86_64 port was for a much *older* kernel than that.