LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2004, 03:46 PM   #1
rafc
Member
 
Registered: Apr 2004
Posts: 87

Rep: Reputation: 15
kernel includes do not match current kernel


Hi,

I've been trying to install the driver for my radeon 9700. I followed the steps mentioned on the ati website and encountered a first problem. Luckily this was mentioned: 1) tried to create the /usr/src/linux symlink but that didn't resolve the problem. So next 2) had to try build and install 'a kernel module for the ati proprietary linux driver' myself.
Again, followed the easy steps mentioned but this time I got another error which isn't mentioned how to deal with. The first two steps for building the fglrx kernel module is
1) cd / lib/modules/fglrx/buil_mod (ofcourse no problem)
2) sh make.sh
This resulted in the following error message:

error: kernel includes at /lob/modules/2.2.20-4GB-athlon/buil/include do not match current kernel, they are versioned as 2.4.20-4GB instead of 2.4.20-4GB-athlon
You might need to adjust your symlinks:
-/usr/include
-/usr/src/linux

Help appreciated.
 
Old 04-18-2004, 11:42 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
you need the 2.4.20 kernel sources and make a sysmlink
ln -s /usr/src/linux-2.4.20 /usr/src/linux .
 
Old 04-19-2004, 01:26 AM   #3
rafc
Member
 
Registered: Apr 2004
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you for the reply. Unfortunately it doesn't solve the problem and the same error comes back. The source is installed from the cd and it reads linux-2.4.20.SuSE there, so I tried that also. I tried a command (as on the ati site stated) which shows the symlink is now there (showing linux->linux-2.4.20.SuSE) but no results. I'm probably doing something very basic wrong though.
 
Old 04-19-2004, 08:03 PM   #4
rafc
Member
 
Registered: Apr 2004
Posts: 87

Original Poster
Rep: Reputation: 15
Anyone? It's really annoying since when I tried to install the driver it won't let me run kde anymore. I hope to have it back when I have this driver installed.
 
Old 04-21-2004, 05:18 PM   #5
andibe
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
This means that the kernel version you are using is not equal the version in /usr/src/linux/include/linux/version.h

Type
uname -r

That gives out the exact name of your kernel. Then go to /usr/src/linux/include/linux/version.h file and edit it. Its one of the first lines, and it must be the very same as your kernel version.

Edit: If you manage installing the driver tell me how you did it.
 
Old 04-23-2010, 12:28 AM   #6
ttku
LQ Newbie
 
Registered: Jul 2009
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
Smile

Add #define UTS_RELEASE kernel_version -> include/linux/version.h
Do not need recompile the code.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-Source doesn't match kernel WilkyStyle Linux - Software 3 09-05-2005 01:02 AM
Mandrake 10.1, & 10.2 kernel and kernel-source match up. raxxal Mandriva 1 03-30-2005 10:57 PM
Kernel includes Micro420 Linux - Software 2 03-13-2005 01:00 PM
compile a new kernel with setting default to current kernel mrpc_cambodia Red Hat 6 07-06-2004 11:32 AM
kernel 2.6 - missing includes poison Slackware 3 12-18-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration