Ubuntu – Missing asm/types.h file

kernelmake

I have been trying to compile a very old program actual meant for Kernel

I previously had an issue Missing Modversions.h which is solved now, but there is another issue.

In file included from /lib/modules/3.8.0-29-generic/build/include/linux/types.h:5:0,
             from /lib/modules/3.8.0-29-generic/build/include/linux/list.h:4,
             from /lib/modules/3.8.0-29-generic/build/include/linux/module.h:9,
             from kaodv-mod.c:30:
/lib/modules/3.8.0-29-generic/build/include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory
compilation terminated.
make[1]: *** [kaodv-mod.o] Error 1
make[1]: Leaving directory `/home/vm1/aodv-12-12-13/lnx'
make: *** [kaodv] Error 2 

The file /lib/modules/3.8.0-29-generic/build/include/uapi/linux/types.h is a linux header file, I don`t understand how such an error could occur.

Other Informations

OS: Ubuntu 12.04
Kernel Version: 3.8.0-29
Program I`m trying to compile:[AODV-UU][2]

Please help me fix it.

Best Answer

This file has been moved. In your Kernel it will be at include/uapi/asm-generic/types.h

Solution

  • Update the reference in types.h but I'm not sure if it is possible.

or

  • Compile this program against it's supported Kernel version, if you have that info.
Related Question