LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 11-06-2006, 06:23 PM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Custom kernel + old headers ?


I'm trying to get my Slackware running as is described on http://users.piuha.net/martti/comp/s...slackware.html. The purpose is to have a truly minimal Slackware installation and to use pkgsrc for installing all other software.

At one point, the author shows a list of packages that should not be removed. None of the kernel-related packages, not even the kernel-headers are in that list. He then runs following code before building a custom kernel.

Code:
# cd /usr/include
# rm -rf asm* linux
# ln -s /usr/src/linux/include/linux
# ln -s /usr/src/linux/include/asm-i386
# ln -s asm-i386 asm
# ln -s /usr/src/linux/include/asm-generic
However, I've read in another thread that the kernel headers should be the same ones against which glibc was compiled. Is this a flaw in this HOWTO or am I missing something?
 
Old 11-07-2006, 05:30 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
The kernel supplies it's own headers. The pkg kernel-headers is used for compiling other software and shouldn't be changed.

Head over to amigolinux.org for your choice of a few hundred programs for the system you are building. There are binary packages and sources also. Try the PkgBuild packaging system:
http://distro.ibiblio.org/pub/linux/...migo-PkgBuild/
 
Old 11-07-2006, 07:01 AM   #3
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
The 2.6.18.1 kernel I downloaded has a headers_install make target. I don't understand why this is necessary if only the headers glibc was compiled against should be in /usr/include.
 
Old 11-07-2006, 10:28 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
You should definitely not run the commands that you posted in that code block!

There is enough information present in this Wiki as well as on the Slackware CD's that tell you what must be in /usr/include as part of the kernel-headers package (linux,asm and asm-386) and why that should not be symlinks to parts of the linux kernel source in /usr/src/linux. That part of the HOWTO you were reading is bad. The thread you linked to has the right info.

Eric
 
Old 11-07-2006, 10:29 AM   #5
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Alien Bob
You should definitely not run the commands that you posted in that code block!

There is enough information present in this Wiki as well as on the Slackware CD's that tell you what must be in /usr/include as part of the kernel-headers package (linux,asm and asm-386) and why that should not be symlinks to parts of the linux kernel source in /usr/src/linux. That part of the HOWTO you were reading is bad. The thread you linked to has the right info.
I started suspecting something like that. Thanks for the confirmation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
Sending mail from shell: how to define custom headers? ricky_ds Linux - Software 3 06-22-2005 07:58 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration