Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux-sources and linux- headers mismatch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
crashman
n00b
n00b


Joined: 13 Apr 2002
Posts: 23
Location: Midwest City, Ok

PostPosted: Sun Apr 21, 2002 11:21 am    Post subject: linux-sources and linux- headers mismatch Reply with quote

Why are linux-sources version 2.4.19-r1 and linux-headers are 2.4.18? I'm trying to learn to write device drivers from the Linux Device Drivers book and the toy program will compile fine, but it won't load due to this version mismatch.
I could unmerge the linux-headers package and symlink to the kernel source, but that would probably get clobbered during an update.
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Sun Apr 21, 2002 1:30 pm    Post subject: Reply with quote

Maybe this explains the errors I had trying to load alsa modules. I didn't care enough to look into it at the time.
Back to top
View user's profile Send private message
crashman
n00b
n00b


Joined: 13 Apr 2002
Posts: 23
Location: Midwest City, Ok

PostPosted: Sun Apr 21, 2002 2:32 pm    Post subject: fixed module problem Reply with quote

I fixed my problem by makeing a few defines in the source (__KERNEL__, MODULE) and explicitely pointing to the kernel sources (-I/usr/src/linux/include). That still doesn't explain the mismatch. If the includes didn't change between 2.4.18 and 2.4.19 (very likely) there shouldn't be any problem with app compiles, but this may not always be true. Maybe it's time I learned to write an ebuild and fix this.
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sun Apr 21, 2002 3:03 pm    Post subject: Re: fixed module problem Reply with quote

crashman wrote:
If the includes didn't change between 2.4.18 and 2.4.19 (very likely) there shouldn't be any problem with app compiles, but this may not always be true.


There isn't a 2.4.19 stable kernel out yet, so Gentoo gets a 2.4.19 kernel by applying patches to the stable 2.4.18 source tree. Probably wanted to stick with stable kernel headers.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Apr 21, 2002 5:22 pm    Post subject: Reply with quote

I think the headers must stay at the same version as they were when GCC (or maybe Glibc, or possibly both) were compiled, which could explain why they are 'only' at version 2.4.18.
Back to top
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Sun Apr 21, 2002 6:57 pm    Post subject: Reply with quote

Anonymous wrote:
I think the headers must stay at the same version as they were when GCC (or maybe Glibc, or possibly both) were compiled, which could explain why they are 'only' at version 2.4.18.


That is right. linux-headers should stay the same as those use to compile glibc (per Linus -- google for it).
_________________
Chad
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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