LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-18-2007, 12:36 PM   #1
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Rep: Reputation: 15
trying to compile the 2.6.21.5 kernel


I am trying to compile and install the 2.6.21.5 kernel but I keep getting errors when running the make menuconfig command. Here is the output...

Code:
 HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/limits.h:122,
                 from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/limits.h:11,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/local_lim.h:36:26: error: 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:117:
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:206: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:206: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:206: error: for each function it appears in.)
scripts/basic/fixdep.c:206: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:306: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: unused variable 's'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Can anyone tell me what is wrong from the output or give me any advice?

thanks
 
Old 06-18-2007, 12:52 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
I'm not 100 % sure, but I think you need the kernel headers package that is coming with Slackware.
 
Old 06-18-2007, 12:56 PM   #3
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
ok then, if you are correcty, how would I go about doing that? http://packages.slackware.it?
 
Old 06-18-2007, 01:00 PM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
You can take the headers package that is on your Slackware CD. And I think that even the 2.4.33 kernel headers should be ok. What kernel do you actually have installed? You could probably without any harm install the 2.6 headers from the /extra folder instead of the 2.4 ones.

If you mount your CD you find them at $PATH_TO_CD/extra/linux-2.6.17.13/linux-headers...tgz (2.6 kernel) and $PATH_TO_CD/slackware/d/kernel-headers...tgz (2.4 kernel) -- I abbreviated them but you should find them this way without problem.

EDIT: Sorry, I didn't recognize the URL to the now official package browser but thought you were talking about a package from www.slacky.it. So yes, if you search them on http://packages.slackware.it or take them from your CD doesn't matter at all

Last edited by titopoquito; 06-18-2007 at 01:04 PM.
 
Old 06-18-2007, 01:10 PM   #5
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
well i have the 2.4.33.3 kernel installed right now, the one that comes default with slackware 11.
 
Old 06-18-2007, 01:26 PM   #6
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
I found the kernel-headers-2.6.21.5 package on the site but cant find the linux-headers. I can't use the disc i got cause for some reason it isn't mounting and when I try to install the kernel headers my kernel is to old to install that so.. idk what to do. Anyone got an idea?
 
Old 06-18-2007, 01:39 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
I thought kernel headers are linux headers, but please someone correct me if that's wrong. What Slackware version and kernel have you installed now? 11.0 with 2.4.33 kernel? Looks like you have searched for "Slackware current" packages?
I have Slackware 11.0 with the 2.6 kernel and the 2.6 headers. I get no error if I untar the 2.6.21.5 sources and call "make menuconfig". I don't know if something else might be missing or screwed up, but I think someone else could jump in now ...
 
Old 06-18-2007, 02:30 PM   #8
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
you probably don't want to install the headers from slackware current. because you almost certainly will bork things if your kernel headers are compiled against a different version of glibc. (or something like that)

find the slackware-11.0 headers and install them. any flavor should work, AFAIK the 2.4 one should be fine as well.

this is confusing, but you don't actually need the 2.6.21.5 headers, just some from a slackware 11 kernel.

also remember to make mrproper before trying anything with a 2.6 kernel.
 
Old 06-19-2007, 01:34 PM   #9
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
when i try to install the headers for 2.4.33.3 it give me this output.

Code:
Installing package headers...
PACKAGE DESCRIPTION:
FATAL: kernel too old
/sbin/installpkg: line 220:  5661 Segmentation fault      /sbin/ldconfig
Executing install script for headers...
I see in there it says my kernel is to old, how is that when my kernel is the same as the headers that I'm trying to install?
 
Old 06-19-2007, 02:50 PM   #10
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,784

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Quote:
Originally Posted by underworld288
FATAL: kernel too old
Segmentation fault /sbin/ldconfig
/sbin/ldconfig complains about your running kernel. It seems as if you had installed packages from slackware-current without reading the instructions. It is interesting that it still works at all, with glibc-2.5 on a 2.4 kernel (?)
 
Old 06-19-2007, 03:00 PM   #11
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
oh well do you think i should even try and continue building the updated kernel on this machine or reinstall slackware?
 
Old 06-19-2007, 04:38 PM   #12
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
do you still have your slack-11 kernel installed too?

if so just change /etc/lilo.conf to point at the old slack-11 kernel, then boot into that.

if not I'd try installpkg <slack-11 disk>/<kernel that used to work>.tgz

update /etc/lilo.conf
run /sbin/lilo

you can download a 2.6.XX.Y kernel from kernel.org (use a mirror) or use the source off a slack disc

<edit> ++ you can always use slack CD1 (or DVD) as a rescue disk by booting it and then chrooting into your old root directory.
 
Old 06-19-2007, 09:49 PM   #13
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
oh well thanks for the info but I just went ahead and installed slackware again, thank anyway though. Bioe007, I noticed you have a link on how to do this sort of thing, its actually really helpful. I tell you if it got me through the whole process or if I run into any problem though.
 
Old 06-19-2007, 10:53 PM   #14
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
alright I'm at the configuring the kernel part and I cant start any of the graphical menues. I've tried xconfig, command not found is what it said, I also tried menuconfig, another command not found. What should I do now?
 
Old 06-20-2007, 03:35 AM   #15
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
Oh well, you are root when you try this?
 
  


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
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge) Lannix Linux - Hardware 5 05-01-2007 12:29 PM
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM
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
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
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 01:28 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