LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 01-29-2004, 04:00 AM   #151
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45

Just an update, I have edited the main guide so that now includes some vital information regarding file systems and the 2.6.x kernels, including grub.conf needed changes.
 
Old 02-03-2004, 08:45 PM   #152
dleidlein
LQ Newbie
 
Registered: Feb 2004
Location: Rochester, NY
Distribution: Redhat 9
Posts: 29

Rep: Reputation: 15
WOW! Been looking for something like this for days. It's been said already but I had to say it myself: EXCELLENT POST AND THANK YOU!
 
Old 02-04-2004, 04:41 AM   #153
Butterbroetchen
Member
 
Registered: Jan 2004
Posts: 57

Rep: Reputation: 15
Unhappy Compile Problems

Hi,

When I make bzImage I get the following error and thats it. What is wrong.?

I am using the standard redhat Sources and some how I cannot compile the Kernel.

I am going mad here... I have read everything I could find and have not been able to get a simple compile to work. Please help.

Thanks

make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2149.nptl'
make: *** [vmlinux] Error 2
 
Old 02-04-2004, 11:44 AM   #154
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I had some of those problems myself with the latest 2.6 kernel I was trying to compile, but the install process turned out to say that I had no loopback devices... In any case while using RH 9 I had a similar problem also, though in the kernel I was trying to compile the problem turned out to be related to the crypto APIs. If you use Fedora Core, you should edit the top level makefile and substitute any "gcc" occurance with [b]gcc32[b], that'll cause to use the gcc version 3.2 instead of the standard (gcc) 3.3. that comes with Fedora.
 
Old 02-05-2004, 06:06 PM   #155
MOCKBA
Member
 
Registered: Oct 2003
Location: Moscow
Distribution: Ubuntu
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
kernel 2.6.2

Can somebody point me on step by step instruction for upgrading rh9 kernel to 2.6.2? It should be newbie level, starting from URL to download the kernel source. Thanks,
 
Old 02-05-2004, 06:19 PM   #156
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
In the first page of this tutorial you'll find the page, just not to make you go all the way back, here it is www.kernel.org

If you follow the steps in the first page, you'll have no problems. Just make sure you have modutils-2.4.25-13 installed (you may find the package by looking in rpmfind.net Other than that, it's all there.

I'm assuming you know how to check what packages you have installed, I also assume you know how to upgrade or install new packages for your distribution. If you do not know these things, I'd suggest you to read a little more on RPM before attempting to upgrade your kernel from source.

Last edited by Thetargos; 02-05-2004 at 06:21 PM.
 
Old 02-09-2004, 06:20 AM   #157
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
Vinceb,
How did you resolve your 'depmod:Unresolved symbols......' Errors?
I am encountering the same problems. i have done everything but still getting the same errors.

Please assist.

Eric
 
Old 02-09-2004, 01:29 PM   #158
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Where/when exactly are you having these problems? Unresolved Symbols (AFAIK) are most commonly due to a mismatch regarding the compiler used to build the kernel and the one used for the modules, you may want to check that out (In Fedora this is quite evident!) or because you are loading a module which need another loaded first.
 
Old 02-09-2004, 06:03 PM   #159
pirkaso
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
gee now i feel better...hehehe...blew my head off...now i am more confused than ever....lol....
 
Old 02-09-2004, 07:12 PM   #160
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Sorry, that was not my intention... Basically you have to use the same compiler for both the modules and the kernel, this should be taken care off by the Makefile. If you are using Fedora Core, edit the Makefile and change all instances of gcc to gcc32 (for that to work you should install the kernel sources using the program redhat-config-packages, if you did not install it at install time). Hope this clarifies a little bit more: Fedora comes with gcc 3.3 which has problems with kernel compilations/modules, etc. As a work-around the Fedora guys compiled the kernel using the RH 9 compiler (gcc 3.2, hence gcc32 command), and supplied that gcc as a dependency to the kernel sources. However if you're not using Fedora, its a little bit difficult to assist you as I don't know at what stage this problem arises. In this case, please post back more information.
 
Old 02-10-2004, 02:42 AM   #161
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
'depmod:Unresolved symbols......' Errors?

I have GCC- 2.96 on RH7.3. I compiled a 2.4.24 kernel with this 2.96 and everything went well. I wanted then to upgrade to 2.6.1 but i had problems with 2.96. I upgraded to gcc -3.3.2 and glibc-2.3.2 but keeping my GCC-2.96.

I uninstalled the 2.4.24 in readiness to compile my 2.6.1 Kernel. To my shock i got the "Unresolved symbols problems whether i use GCC-2.96 or GCC-3.3.2. It fails when i try to install Modules.

I tried to revert to my original 2.4.24 Kernel and also could not get it to install the modules.

I am lost as to what got messed up.

Please assist.

Eric
 
Old 02-10-2004, 03:20 AM   #162
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
You most likely messed your system with the GCC and glibc upgrade (don't get me wrong, I also did that to my 7.3 install, it survived quite a while until I wanted to install X 4.3 from XF86's binary distribution, then it almost died ).

So if I understand correctly when you
Code:
# make modules_install
Is when it complaints about unresolved symbols, or when you actually boot the system and the modules get loaded?

How do you differenciate between the two compilers? Maybe they're bein addressed in different ways during the different stages of the compilation process?

I'll do some research on the matter.
 
Old 02-10-2004, 03:31 AM   #163
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
depmod: *** Unresolved symbols..

I get the errors when i do Make modules_install. I have tried to edit the top level makefile and changing gcc to gcc3.3.2 and vice-versa to no avail.

Currently gcc points to gcc-2.96 and gcc3.3.2 was installed under /usr/local/bin. Glibc-2.3.2 was installed under /tools.

Eric
 
Old 02-10-2004, 03:39 AM   #164
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ok, which compiler does the gcc command calls? (you say 2.96), are you sure there's no conflict?

So basically you can actually build the modules, but not install them? As in
Code:
# make clean
# make dep
# make modules
# make modules_install
# make install
The procedure I usually follow (as the guide says) is to supply all in one command line, however, the order above is the one I've always used (even before I knew I could use a single command line).
 
Old 02-10-2004, 04:02 AM   #165
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
yes, I follow the procedure in the HOWTO. I can compile the Kernel but when i reach Make modules_Install i get the Depmod errors when it is updating the System map.

I am sure there is no confilct in gcc and gcc3.3.2. When i run gcc --version it gives me 2.96.

Eric
 
  


Reply

Tags
howto, tutorial


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
Red Hat/Fedora ALSA mini-HowTo. Thetargos Red Hat 182 04-01-2006 01:12 PM
red hat 9 kernel compilation b0nd Linux - Newbie 1 08-11-2005 11:05 AM
Kernel compilation (2.4.25 - Red Hat) on DELL Inspiron 2650 rohitmordani Linux - Laptop and Netbook 7 04-05-2004 06:10 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 07:33 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 05:58 PM


All times are GMT -5. The time now is 09:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration