LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   modversions.h does not exist, how to re create it ?? (https://www.linuxquestions.org/questions/linux-newbie-8/modversions-h-does-not-exist-how-to-re-create-it-839130/)

argondos 10-19-2010 05:13 PM

modversions.h does not exist, how to re create it ??
 
Hello,

I've had some (lots) of problems trying to install snd_bt_sco in order to make my bluetooth headset work on my Debian lenny, and I ended up installing alsa.
However, even if the ./configure works perfectly, the make sends the following error :
Code:

cc1: error: /lib/modules/2.6.26-2-686/build/include/linux/modversions.h: No such file or directory
I've looked in my root directory with the find command, and there's no modversions.h anywhere on my computer.
I've also tried to reinstall linux headers, but debian tells me they're up to date (either with apt-get, build-essential or synaptic). I've also read on the internet that I had to rebuild the kernel, but I would prefer to avoid this method as I am a Linux newbie, and that I didn't installed Debian myself on this computer.

Is there another way to get this modversions.h, or even a place to download it ??

Thanks for your answers !!

AlucardZero 10-19-2010 05:20 PM

http://packages.debian.org/search?se...table&arch=any

apt-get reinstall linux-headers-2.6.26-2-686

will place it in /usr/src/linux-headers-2.6.26-2-686/include/config/

argondos 10-19-2010 05:31 PM

EDIT : The command given above still does not work, but I have no more weird error message about linux-headers not existing, it was just that I mispelled headers.

Anyway, even after doing apt-get remove linux-headers-`uname -r` and apt-get install linux-headers-`uname -r`, I still got the original error when trying to make alsa

any clue ??

alan99 10-19-2010 06:06 PM

What do you mean "tried to install snd_bt_sco"? Did you try to build this module with the module-assistant package? Do you have the kernel sources? I built my own kernel and the modversions.h seems to be in the /include/linux/config/ directory of the build area. However, mine seems to be empty. What is the hardware adapter you are using on your machine? Although my bluetooth seems to be supported by kernel 2.6.32 (lsmod shows the bluetooth module loaded) I am not sure as I don't have any bluetooth devices to connect to.

argondos 10-19-2010 06:37 PM

Quote:

What is the hardware adapter you are using on your machine?
I am using the implemented bluetooth dongle of my laptop. The gnome-bluetooth program manage to detect my headset, but it is only meant to send files via bluetooth.

Quote:

What do you mean "tried to install snd_bt_sco"?
I downloaded the sources in order to install it (I think I tried with a package too, but I'm not sure anymore, I've try a lot of things to make it work ...). When I do so, I have a message saying that snd_bt_sco needs other programs to be installed, so I downloaded bluez, that needed other programs to work, among wich alsa, wich needed several libraries, including modversion.h (I managed to install the other)

Quote:

Do you have the kernel sources?
I'm afraid not. In fact I'm using a laptop given to me by my school, and as I am studying abroad for this year, I can't reach them...


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