After
1 | dnf install kernel-headers kernel-devel |
we still failed building kernel modules for VMWare Player in fedora,
1 | vm_basic_defs.h:54:12: fatal error: stddef.h: No such file or directory |
A solution is
1 2 3 4 | # e.g. current kernel version is 5.16.12-200.fc35.x86_64 cd /usr/src/kernel/5.16.12-200.fc35.x86_64/include ln -s linux/stddef.h stddef.h ln -s linux/stdarg.h stdarg.h |
refer to:
https://stackoverflow.com/questions/54480765/how-can-i-solve-stdarg-h-no-such-file-or-directory-while-compiling-out-of-tree-l