I seem to be unable to compile the modules with the stock kernel of
Mandrake 8.1. Neither with my preferences nor with the default ones. I
even updated the kernel sources today, but the compilation still stops
with the following error messages>
make -C ftape modules
make[3]: Entering directory `/usr/src/linux-2.4.8/drivers/char/ftape'
make -C compressor modules
make[4]: Entering directory
`/usr/src/linux-2.4.8/drivers/char/ftape/compressor'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.8/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586
-fno-merge-constants -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.8/include/linux/modversions.h -c -o
zftape-compress.o zftape-compress.c
In file included from /usr/src/linux-2.4.8/include/linux/mm.h:4,
from zftape-compress.c:35:
/usr/src/linux-2.4.8/include/linux/sched.h:6: nondigits in number and
not hexadecimal
/usr/src/linux-2.4.8/include/linux/sched.h:6: nondigits in number and
not hexadecimal
/usr/src/linux-2.4.8/include/linux/sched.h:6: parse error before
`7b16c344'
/usr/src/linux-2.4.8/include/linux/sched.h:6: warning: function
declaration isn't a prototype
make[4]: *** [zftape-compress.o] Error 1
make[4]: Leaving directory
`/usr/src/linux-2.4.8/drivers/char/ftape/compressor'
make[3]: *** [_modsubdir_compressor] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.8/drivers/char/ftape'
make[2]: *** [_modsubdir_ftape] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.8/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.8/drivers'
make: *** [_mod_drivers] Error 2
The non-digits in the number are a result of some preprocessing step.
With cpp I have found the offending line:
# 1 "/usr/src/linux-2.4.8/include/asm/param.h" 1
# 5 "/usr/src/linux-2.4.8/include/linux/sched.h" 2
extern unsigned long event_R_ver_str(7b16c344);
this seems to me some malformed substitusion as the line in shed.h
reads:
extern unsigned long event;
As I usually comiled my own kernel on Debian before this seems to be
some error in the kernel sources. So my questions are:
- how can I overcome this problem?
- can I get a newer kernel from kernels.org and compile it without
loosing any of the nice HW detection, ext3 etc features
of Mandrake?
Andras
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com