Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warum gibt es für linux-headers ein extra Paket?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
jschulz
n00b
n00b


Joined: 14 Feb 2003
Posts: 5

PostPosted: Tue Apr 06, 2004 12:38 pm    Post subject: Warum gibt es für linux-headers ein extra Paket? Reply with quote

Kann man nicht einfach die Header des installieten Kernels verwenden?
Wie "stark" darf sich die Version des linux-headers von der installierten Kernel Version unterscheiden?
Was gilt es zu beachten, wenn ich linux-headers update'e?
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Tue Apr 06, 2004 12:49 pm    Post subject: Re: Warum gibt es für linux-headers ein extra Paket? Reply with quote

jschulz wrote:
Kann man nicht einfach die Header des installieten Kernels verwenden?

Kann man schon. Aber dann muss man die Header mit der entsprechenden Version installieren. Ein automatisches Zurückgreifen auf die Header unter /usr/src ist soweit ich weiß nicht möglich...

jschulz wrote:
Wie "stark" darf sich die Version des linux-headers von der installierten Kernel Version unterscheiden?

Stark. Gerade am Anfang laufen viele Systeme mit 2.6er-Kernel aber noch mit 2.4er-Headers...

jschulz wrote:
Was gilt es zu beachten, wenn ich linux-headers update'e?

Damit ein Programm diese einkompilieren kann muss es natürlich neu emerged werden. Ein emerge -e system wäre also nicht schlecht. (Hab ich zumindest immer gemacht)
Back to top
View user's profile Send private message
danone
Guru
Guru


Joined: 18 Jan 2004
Posts: 398
Location: Germany

PostPosted: Tue Apr 06, 2004 7:41 pm    Post subject: Reply with quote

Ähm die Kernel Header sind nichts anderes als die Datein die im arch und ASM dir im usr/src liegen, das kann man per Symlink handhaben, es gibt beim kernel compiling guide sogar den Hinweis
_________________
[:: Processor: Intel Core 2 Duo E6300 ]::[ Mainboard: ASUS P5B Deluxe ]::[ GPU: nVidia 7900GTO ::]
[:: RAM: HyperX DDR2 800 ]::[ Samsung SH-183A SATA:: CREATiVE X-Fi XtremeMusic :: ]
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9547
Location: beyond the rim

PostPosted: Tue Apr 06, 2004 7:43 pm    Post subject: Reply with quote

Mal wieder Zeit für den Standard Link:
http://www.ussg.iu.edu/hypermail/linux/kernel/0007.3/0587.html
Back to top
View user's profile Send private message
jschulz
n00b
n00b


Joined: 14 Feb 2003
Posts: 5

PostPosted: Wed Apr 07, 2004 6:32 am    Post subject: Reply with quote

> The fact is, that the header files should match the library you link
> against, not the kernel you run on.

> And yes, this is what I do. My /usr/src/linux still has the old 2.2.13
> header files, even though I haven't run a 2.2.13 kernel in a _loong_
> time. But those headers were what glibc was compiled against, so those
> headers are what matches the library object files.

Danke!
Back to top
View user's profile Send private message
jschulz
n00b
n00b


Joined: 14 Feb 2003
Posts: 5

PostPosted: Wed Apr 07, 2004 10:48 am    Post subject: Reply with quote

Das wirft jetzt die Frage auf, warum portage nicht automatisch die abhängigen Pakete neu installiert?
Konkret wurden die linux-headers von 2.4.21 nach 2.4.21-r1 geupdated (schreckliches Wort).
Jetzt sollte doch wenigstens die glibc nochmal neu übersetzt werden, oder?
Weitere Abhängigkeiten habe ich in libcap, iputils und openssh (Warum openssh ?).
Desweiteren habe ich gelesen (und auch die bittere Erfahrung gemacht), daß ich bei einer neu kompilierten glibc den gcc ebenfalls nochmals übersetzen sollte, selbst wenn sich die glibc-Version nicht ändert.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum