LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Warnings during 2.6.25 kernel compilation (https://www.linuxquestions.org/questions/linux-newbie-8/warnings-during-2-6-25-kernel-compilation-673085/)

sugantha 09-29-2008 10:34 AM

Warnings during 2.6.25 kernel compilation
 
Hello all...I am trying to compile the kernel version 2.6.25 in my Fedora 8 OS. My current kernel version is 2.6.25.14-69.fc8. I am following the online tutorial here...

http://http://www.cyberciti.biz/tips...kernel-26.html

When I do "make modules" I got almost seven modpost warnings. I googled around and dint get any direction to avoid them...So I continued to do "make modules_install" and it gave loads of warnings which go like...

Quote:

WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol svc_seq_show
WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol cache_flush
WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol svc_find_xprt
WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol svc_proc_unregister
WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol gss_mech_put
WARNING: /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko needs unknown symbol svc_addsock
This is only a part of the warnings I got. Please suggest what I should do here. Is there a way to stop these warnings or should I proceed, ignoring the warnings.Also, as I looked around at the existing posts the errors are like "unused variable", "deprecated function" and the like...But the errors that I get, "module needs unknown symbol", look a little ominous...Please help...Thanks in advance.

David1357 09-29-2008 01:06 PM

Quote:

Originally Posted by sugantha (Post 3295076)
I am following the online tutorial here...
http://http://www.cyberciti.biz/tips...kernel-26.html

That tutorial leaves out a very important step. You need to copy "/boot/config-2.6.25.14-69.fc8" (or the closest thing to it) to ".config" in your kernel source tree. Then run "make menuconfig", exit, and say yes when it asks if you want to save your kernel configuration. Sometimes you can get away with "make oldconfig", but I have had problems getting that to work in the past.

If you try to build a kernel without having a good .config file to start from, you are very likely to build a kernel that spews lots of warnings and will not boot on your hardware.

sugantha 09-30-2008 08:16 AM

Quote:

Originally Posted by David1357 (Post 3295173)
That tutorial leaves out a very important step. You need to copy "/boot/config-2.6.25.14-69.fc8" (or the closest thing to it) to ".config" in your kernel source tree. Then run "make menuconfig", exit, and say yes when it asks if you want to save your kernel configuration. Sometimes you can get away with "make oldconfig", but I have had problems getting that to work in the past.

If you try to build a kernel without having a good .config file to start from, you are very likely to build a kernel that spews lots of warnings and will not boot on your hardware.

Thanks David1357...I did that and the process went on nicely, since this is a triple booting system, I modified the menu.lst in OpenSuse and wow ...when I did "uname -r" in the newly booted kernel it showed "2.6.26.5"...Great help.Thanks...

David1357 09-30-2008 10:52 AM

Quote:

Originally Posted by sugantha (Post 3295914)
I modified the menu.lst in OpenSuse and wow ...when I did "uname -r" in the newly booted kernel it showed "2.6.26.5"...Great help.Thanks...

You are eminently welcome. Always happy to help people learn how to build their kernel from source. It is frequently the easiest way to get hardware to work more reliably. Also, building from the latest kernel sources gives you a more secure system.


All times are GMT -5. The time now is 02:51 AM.