View previous topic :: View next topic |
Author |
Message |
crashman n00b
Joined: 13 Apr 2002 Posts: 23 Location: Midwest City, Ok
|
Posted: Sun Apr 21, 2002 11:21 am Post subject: linux-sources and linux- headers mismatch |
|
|
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 |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Sun Apr 21, 2002 1:30 pm Post subject: |
|
|
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 |
|
|
crashman n00b
Joined: 13 Apr 2002 Posts: 23 Location: Midwest City, Ok
|
Posted: Sun Apr 21, 2002 2:32 pm Post subject: fixed module problem |
|
|
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 |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Sun Apr 21, 2002 3:03 pm Post subject: Re: fixed module problem |
|
|
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 |
|
|
Guest
|
Posted: Sun Apr 21, 2002 5:22 pm Post subject: |
|
|
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
Joined: 21 Apr 2002 Posts: 137 Location: Atlanta, GA
|
Posted: Sun Apr 21, 2002 6:57 pm Post subject: |
|
|
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 |
|
|
|