LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-23-2004, 12:21 AM   #1
Changeling
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
kernel-2.6.9


I having a hell of a time trying to get any kernel compile working. The make command doesn't
work on any kernel I've tried it on. I've never had problems before. I currently am running
slackware-current and kernel-2.6.8.1. This is the error messages I get:
HOSTCC scripts/basic/fixdep
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.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_

Any help would be appreciated. I hate to have to do a reinstall.
 
Old 10-23-2004, 05:39 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you install the kernel header package ?
 
Old 10-23-2004, 08:43 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by Cedrik
Did you install the kernel header package ?
Can you explain to me the significance? As in is it good or bad if one did install the kernel header package.

I did install the kernel header package from testing (2.6.7) from the CD. Am compiling 2.6.9 now.
 
Old 10-23-2004, 08:50 AM   #4
Changeling
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 55

Original Poster
Blog Entries: 1

Rep: Reputation: 15
What I did was download the kernel-2.6.9 from www.kernel.org and proceed to compile. I'm tried downloading three other kernel versions. Each time I do a make menuconfig, or make xconfig that error message I posted pops up. I've never had a problem before this, and I've done everything the same way. I was going to patch the 2.6.8.1 to 2.6.9 but can't. I forgot what errors popped up for that one.
 
Old 10-23-2004, 08:53 AM   #5
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Install the kernel-headers package that comes with slackware. Those are the headers used to compile glibc and are needed for compiling of some programs.
 
Old 10-23-2004, 09:35 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
As far as you kernel headers are concerned...

Commonly there's two things ... Slack will have two
lots of kernel-headers. One lot in /usr/include/linux
which you should have regardless of whether you install
the kernel-source package or not so you're able to
compile system-level code, and one under the respective
kernel-source tree (in your case /usr/src/linux-2.6.8.1/include).

Word of caution: one should NOT upgrade the /usr/include/linux
with a kernel upgrade.
 
Old 10-23-2004, 02:54 PM   #7
Changeling
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 55

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Talking

OOPs,
I did forget to install the Kernel-header package. I think I'll be able to continue now. I don't recall doing that in previous compiles. Thanks for all you help. Now the fun part begins!!
 
  


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 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 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 08:35 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