[ILUG] Kernel compilation
Kenn Humborg
kenn at linux.ie
Sun Jan 30 13:53:13 GMT 2000
On Sat, Jan 29, 2000 at 03:14:20PM +0000, Dermot Gorman wrote:
> Hi,
> I've recompiled a new kernel to add sound support and remove unecessary
> features. However, on rebooting i get error messages after:
>
> FINDING MODULE DEPENDENCIES
>
> errors look like:
>
> /LIB/MODULES/2.2.12-20 /NET/UNRESOLVED SYMBOLS-lib-so etc etc/
> " /CDROM/ " "
> " /SCSI/ " "
>
> I don't think i have any use for modules at the time being so can i just
> switch the modules feature off ? Any ideas as to what is happening here
> with the errors?
You probably still have modules compiled for the previous kernel
sitting in /lib/modules.
If you are compiling different kernels from the _same_ kernel version
(i.e. both are 2.2.12 - never mind the -20, that's a RedHat thing),
then you cannot have modules for both kernels in the same
/lib/modules subdirectory.
So, before doing 'make modules_install', either do
# rm -rf /lib/modules/2.2.12-20
or (better)
# mv /lib/modules/2.2.12-20 /lib/modules/backup-2.2.12-20
and then do the 'make modules_install'.
Redhat's use of the -20 subversion at the end of their kernel
versions is part of their system to get around this problem.
I don't know exactly how it works as I haven't had the need to
figure it out. (I always recompile the kernel with the latest
stable version when I install a machine.)
Later,
Kenn
More information about the ILUG
mailing list