Menu

#10 compilation badmem-5.0ns fails

open
nobody
5
2004-08-27
2004-08-27
No

Hi!

I'd like to compile the latest (version 5.0) badmem kernel patch
using kernel version 2.6.4. Well I really would like the latest
Mandrake kernel to work but one thing after the other...

So this is what I did:

1. untar the 2.6.4 kernel source (plain vanilla)
2. patch the kernel tree with this patch:
badmem-5.0ns-kernel-2.6.4.diff
3. untar the badmem-utils (version 1.6) and compile them
4. configure the kernel using /etc/badmem.conf that works with a
2.4 kernel and the badmemutils version 1.5
5. start the kernel compilation whch results in the following error:

make -C /usr/src/badmem/badmemlib IN_KERNEL_MODE=1
kernel_badmemlib.o
gcc -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -funit-at-a-time -march=pentium3
-Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer
-I/usr/src/badmem/badmemlib/include -I./include -c -o
kernel_lib.o kernel_lib.c
In file included from /usr/include/linux/cpumask.h:8,
from /usr/include/linux/topology.h:30,
from /usr/include/linux/mmzone.h:299,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from kernel_lib.c:6:
/usr/include/linux/bitmap.h: In function `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared
(first use in this function)
/usr/include/linux/bitmap.h:85: error: (Each undeclared identifier is
reported only once
/usr/include/linux/bitmap.h:85: error: for each function it appears
in.)
/usr/include/linux/bitmap.h: In function `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared
(first use in this function)
In file included from /usr/include/linux/topology.h:30,
from /usr/include/linux/mmzone.h:299,
from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from kernel_lib.c:6:
/usr/include/linux/cpumask.h:10:5: missing binary operator before
token "("
/usr/include/linux/cpumask.h:34:5: missing binary operator before
token "("
In file included from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from kernel_lib.c:6:
/usr/include/linux/mmzone.h: At top level:
/usr/include/linux/mmzone.h:333: error: parse error before '('
token
/usr/include/linux/mmzone.h:334: error: parse error before
numeric constant
make[2]: *** [kernel_lib.o] Error 1
make[1]: *** [mm/kernel_badmemlib.o] Error 2
make: *** [mm] Error 2
[root@agg-sgi linux-2.6.4]#

Any ideas how to fix this?

Thanks Juergen

Discussion


Log in to post a comment.