fridgemagnet (fridgemagnet) wrote in linux,

Problems compiling kernel

Very newbie question here, but I'm trying to compile a kernel for the first time ever (to enable APM, as it happens). The version is 2.4.18-6 (Mandrake 8.2 distro). I'm getting errors when I try to compile the modules, though.

Everything seems to go okay with

make clean
make xconfig
make dep
make bzImage

however, when I try to make modules I start getting errors...

make[2]: Entering directory `/usr/src/linux-2.4.18-6mdk/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-6mdk/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.18-6mdk/include/linux/modversions.h  -DKBUILD_BASENAME=loop  
In file included from /usr/src/linux-2.4.18-6mdk/include/asm/processor.h:13,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/list.h:6,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/module.h:12,
                 from loop.c:64:
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: invalid suffix on integer constant
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: parse error before numeric constant
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: `do_BUG_R_ver_str' declared as
function returning a function/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: warning:
function declaration isn't a prototype

and similar for other modules. I've tried changing a few of the modules I use but I still get errors. Using gcc-3.0.4 here, which should be okay.

The Kernel HOWTO suggests that something is wrong with the source, which is worrying since this is the source that came with the distribution. Is this the case or is there something really obvious I'm missing?

ta all
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded