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

Soon Wong wongste@hotmail.com
Thu, 15 Dec 2005 16:50:09 -0500


Hi Russ,

cc --version gives:
[root@ppstest13 openafs-1.4.0]# cc --version
cc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Do you mean blow away my kernel header files? (i.e. 
/usr/src/kernels/2.6.9-22.0.1.EL-ppc64)

I've already blown away and recreated my openafs directory multiple times.  
(Saw your note on the debian list).

regads,
Soon Wong

----Original Message Follows----
From: Russ Allbery <rra@stanford.edu>
To: "Soon Wong" <wongste@hotmail.com>
CC: openafs-info@openafs.org
Subject: Re: [OpenAFS] Openafs-1.4.0; Kernel  2.6.9-22.0.1.EL; kernel module 
compile error
Date: 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/>

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/