[OpenAFS] Openafs-1.4.0; Kernel 2.6.9-22.0.1.EL; kernel module compile error

Russ Allbery rra@stanford.edu
Thu, 15 Dec 2005 13:24:29 -0800


Soon Wong <wongste@hotmail.com> writes:

> My environment:

> openafs 1.4.0
> kernel : Linux version 2.6.9-22.0.1.EL (bhcompile@sizzler.build.redhat.com) 
> (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Tue Oct 18 18:35:10 
> EDT 2005

> gcc: cc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

> configure produces this error:
> configure: In function `main':
> configure:4060: error: structure has no member named `rlim'
> configure: failed program was:
> #line 4056 "configure"
> #include "confdefs.h"
> #include <linux/sched.h>
> int main() {
> struct task_struct _tsk;
> printf("%d\n", _tsk.signal->rlim);
> ; return 0; }

Hm, you're *sure* that's the version of gcc you're using?  This problem
usually occurs when you're using a different version of gcc than was used
to build the kernel that you're compiling against.

Something else that sometimes helps is to blow away the kernel tree and
recreate it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>