Hi,
I am getting some compilation errors after applying the kgdb
patch.
Please help me to sort this out.
I have Pentium Red hat 7.2 Linux machine. The kernel running
here is 2.4.7-10 (which is comes along with RH 7.2). i got its
code from a
RPM (kernel-source-2.4.7-10.i386.rpm, present on the RH CD).
Patch is
downloaded from
http://kgdb.sourceforge.net/linux-2.4.7-10-kgdb-1.5.patch.
I patched the kernel with
patches#patch -p1 -d /usr/src/linux-2.4.7-10
<linux-2.4.7-10-kgdb-1.5.patch
patching file Documentation/Configure.help
patching file Documentation/i386/gdb-serial.txt
patching file Makefile
patching file arch/i386/Makefile
patching file arch/i386/config.in
patching file arch/i386/kernel/Makefile
patching file arch/i386/kernel/entry.S
patching file arch/i386/kernel/gdbstart.c
patching file arch/i386/kernel/gdbstub.c
patching file arch/i386/kernel/nmi.c
patching file arch/i386/kernel/traps.c
patching file arch/i386/mm/fault.c
patching file drivers/char/Makefile
patching file drivers/char/gdbserial.c
patching file drivers/char/serial.c
patching file drivers/char/tty_io.c
patching file fs/namei.c
patching file fs/super.c
patching file include/asm-i386/ioctls.h
patching file include/asm-i386/page.h
patching file include/asm-i386/processor.h
patching file include/linux/dcache.h
patching file include/linux/gdb.h
patching file include/linux/mount.h
patching file include/linux/sched.h
patching file init/main.c
patching file kernel/ksyms.c
patching file kernel/sched.c
patches#
But when i compile the kernel i get following compilation
error.
linux-2.4.7-10#make bzImage
.
.
.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.7-10/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common
-Wno-unused -g -pipe -mpreferred-stack-boundary=2 -march=i686
-DEXPORT_SYMTAB -c i386_ksyms.c
i386_ksyms.c:179: `do_BUG' undeclared here (not in a function)
i386_ksyms.c:179: initializer element is not constant
i386_ksyms.c:179: (near initialization for
`__ksymtab_do_BUG.value')
make[1]: *** [i386_ksyms.o] Error 1
make[1]: Leaving directory
`/usr/src/linux-2.4.7-10/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
For the same code when i remove the patch by
patches#patch -p1 -d /usr/src/linux-2.4.7-10 -R <
linux-2.4.7-10-kgdb-1.5.patch
i get no kernel compilation errors.
Has someone used this 2.4.7-10 kernel & its patch
successfully?
please send me the links where i can correctly match the
2.4.7-10
kernel-patch pair.
Thanks in advance.
Regards
Nitin
|