[OpenAFS] Problem building openafs on kernel 2.6.18.2-34-default

Gianluca Cerminara gianluca.cerminara@cern.ch
Wed, 03 Jan 2007 16:38:48 +0100


Sorry...I have been offline for a while.

Here it is the section of the config.log regarding rlim:

configure:11102: checking for rlim in struct task_struct
configure:11133: make -C $LINUX_KERNEL_PATH M=`pwd`/conftest.dir modules
> /dev/null
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:
In function 'conftest':
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:7:
error: 'struct task_struct' has no member named 'rlim'
make[1]: ***
[/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.o]
Error 1
make: ***
[_module_/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir]
Error 2
configure:11136: $? = 2
configure:11211: result: no
configure:11214: checking for signal->rlim in struct task_struct
configure:11245: make -C $LINUX_KERNEL_PATH M=`pwd`/conftest.dir modules
> /dev/null
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:
In function 'conftest':
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:7:
warning: format '%d' expects type 'int', but argument 2 has type 'struct
rlimit *'
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:7:
warning: '_tsk.signal' is used uninitialized in this function
/bin/sh: scripts/mod/modpost: No such file or directory
make[1]: *** [__modpost] Error 127
make: *** [modules] Error 2
configure:11248: $? = 2
configure:11323: result: no
configure:11326: checking for exit_state in struct task_struct
configure:11357: make -C $LINUX_KERNEL_PATH M=`pwd`/conftest.dir modules
> /dev/null
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:
In function 'conftest':
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:7:
warning: format '%d' expects type 'int', but argument 2 has type 'long int'
/home/cerminar/io/installazione/openafs-1.5.12/conftest.dir/conftest.c:7:
warning: '_tsk.exit_state' is used uninitialized in this function
/bin/sh: scripts/mod/modpost: No such file or directory
make[1]: *** [__modpost] Error 127
make: *** [modules] Error 2
configure:11360: $? = 2
configure:11435: result: no

If this is not enough I'll try to use the suggested patch.

Cheers,
	G



Russ Allbery wrote:
> Gianluca Cerminara <gianluca.cerminara@cern.ch> writes:
> 
>> Yes I get the same error, also with 1.4.2 and 1.5.12...
> 
>>>> error: #error Not sure what to do about rlim (should be in the Linux
>>>> task struct somewhere....)
> 
> This error usually means nothing more than "your kernel headers included
> in the way that OpenAFS's configure uses them failed to compile" and can
> be caused by all sorts of things, ranging from missing packages to real
> kernel incompatibilities.  To figure out what's going on, we need to see
> the portion of config.log around the test for rlim.  There will be
> compiler error messages that will hopefully lead us to the real cause.
> 

-- 
--------------------------
Gianluca Cerminara
Tel. CERN     +41 (0)22 76 71519
Tel. TO       +39 011 670 7374