LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2004, 10:09 PM   #1
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Rep: Reputation: 17
Angry Can't compile a kernel


To follow up my thread about burning a cd, I can't compile a kernel anymore and I can't figure out why. I tried 3 kernel version (2.4.7, 2.6.8.1 and 2.6.9) and they all have the same error message:
linux/limits.h: No such file or directory
The file exist for each version and also in usr/include so I don't know why it is not accessed.

Again frustrated and lost, open to suggestion...
 
Old 11-13-2004, 10:17 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

since u have compiled 3 versions,i think u should again get a vanilla kernel from kernel.org and first delete the usr/src/linux directory

then extract ur kernl there and try again..

regards
 
Old 11-13-2004, 10:33 PM   #3
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
did that, the problem is that they don't see the file. I think they can't access the linux dir
 
Old 11-13-2004, 10:36 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

make a symlink from /usr/src/linux to linux-2.6.8.... directory
regards
 
Old 11-13-2004, 10:55 PM   #5
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
done already
doesn't help
 
Old 11-13-2004, 10:59 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

one more thng
go to ur linux-2.6.9.. directory


did u run "make mrproper" there???

regards
 
Old 11-13-2004, 11:10 PM   #7
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
make clean
make mrproper
make config --> error
make menuconfig --> error
make xconfig --> error
make gconfig --> error
make throw_the_fucker_thru_the_window --> .config not found

tanx anyway
 
Old 11-14-2004, 10:17 AM   #8
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
I just found out that the whole include dir in /usr/src/linux/ is not accessed
SInce include/linux/limits.h wasn't accessed I symlinked /usr/src/linux/include/linux to /usr/include/linux and now it's another dir in linux/include that is not accessed
I'm guessing I'm missing a path name somewhere. Does anybody have an idea where?
 
Old 11-14-2004, 10:32 AM   #9
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
the way I do it is to unpack my kernel in the /usr/src directory so I have something like /usr/src//linux-2.6.9 then I 'rm linux' after this I 'ln -s /usr/src//linux-2.6.9 /usr/src/linux' then 'cd linux'. While in the linux directory I will 'make mrproper' then 'make clean' then 'make menuconfig' Is this the steps you are taking before getting the error?
 
Old 11-14-2004, 11:01 AM   #10
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
yep
then it can't find limits.h which is in include/linux
 
Old 11-14-2004, 05:42 PM   #11
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
have you deleted the directory and redownloaded?
 
Old 11-14-2004, 06:36 PM   #12
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
yep

delete
download
make mrproper
make clean
make xconfig -- error
swear like there's no tomorrow (and being french canadian that's pretty colorful!)
 
Old 11-14-2004, 06:46 PM   #13
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
when you installed did you install slackware/d/kernel-headers-2.4.26-i386-3.tgz ?
Everything I am reading says it is realated to missing kernel headers. Try reinstalling this package from your slackware 10 cd and see if that fixes it.
 
Old 11-14-2004, 07:01 PM   #14
djh
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Rep: Reputation: 15
)
very funny @ make throw_the_fucker_thru_the_window --> .config not found && swear like there's no tomorrow (and being french canadian that's pretty colorful!)

anyway )
i have a similar thread around )))
same problem )
i will get ftp://ftp.kernel.org/pub/linux/kerne...x-2.6.9.tar.gz
unpack to /usr/src
rm -rf /usr/src/linux
relink to new dir
follow instructions @ http://www.slackwarehelp.org/about46.html
hopefully all will go fine`
if not -> rm -rf / just for the fun of it and reinstall from scratch
cheers

Last edited by djh; 11-14-2004 at 07:02 PM.
 
Old 11-14-2004, 07:35 PM   #15
mixtr
Member
 
Registered: Jul 2004
Location: Ottawa
Distribution: Arch, OpenBSD
Posts: 123

Original Poster
Rep: Reputation: 17
Thanks mAineAc, that's is what I was missing, it works fine. Now I'll go and curse about the process of going thru all the option of configuring the kernel before compiling because the moron (me) forgot to backup the config file.

djh: you should try mAineAc advice I think it should work since you seem to have the same problem as I did
 
  


Reply



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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration