On Tue, Mar 21, 2006 at 10:42:29AM -0800, Russ Allbery wrote:
> Florian Ragwitz <[EMAIL PROTECTED]> writes:
> 
> > Package: openafs-modules-source
> > Version: 1.4.0-4
> > Severity: important
> 
> > I'm trying to build openafs-modules-source against the Linux kernel
> > 2.6.16 using make-kpkg. This fails with the following error message.
> 
> >   CC [M]  
> > /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.16-SP/afs_analyze.o
> > In file included from /usr/src/modules/openafs/src/afs/afs_osi.h:393,
> >                  from /usr/src/modules/openafs/src/rx/rx_clock.h:88,
> >                  from /usr/src/modules/openafs/src/rx/rx.h:35,
> >                  from /usr/src/modules/openafs/src/afs/afsincludes.h:26,
> >                  from 
> > /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.16-SP/afs_analyze.c:36:
> > /usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:55:2: error: #error 
> > Not sure what to do about rlim (should be in the Linux task struct 
> > somewhere....)
> 
> This is a completely generic error message that says, basically, that
> configure failed to figure out anything useful from your kernel headers.
> The most common source of this error message is that the Linux headers
> included by configure don't compile.
> 
> Could you look in config.log and send the error messages that configure
> got when trying to probe the kernel headers?

I hope that's the right portion from config.log:


configure:4016: checking for rlim in struct task_struct
configure:4032: gcc -c -g -O2 -I/usr/src/linux/include 
-I/usr/src/linux/include/asm/mach-default -D__KERNEL__  conftest.c 1>&5
In file included from /usr/src/linux/include/linux/rwsem.h:27,
                 from /usr/src/linux/include/asm/semaphore.h:42,
                 from /usr/src/linux/include/linux/sched.h:20,
                 from configure:4025:
/usr/src/linux/include/asm/rwsem.h: In function '__down_read':
/usr/src/linux/include/asm/rwsem.h:105: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__down_write':
/usr/src/linux/include/asm/rwsem.h:157: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__up_read':
/usr/src/linux/include/asm/rwsem.h:194: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__up_write':
/usr/src/linux/include/asm/rwsem.h:220: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:245: error: syntax error before 
'KBUILD_BASENAME'
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from configure:4025:
/usr/src/linux/include/asm/semaphore.h: In function 'down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before 
'KBUILD_BASENAME'
configure: In function 'main':
configure:4028: warning: incompatible implicit declaration of built-in function 
'printf'
configure:4028: error: 'struct task_struct' has no member named 'rlim'
configure: failed program was:
#line 4024 "configure"
#include "confdefs.h"
#include <linux/sched.h>
int main() {
struct task_struct _tsk;
printf("%d\n", _tsk.rlim);
; return 0; }
configure:4048: checking for signal->rlim in struct task_struct
configure:4064: gcc -c -g -O2 -I/usr/src/linux/include 
-I/usr/src/linux/include/asm/mach-default -D__KERNEL__  conftest.c 1>&5
In file included from /usr/src/linux/include/linux/rwsem.h:27,
                 from /usr/src/linux/include/asm/semaphore.h:42,
                 from /usr/src/linux/include/linux/sched.h:20,
                 from configure:4057:
/usr/src/linux/include/asm/rwsem.h: In function '__down_read':
/usr/src/linux/include/asm/rwsem.h:105: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__down_write':
/usr/src/linux/include/asm/rwsem.h:157: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__up_read':
/usr/src/linux/include/asm/rwsem.h:194: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__up_write':
/usr/src/linux/include/asm/rwsem.h:220: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:245: error: syntax error before 
'KBUILD_BASENAME'
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from configure:4057:
/usr/src/linux/include/asm/semaphore.h: In function 'down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before 
'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before 
'KBUILD_BASENAME'
configure: In function 'main':
configure:4060: warning: incompatible implicit declaration of built-in function 
'printf'
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; }


-Flo

-- 
BOFH excuse #359:
YOU HAVE AN I/O ERROR -> Incompetent Operator error

Attachment: signature.asc
Description: Digital signature

Reply via email to