On Fri, Jan 31, 2020 at 8:52 PM stan <upaitag(a)zoho.com> wrote:
On Fri, 31 Jan 2020 09:36:52 -0600
parspes <parspes(a)gmail.com> wrote:
> The error message provided by the anti-virus vendor's package
> basically states that the kernel module cannot be compiled for kernel
> x.x.x.x as the kernel headers or the kernel source for kernel x.x.x.x
> are not installed. Thanks!
If the kernel for which you have headers isn't installed, go here,
https://koji.fedoraproject.org/koji/packageinfo?packageID=8
and get the binary kernel packages for the kernel and install them,
dnf -C install [kernel packages].
At that point, you can reboot into the kernel that matches the headers
and build your package. It has a hard requirement for the match.
Alternatively, you could edit the make file and change the check on
kernel to be a > rather than an =. That is, allow the package to build
with kernel versions greater than the header version.
_______________________________________________
While technically correct, this is not relevant to this context.
Kernel-headers is for building userspace and versioning really doesn't
matter much. You need the kernel-devel package (which is built with every
kernel). Your kernel-devel package has to match your kernel version that
you are building a module for.