﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
18515	vboxsf-6.0.4 not compiling on kernel-5.0.3 -> fixed after (not in) 6.0.4/5.2.26 and test builds	zd59		"My configuration:[[BR]]
Slackware64-current updated 20.3.2019[[BR]]
Kernel-5.0.3[[BR]]
Vbox-6.0.4[[BR]]

After compile/install a new kernel-5.0.3 and reboot, the boot process complains at the end that vboxsf module can not run.[[BR]]
A vboxadd-setup.log file show:

{{{
/tmp/vbox.0/vfsmod.c:235:14: error: 'MS_REMOUNT' undeclared (first use in this function); did you mean 'DT_RELCOUNT'?
}}}


I found the solution for that - source patch:

{{{
--- /opt/VBoxGuestAdditions-6.0.4/src/vboxguest-6.0.4/vboxsf/vfsmod.c	2019-03-19 16:24:00.759229219 +0100
+++ /opt/VBoxGuestAdditions-6.0.4/src/vboxguest-6.0.4/vboxsf/vfsmod.c	2019-03-19 16:27:29.967294113 +0100
@@ -40,9 +40,13 @@
 #include ""revision-generated.h""
 #include ""product-generated.h""
 #include ""VBoxGuestR0LibInternal.h""
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
+# include <uapi/linux/mount.h> /* for MS_REMOUNT */
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
 # include <linux/mount.h>
 #endif
+
 #include <linux/seq_file.h>
 
 MODULE_DESCRIPTION(VBOX_PRODUCT "" VFS Module for Host File System Access"");

}}}

But after extracting the vbox additions package and patching, there is no .configure file to run as described in a solution, just run make all do not work.

Any exact compile procedure to solve this?[[BR]]
Expecting this will be included in a next vbox release (6.0.6).

"	defect	closed	installer	VirtualBox 6.0.4	fixed	vboxsf module compile error		Linux	Windows
