kernel build problems with KDB patch

RS tinyshrimp at 163.com
Wed Mar 12 22:09:30 EDT 2014


Hello


I want to use KDB to debug the module. 
I have done this:
1.  make mrproper
2.  download the patch from the site (ftp://oss.sgi.com/www/projects/kdb/download/). Include kdb-v4.4-2.6.32-common-6.bz2 and kdb-v4.4-2.6.32-x86-6.bz2
3.  patch -p1 < kdb-v4.4-2.6.32-common-6
     patch -p1 < kdb-v4.4-2.6.32-x86-6
4.  make menuconfig
     Kernel hacking --->
                             Compile the kernel with frame pointers(set Y) 
                             Built-in Kernel Debugger support (set Y)  
                             KDB off by default(set Y)
5.  make


ERROR LOG:
arch/x86/kernel/traps.c:418 error:expected identifier or '(' before 'if'
arch/x86/kernel/traps.c:437 error:expected identifier or '(' before 'if'
arch/x86/kernel/traps.c:441 error:expected identifier or '(' before 'if'
...
conflicting types for 'reassert_nmi'
...note:previous definition of 'reassert_nmi' was here
...


What should I do ?


Thanks,
HeChuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140313/6492b2d4/attachment-0001.html 


More information about the Kernelnewbies mailing list