LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel includes do not match current kernel (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-includes-do-not-match-current-kernel-171751/)

rafc 04-18-2004 04:46 PM

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. :)

AutOPSY 04-19-2004 12:42 AM

you need the 2.4.20 kernel sources and make a sysmlink
ln -s /usr/src/linux-2.4.20 /usr/src/linux .

rafc 04-19-2004 02:26 AM

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.

rafc 04-19-2004 09:03 PM

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.

andibe 04-21-2004 06:18 PM

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. :)

ttku 04-23-2010 01:28 AM

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


All times are GMT -5. The time now is 03:32 AM.