Kernel recompilation problem after patch lkcd-6.1.0

Submitted by vincent82
on March 7, 2006 - 6:09pm

hi guys, i am new to kernel. i try to patch lkcd (linux kernel crash dump) to my kernel (Fedora Core 3, kernel 2.6.9-1.667). when i recompiled the new kernel, some errors came out.
Do any one have any idea?
i did the following steps ...

download lkcd patch at
http://cvs.sourceforge.net/viewcvs.py/*checkout*/lkcd/lkcd/6.0.0/2.6.9/l...
and download kernel source code at
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2

# patch -p1 < lkcd-6.1.0_BASE_2.6.9.patch
# make mrproper
# cp /boot/config-2.6.9-1.667 .config
# make oldconfig
# make menuconfig
# make bzImage (error came out at this step)

fs/binfmt_elf.c: In function `padzero':
fs/binfmt_elf.c:113: warning: ignoring return value of `clear_user', declared with attribute warn_unused_result
include/asm/uaccess.h: In function `create_elf_tables':
fs/binfmt_elf.c:175: warning: ignoring return value of `__copy_to_user', declared with attribute warn_unused_result
fs/binfmt_elf.c:273: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
fs/binfmt_elf.c: In function `load_elf_binary':
fs/binfmt_elf.c:758: warning: ignoring return value of `clear_user', declared with attribute warn_unused_result
fs/binfmt_elf.c: In function `fill_psinfo':
fs/binfmt_elf.c:1226: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
arch/i386/kernel/built-in.o(.init.text+0x1a22): In function `setup_arch':
arch/i386/kernel/setup.c:1410: undefined reference to `crashdump_reserve'
make: *** [.tmp_vmlinux1] Error 1

Really need ur guys help to solve this problem. Thanks

1 Error

on
March 8, 2006 - 2:49pm

First off, all but "arch/i386/kernel/setup.c:1410: undefined reference to `crashdump_reserve'" are WARNINGS, not errors.

If you just want it to compile then fix that one error. The basic issue here is that the variable/data/function "crashdump_reserve" can't be found by the compiler. So try to find where it's being called from, see if you really need it. Then grep the kernel source for where this puppy is defined, and think about including that header file.

A very simple possibility is that you need to do a "make clean" before you recompile your kernel code again, sometimes that's the cause of errors.

it is working.

on
March 11, 2006 - 2:56am

i add "make clear" before "make bzImage" and it is working .. you save my day.. thanks..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.