[Click] compiling the patched kernel

Ivan Nanevski iwojima at gmx.net
Sat Jul 26 22:40:37 EDT 2003


Hello, I spent last seven days trying to get "click" running
as a kernel module on a 133 MHz Pentium, but no success and
I'm getting desperate now, so please help....

Whenever I try to compile patched kernel 2.4.18-2.4.20 the
process hangs at some point... if I manage to compile it
somehow, then "click" installs only the user level program
without the kernel module. (although the sources were
patched)


Last time I was compiling 2.4.19 and the process hanged at
"make bzImage"... here are the last lines of the output:

In file included from
/usr/src/click_linux_kernel_2.4.19/include/linux/locks.h:8,
                 from
/usr/src/click_linux_kernel_2.4.19/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/click_linux_kernel_2.4.19/include/linux/pagemap.h:
At top level:
/usr/src/click_linux_kernel_2.4.19/include/linux/pagemap.h:8
2: parse error before `('
/usr/src/click_linux_kernel_2.4.19/include/linux/pagemap.h:8
3: parse error before `('
In file included from
/usr/src/click_linux_kernel_2.4.19/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/click_linux_kernel_2.4.19/include/linux/locks.h:29:
parse error before `('
In file included from init/main.c:32:
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h: In
function `check_fpu':
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:71:
`KERN_EMERG' undeclared (first use in this function)
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:71:
(Each undeclared identifier is reported only once
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:71:
for each function it appears in.)
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:71:
parse error before string constant
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:72:
parse error before string constant
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:87:
`KERN_INFO' undeclared (first use in this function)
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:87:
parse error before string constant
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:92:
parse error before string constant
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h: In
function `check_hlt':
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:115:
`KERN_INFO' undeclared (first use in this function)
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:115:
parse error before string constant
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h: In
function `check_config':
/usr/src/click_linux_kernel_2.4.19/include/asm/bugs.h:170:
warning: implicit declaration of function `panic'
init/main.c: In function `profile_setup':
init/main.c:129: warning: implicit declaration of function
`get_option'
init/main.c: In function `debug_kernel':
init/main.c:205: `console_loglevel' undeclared (first use in
this function)
init/main.c: In function `quiet_kernel':
init/main.c:213: `console_loglevel' undeclared (first use in
this function)
init/main.c: In function `start_kernel':
init/main.c:392: `KERN_CRIT' undeclared (first use in this
function)
init/main.c:392: parse error before string constant
init/main.c: In function `init':
init/main.c:578: warning: control reaches end of non-void
function
make: *** [init/main.o] Error 1


The gcc used is version 2.95.3, the Linux is RedHat 8.0,
kernel source files are from kernel.org....

Thanks in advance..
IVAN



More information about the click mailing list