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 05-26-2006, 05:40 PM   #1
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
trying to compile kernel


I am trying to compile a new kernel and this is what it gives me:

root@slack:/usr/src/linux# make menuconfig
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/i486-slackware-linux/3.4.5/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.5/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.5/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:214: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:214: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:214: error: for each function it appears in.)
scripts/basic/fixdep.c:214: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:310: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:310: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

I upgraded gcc to slack current. I deleted the old kernel so I can't even shut the machine down because I won't be able to reboot it. Anyone know what might be up?
 
Old 05-26-2006, 06:05 PM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I think you've forgotton to install your kernel header files ...

installpkg the kernel-headers file package, for -current it's kernel-headers-2.4.32-i386-1, located in slackware/d.

Equally, there is no reason why you can't reinstall the kernel + modules from the slack disks, and the edit lilo before shutting down. Finally, even with *no* kernel on your root disk, you can boot an installation from disk 1 by passing the argument listed when you boot up the disk. Forgive me, I can't recall the exact line, but it's something like:

Code:
root=/dev/hda1 initro
obviously where hda1 is your root partition.

Good luck,
- Piete.

PS: There are very few things that you cannot fix in a linux install provided you keep boot disks (cd, floppy, memkey etc) handy and a working knowledge of how to use them =)
 
Old 05-26-2006, 06:09 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
This is the result of removepkg-ing the kernel-headers package.

Eric

PS: the command to get into your Slackware harddisk installation using the Slackware install-CD is right there on the screen after you booted from that CD. It is
Code:
bare.i root=/dev/hda1 noinitrd ro
for a root partition located on hda1.

Last edited by Alien Bob; 05-26-2006 at 06:14 PM.
 
Old 05-27-2006, 12:15 AM   #4
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480

Original Poster
Blog Entries: 1

Rep: Reputation: 51
Thanks all! Got er done! That was pretty easy actually. Got me a fresh new 2.6.16.18 kernel! Now to get the tv card working Thanks again!
 
  


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
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
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
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 11:07 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