Re: Missing linux-headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/22 15:01, neutrino network wrote:
> How to update linux-headers for kernel (6.0.0) compiled from source in centos?
> 
> System has kernel 4.18 headers while kernel is 6.0, however userspace program generates  error e.g*fatal error: linux/mutex.h: No such file or directory*

linux/mutex.h is a kernel header.  User-space programs don't use those.

Are you trying to compile an out-of-tree module by any chance?  If so, you should
probably install the kernel development headers packaged by your distribution,
and point your makefile to those (or you can just point it to the directory where
you built your kernel).

Hope that helps.

Scott.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux