LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-25-2004, 03:44 AM   #1
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
Error when compiling 2.4.26(can't find the include files)


I recently tried to compile 2.6.6 and refused to even make menuconfig because it was unable to find some files. So i decided to try with 2.4.26. The menuconfig was Ok, but then after "make dep" it returned the same error like 2.6.6 (it was complaining about missing <limits.h>. I found the file that required it and I edited it:
from:
#include <linux/limits.h>
to:
#include </usr/src/linux/include/linux/limits.h>

It worked for make dep, but when I do make bzImage it complains about other include files and this is because it doesn't know the path to them. I can't edit hundred of files so I need to find a way to tell the compiler or make or whatever needs this files the path to them. I don't know why it can't find them itself.

The question is how to specify the path to this files or am i doing all of this wrong?
 
Old 05-25-2004, 03:58 AM   #2
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
There shouldn't be a need to edit something using the 'make menuconfig' command to edit the default kernel configuration and to compilte it. So there's something else wrong with your system.

Did you install the kernel headers package that came with the Slackware version you are using ? In case of 9.1 you can grab an updated package from the /slackware-9.1/patches/packages/ dir on the slackware ftp server or mirror.
 
Old 05-25-2004, 05:27 AM   #3
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
Thank you. The problem was exactly this. i thought I have it but it wasn't in /var/log/packages so I installed it and it worked and now the bzimage is ready. Thank you for the fast response.
 
  


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
Kernel header (include) files - where do i find these walkerx Mandriva 2 04-17-2005 08:19 AM
cannot find mysql include files lsimon4180 Linux - Software 5 03-25-2005 02:41 PM
Cross Compiling help -can't find files laclac01 Linux - Software 0 11-17-2004 06:26 AM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg qanopus Linux - Software 1 12-21-2003 08:15 AM
g++ does not find include files StressedLemming Linux - Newbie 2 11-30-2003 06:12 AM

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

All times are GMT -5. The time now is 02:05 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