LinuxQuestions.org
Visit Jeremy's Blog.
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 10-19-2005, 01:49 PM   #1
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Rep: Reputation: 15
Exclamation compiling kernel


I am trying to compile kernel (as a first timer) and i having problems with the make modules. I am compiling new kernel because i need ipvs to use ipvsadm. while running make modules i get this error:

drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_queuecommand':
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining
drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining
drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here
make[3]: *** [drivers/scsi/qla2xxx/qla_os.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2


any idea how might i fix this. i am compiling kernel 2.6.9 patched with hidden 2.6.9-1.diff.
i did change some of the network configuration that is used for ipvs...i don't know y drivers are being affected. please help...

pooja
 
Old 10-19-2005, 03:10 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Re: compiling kernel

Quote:
Originally posted by LAdProg2005
I am trying to compile kernel (as a first timer) and i having problems with the make modules. I am compiling new kernel because i need ipvs to use ipvsadm. while running make modules i get this error:
---
pooja
And why are you running make modules with 2.6 kernel?
'make' and 'make modules_install' are the necessary steps.
 
Old 10-19-2005, 03:29 PM   #3
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
Uh...you see I was following the LVS-HOWTO on linuxvirtualserver.org and it says to do that...now i understand that it directions were per 2.4.x kernel but it doesn't say for 2.6.x kernel....so i figured i am suppose to do that step. it would be great if you can give me a website that gives correct directions to compile the 2.6.x kernel or yourself ...either way it would be great. it is my first time compiling kernel other than provided one so i am having a bit of hard time.


thank you
--p

Last edited by LAdProg2005; 10-19-2005 at 03:31 PM.
 
Old 10-19-2005, 03:36 PM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
This is explained in README file supplied with kernel sources.
 
Old 10-19-2005, 03:55 PM   #5
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
thanks, the commands are not too obvious but looking around and getting to kknow it better did help.

even when i just do MAKE it gives me the SAME ABOVE MENTIONED ERROR

i was also wondering: on lvs website it says that the newest kernel comes patched with ipvs and so there is need of ipvsadm.gz package.

in the installation instructions it says to compile kernel with ipvs and once set boot into the new kernel and then make install ipvsadm to make it work.

but if the kernel already comes with ipvs patch then do we just skip to adding the new kernel to the grub.conf and boot into it? or do i have to go about compiling the kernel and everything before i boot into it.

above that what i am concerned is that i am running centos linux with kernel 2.6.9-22.EL so i am assuming ipvs is already there (when i run locate ipvs it gives me bunch of files which makes me think that ipvs is there already)and i just need to make install ipvsadm without having to go through compiling kernel by hand. am i right to make that assumption?

--p

Last edited by LAdProg2005; 10-19-2005 at 04:10 PM.
 
Old 10-20-2005, 02:56 AM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
you have to make sure you don't enable experimental modules that are likely to not compile also
sometimes those are likely to not compile.
 
Old 10-20-2005, 04:34 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use 2.6.12 or the latest stable version. 2.6.9 is old and permissions for CD/DVD recordable drives are set to restricted for users except by root.

To compile 2.6.x kernels:
1) make && make modules_install
2) Copy System.map to /boot
3) Copy bzImage from arch/i386/boot to /boot
4) Use mkinitrd to make a ramdisk file of the new kernel version (this is require)
5) Edit your boot loader config file

I configured and compiled the kernel so much that I can compile the kernel in my sleep.

Below are howto links. I prefer single page because it is a lot easier to read in a web browser.
Single Howto page on LVM - http://www.ibiblio.org/pub/Linux/doc...LVM-HOWTO.html
Multi Howto page on LVM - http://www.tldp.org/HOWTO/LVM-HOWTO/index.html

I have not yet setup LVM, but I think I accidently enabled device mapper support while I was in REM sleep.
 
Old 10-20-2005, 10:38 AM   #8
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
Yep, I made sure the experimental modules are not enable.

does it matter where the kernel is extracted? i mean it is ok to not go about doing this in /usr/src?

Quote:
To compile 2.6.x kernels:
1) make && make modules_install
2) Copy System.map to /boot
3) Copy bzImage from arch/i386/boot to /boot
4) Use mkinitrd to make a ramdisk file of the new kernel version (this is require)
5) Edit your boot loader config file
oh..exactly how do you do #4 just run mkinitrd or u have to suggest a path?


ok but u see with lvs you have to set up little different configuration mostly to enable lvs-load balancing and all the good stuff. this happens when you run 'make menuconfig'. this step is not there. that is y i am so confused.

after this when i run make it gives the devices error anyway, i don't know if setting up lvm would fix anything. is it related to the drivers error?
thanks for a little run-down...-p

Last edited by LAdProg2005; 10-20-2005 at 10:51 AM.
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 02:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Help! Everything seems to be compiling into kernel! KuRe Slackware 18 12-17-2003 09:04 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 01:03 AM.

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