I installed 9.0 on a new machine.
Then upgraded the kernel to 2.4.20-20.9 by
installing the following rpms (from RHN).
kernel-2.4.20-20.9.i386.rpm
kernel-source-2.4.20-20.9.i386.rpm I then deleted the old kernel (cant remember which
one) using rpm -e.
Then rebooted off the new kernel. (I only have one
kernel on my machine now which is the 2.4.20-10.9 one).
I have only one set of kernel source as well which
is 2.4.20-10.9 as well.
I then wanted to practice building a new kernel so I decided to build the
kernel using the config that I found in /boot/config-2.4.20-20.9 which i assumed
(probably incorrectly) that this is the .config file which was used to build the
2.4.20-20.9 kernel supplied by RHN.
So I copied this file to /usr/src/linux-2.4.20-20.9/.config.
Then did
make clean
make dep
make bzImage
And ... my build fails with the following
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-20.9/include -Wall
-Wstrict-prototypes\
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe\ -mpreferred-stack-boundary=2 -march=i386 -nostdinc -iwithprefix include -DKB\ UILD_BASENAME=io_apic -c -o io_apic.o io_apic.c io_apic.c:45: `dest_LowestPrio' undeclared here (not in a function) io_apic.c: In function `__mask_IO_APIC_irq': io_apic.c:140: warning: implicit declaration of function `io_apic_read' io_apic.c:140: warning: implicit declaration of function `io_apic_modify' io_apic.c:140: warning: implicit declaration of function `io_apic_sync' io_apic.c: In function `clear_IO_APIC_pin': io_apic.c:169: storage size of `entry' isn't known ... I am confused because I thought that the kernel I am currently running
would have been built using the sources in the kernel-source rpm that i
installed and thus a make bzImage (without any mods to the config) would build a
kernal that is identical.
Perhaps I need to install patches to this kernel from somewhere?
I did not change anything in the kernel .config file, since I am just
practicing kernel builds to prep for my next project that does involve a custom
kernel.
Any help would be appreciated.
Thanks
|