Missing modversions.h
I`m trying to compile a program, which was actually designed for Linux OS based on kernel 2.4.
When I run the make command, I get the following error
/lib/modules/3.8.0-29-generic/build/include/linux/modversions.h: No such file or directory
So I tried to locate the file modversions.h manually by running the command
sudo find / modversions.h
but I could not find any.
I tried the following
cd /usr/src/linux-headers-3.8.0-29/include/linux
make update-modverfile
but got the following error
make: *** No rule to make target `update-modverfile'. Stop.
I also googled about this missing file and it looks to me like this is a common issue with many applications designed for older kernels, so what possibly I could do to fix this issue.
Please to provide your suggestions.
Other Informations
OS: Ubuntu 12.04
Kernel Version: 3.8.0-29
Program I`m trying to compile:AODV-UU
Solution 1:
According to Ubuntu's package search, the file you are looking for is part of the package linux-headers-3.8.0-29-generic. Its full path, according to that package's file list, is
/usr/src/linux-headers-3.8.0-29-generic/include/config/modversions.h