LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-15-2008, 12:25 PM   #1
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
kernel 'make dep' error. Will not compile.


alright, I am tinkering on an older Latitude laptop running Slackware 10.2 with the default kernel (2.4.31). I downloaded the source for 2.4.36.6 and configured via make menuconfig to my liking. Next is make dep and I get this error:
Code:
bash-3.00$ make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:122,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:11,
                 from scripts/mkdep.c:35:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: error: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1
My first obvious thought was dependencies. I checked Documentation/Changes and checked what the required software is, checked all the versions and they are all newer than the minimum requirements needed to compile the kernel.

My next thought was permissions, so I originally tried 'chmod -R 755' and that didnt do it, so I tried 'chmod -R 777' and that didnt help at all. So permissions is obviously not the problem.

So, if anybody has any ideas please feel free to slap me in the face for not seeing it.

Also, I tried running 'make dep' on the kernel source that came preinstalled on the install (2.4.31) and it gave the exact same error. So I doubt it is from a corrupt kernel source download. That leaves gcc/make right?

Thanks,
DragonM15

Last edited by DragonM15; 07-15-2008 at 12:27 PM.
 
Old 07-19-2008, 04:25 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
/usr/include/bits/local_lim.h:36:26: linux/limits.h:
No such file or directory
Meaning no /usr/include/linux/limits.h

Seems you are missing the package 'kernel-headers'.
In Slackware 10.2 it would be 'kernel-headers-2.4.31-i386-1.tgz'
from "/10.2/slackware/d/"

Regards
 
Old 07-20-2008, 02:52 AM   #3
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
That was it. I knew I was forgetting something. I figured that out a couple days ago and just forgot to post back. Thanks for your reply.

DragonM15
 
  


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 Compile error (make bzImage) Nick_Stone Linux - Newbie 3 12-28-2006 08:03 PM
I get this error when trying to compile a custome kernel on make menuconfig golpemortal Fedora 1 12-23-2006 07:07 AM
2.6.0 Kernel Make Dep? phekno Slackware 2 12-19-2003 02:04 AM
Make dep error Obscure Slackware 8 12-15-2003 04:25 AM
Kernel compilation "make dep" error lord_clarence Red Hat 3 10-17-2003 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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