Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

linux-sources and linux- headers mismatch

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
crashman
n00b
n00b
Posts: 23
Joined: Sat Apr 13, 2002 12:29 am
Location: Midwest City, Ok

linux-sources and linux- headers mismatch

  • Quote

Post by crashman » Sun Apr 21, 2002 11:21 am

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.
Top
Malakin
Veteran
Veteran
User avatar
Posts: 1692
Joined: Sun Apr 14, 2002 4:19 am
Location: Victoria BC Canada

  • Quote

Post by Malakin » Sun Apr 21, 2002 1:30 pm

Maybe this explains the errors I had trying to load alsa modules. I didn't care enough to look into it at the time.
Top
crashman
n00b
n00b
Posts: 23
Joined: Sat Apr 13, 2002 12:29 am
Location: Midwest City, Ok

fixed module problem

  • Quote

Post by crashman » Sun Apr 21, 2002 2:32 pm

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.
Top
Nitro
Bodhisattva
Bodhisattva
User avatar
Posts: 660
Joined: Mon Apr 08, 2002 11:20 pm
Location: San Francisco
Contact:
Contact Nitro
Website

Re: fixed module problem

  • Quote

Post by Nitro » Sun Apr 21, 2002 3:03 pm

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.
Top
Guest

  • Quote

Post by Guest » Sun Apr 21, 2002 5:22 pm

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.
Top
chadh
Moderator
Moderator
User avatar
Posts: 137
Joined: Sun Apr 21, 2002 6:04 pm
Location: Atlanta, GA

  • Quote

Post by chadh » Sun Apr 21, 2002 6:57 pm

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
Top
Post Reply

6 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy