Skip to content
Advertisement

sys/types.h: No such file or directory

I am trying to compile module but get this error.

JavaScript

Here is my module file headers

JavaScript

And my Makefile

JavaScript

I have tried to search for this file

JavaScript

Here are results

JavaScript

I tried to set it as #include "/usr/include/sys/types.h"

but got following error

JavaScript

I am using Kali Linux(Debian) AMD64 platform

JavaScript

What is wrong ? Thanks

SOLVED

Sorry this was my fault, I made a typo in type and tried to include sys/types.h file, but it was not required at all all types are declared in /usr/src/linux-headers-4.5.0-kali1-common/include/linux/types.h in my case. Thanks everyone.

Advertisement

Answer

Sorry this was my fault, I made a typo in type and tried to include sys/types.h file, but it was not required at all all types are declared in /usr/src/linux-headers-4.5.0-kali1-common/include/linux/types.h in my case. Thanks everyone.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement