LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2008, 11:34 AM   #1
sugantha
Member
 
Registered: Feb 2008
Distribution: Ubuntu 11.04 Natty Narwhal , Fedora Linux
Posts: 43

Rep: Reputation: 15
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.

Last edited by sugantha; 09-29-2008 at 11:48 AM.
 
Old 09-29-2008, 02:06 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by sugantha View Post
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.
 
Old 09-30-2008, 09:16 AM   #3
sugantha
Member
 
Registered: Feb 2008
Distribution: Ubuntu 11.04 Natty Narwhal , Fedora Linux
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David1357 View Post
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...
 
Old 09-30-2008, 11:52 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by sugantha View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel warnings what do you do with them? okos Linux - Kernel 7 05-22-2008 04:48 AM
warnings by library compilation halturata Programming 5 07-10-2006 04:07 PM
LXer: Linux: Kernel Compilation Warnings LXer Syndicated Linux News 0 05-12-2006 08:21 AM
warnings during compilation HmmLinux Linux - General 8 12-22-2005 02:16 PM
Compilation flags and linker warnings alanwolfen Programming 4 02-24-2005 09:11 AM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration