error while building virualbox-kernel via slackbuild
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry to bump an old thread, but I'm having the same issue.
I'm running 14.2 with kernel 4.4.172. I can't get virtualbox-kernel package to build, with the same error message. I was trying to use version 5.0.40 - but I read that it was too old for kernel 4.4.172. However, I tried Virtualbox 6.0.2 and I get the same issue.
Is 4.4.172 really too new for 6.0.2? I didn't think it was a bleeding edge kernel.
on]
fWrite, /* force write access. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1098:33: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [-Wincompatible-pointer-types]
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1086:18: error: too many arguments to function 'get_user_pages'
rc = get_user_pages(pTask, /* Task for fault accounting. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:277: recipe for target '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.o' failed
make[3]: *** [/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
Makefile:1436: recipe for target '_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv' failed
make[2]: *** [_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv] Error 2
make[2]: Leaving directory '/usr/src/linux-4.4.172'
Makefile:299: recipe for target 'vboxdrv' failed
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv'
Makefile:39: recipe for target 'all' failed
make: *** [all] Error 2
virtualbox-kernel:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.