Attempting to compile the kernel modules, I get the following message
make[4]: Entering directory `/usr/src/linux-2.4.17-12mdk/drivers/char/ftape/compressor'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.17-12mdk/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.17-12mdk/include/linux/modversions.h
-DKBUILD_BASENAME=zftape_compress -c -o zftape-compress.o zftape-compress.c
In file included from /usr/src/linux-2.4.17-12mdk/include/linux/mm.h:4,
from zftape-compress.c:35:
/usr/src/linux-2.4.17-12mdk/include/linux/sched.h:6: nondigits in number and not
hexadecimal
/usr/src/linux-2.4.17-12mdk/include/linux/sched.h:6: nondigits in number and not
hexadecimal
/usr/src/linux-2.4.17-12mdk/include/linux/sched.h:6: parse error before `7b16c344'
/usr/src/linux-2.4.17-12mdk/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.17-12mdk/drivers/char/ftape/compressor'
make[3]: *** [_modsubdir_compressor] Error 2
The file sched.h looks ok (there is no strange hex constant in the file
at line 6
or as an included file). If I do a quick hack to comment out this file,
other drivers
have similar problems.
Since the source code is relatively old and the same error happens to
different files in
different places, I suspect a gcc error. (This is gcc 2.9x, not gcc 3.x)
I reinstalled the
kernel source rpm but that didn't fix the problem.
Any suggestions?
darrell