I’ve just installed the latest linux510 (via mhwd-kernel).
During the post-install configuration, there is an error building the virtualbox host modules:
(2/2) Install DKMS modules
==> dkms install --no-depmod -m vboxhost -v 6.1.16_OSE -k 4.19.163-1-MANJARO
==> dkms install --no-depmod -m vboxhost -v 6.1.16_OSE -k 5.4.85-1-MANJARO
==> dkms install --no-depmod -m vboxhost -v 6.1.16_OSE -k 5.10.2-2-MANJARO
Error! Bad return status for module build on kernel: 5.10.2-2-MANJARO (x86_64)
Consult /var/lib/dkms/vboxhost/6.1.16_OSE/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m vboxhost -v 6.1.16_OSE -k 5.10.2-2-MANJARO' returned 10
From examining the log file mentioned, I see that there is what appears to be a missing function header:
/var/lib/dkms/vboxhost/6.1.16_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:560:34: error: implicit declaration of function ‘alloc_vm_area’ [-Werror=implicit-function-declaration]
560 | pMemLnx->pArea = alloc_vm_area(pMemLnx->Core.cb, papPtes); /* Note! pArea->nr_pages is not set. */
| ^~~~~~~~~~~~~
Is there a headers package that should be (re)installed, or is this an error that will need to be fixed for the next update?
That is installed, but the kernel installs always run a dkms install that builds virtualbox-host-dkms modules – is that an obsolete or redundant approach?
Thanks.
I guess it’s one of those things that had been hanging around for aeons (or at least since this machine was initially set up with Manjaro which was probably late 2012 or early 2013).