I need to recompile my kernel in order to support NTFS filesystem on my desktop. I am using Red Hat 7.2 which has a kernel version of 2.4.7-10.
Being a newbiw I never did such "advance" things before. Nevertheless I downloaded 27MB source code of 2.4 kernel from kernel.org (using dial up modem !!!)
Anyway untar the source code in /usr/src and all the files from source code went into /usr/src/linux. So far so good.
Then I started using the kernel rebuild procedure given at
http://www.linuxdoc.org/HOWTO/Kernel-HOWTO-2.html
However I was always stucking duing make bzImage. I am pasting last few lines of my nohup.out (log file) so that you may see what is wrong.
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686
-DEXPORT_SYMTAB -c ksyms.c
In file included from ksyms.c:17:
/usr/src/linux/include/linux/kernel_stat.h: In
function `kstat_irqs':
/usr/src/linux/include/linux/kernel_stat.h:48:
`smp_num_cpus' undeclared (first use in this function)
/usr/src/linux/include/linux/kernel_stat.h:48: (Each
undeclared identifier is reported only once
/usr/src/linux/include/linux/kernel_stat.h:48: for
each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2
Please let me know what is wrong !!!
Thanks
Salman