LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices

Reply
 
Search this Thread
Old 08-07-2003, 07:49 AM   #1
JCCyC
LQ Newbie
 
Registered: Aug 2003
Location: Rio de Janeiro, Brazil
Distribution: RH, Debian, Knoppix, Kurumin, Conectiva
Posts: 4

Rep: Reputation: 0
Exclamation CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat)


Recent Linux distributions place a file called kernel.h in the /boot directory. WARNING: this is NOT the same file as /usr/src/linux/include/linux/kernel.h! The file in /boot contains only a few #defines that say if the kernel supports SMP, bigmem and other kernel options. This file is generated at each boot and is needed for some compilations (I was trying to compile arping and ran into this problem).

If you make the mistake of symlinking it to /usr/src/linux/include/linux/kernel.h it will destroy the file contents.

In Conectiva 9, the init script that generates /boot/kernel.h is defective -- it only works if you're using an RPM kernel, not a compiled one. To fix this, copy the mkkerneldoth from a Red Hat 9 installation and use it instead (I altered the Conectiva script /etc/init.d/kernelheaders or something).
 
  


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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
2.4.22-26 kernel sources & ncurses-devel oomlout Mandriva 4 02-23-2004 10:33 AM
Kernel Sources in Red Hat 7.2 Ajentsmith Linux - Distributions 3 04-30-2002 01:25 PM
Can't find the Kernel Sources in Red Hat 7.2 Ajentsmith Linux - Newbie 1 04-28-2002 11:31 PM


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

Main Menu
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