Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

virtualbox not working after upgrade

Started by meijster, August 26, 2023, 11:17:20 AM

Previous topic - Next topic

meijster


Hi all,

After a daily update, I got a new kernel (uname -a reports 6.4.0-3-amd64).
The problem now is that my virtualbox (7.0.10) fails. It reports that
the vboxdrv kernel driver is not loaded and that it may help to reconfigure using /sbin/vboxconfig (as root).
I did that, but it fails to build the kernel driver.

So, now I am stuck. That is really problematic for me, since I need to access some files that are in my virtualbox image.

Anyone having the same problem that know what to do now?


pavroo

Hi,
So do what the message says, it a terminal:
sudo /sbin/vboxconfig
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

meijster

Well, that runs into a loop with a not so helpful error message:
There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.


meijster

#3
But using "more /var/log/vbox-setup.log" I ghet (sorry for the very long log):

Building the main VirtualBox module.
Building the net filter module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.4.0-3-amd64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules
make[1]: warning: -j8 forced in submake: resetting jobserver mode.
make -f /usr/src/linux-headers-6.4.0-3-common/scripts/Makefile.build obj=/tmp/vbox.0 need-builtin=1 need-modorder=1
# cmd_mod /tmp/vbox.0/vboxnetflt.mod
  printf '%s
'  linux/VBoxNetFlt-linux.o VBoxNetFlt.o SUPR0IdcClient.o SUPR0IdcClientComponent.o linux/SUPR0IdcClient-linux.o | awk '!x[$0]++ { print("/tmp/vbox.0/"$0) }' > /tmp/vbox.0/vbo
xnetflt.mod
# CC [M]  /tmp/vbox.0/linux/VBoxNetFlt-linux.o
  gcc-13 -Wp,-MMD,/tmp/vbox.0/linux/.VBoxNetFlt-linux.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-he
aders-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-comm
on/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/includ
e/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -W
undef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return
-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops
=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -m
indirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=
16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-large
r-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-prote
ction -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -W
no-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconse
rve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -W
no-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT
_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME
='"VBoxNetFlt_linux"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt -c -o /tmp/vbox.0/linux/VBoxNetFlt-linux.o /tmp/vbox.0/linux/VBoxNetFlt-linux.c 
# CC [M]  /tmp/vbox.0/VBoxNetFlt.o
  gcc-13 -Wp,-MMD,/tmp/vbox.0/.VBoxNetFlt.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.4.0-
3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/include/u
api -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/kcon
fig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -Werro
r=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-f
ormat-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-8038
7 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-bra
nch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-d
elete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048
-fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -m
record-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-
overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -W
error=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declarati
on-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE
 -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"VBoxNetFl
t"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt -c -o /tmp/vbox.0/VBoxNetFlt.o /tmp/vbox.0/VBoxNetFlt.c 
# CC [M]  /tmp/vbox.0/SUPR0IdcClient.o
  gcc-13 -Wp,-MMD,/tmp/vbox.0/.SUPR0IdcClient.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.
4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/inclu
de/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/
kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -W
error=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -W
no-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-
80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect
-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -f
no-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2
048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -p
g -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-strin
gop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stac
k -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-decla
ration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_
ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"SUPR0
IdcClient"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt -c -o /tmp/vbox.0/SUPR0IdcClient.o /tmp/vbox.0/SUPR0IdcClient.c 
# CC [M]  /tmp/vbox.0/SUPR0IdcClientComponent.o
  gcc-13 -Wp,-MMD,/tmp/vbox.0/.SUPR0IdcClientComponent.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-h
eaders-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-com
mon/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/inclu
de/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -
Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=retur
n-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loop
s=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -
mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry
=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larg
er-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-prot
ection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -
Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fcons
erve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -
Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOU
T_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAM
E='"SUPR0IdcClientComponent"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt -c -o /tmp/vbox.0/SUPR0IdcClientComponent.o /tmp/vbox.0/SUPR0IdcClientComponent
.c 
# CC [M]  /tmp/vbox.0/linux/SUPR0IdcClient-linux.o
  gcc-13 -Wp,-MMD,/tmp/vbox.0/linux/.SUPR0IdcClient-linux.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linu
x-headers-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-
common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/in
clude/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wal
l -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=re
turn-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-l
oops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-table
s -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-en
try=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-l
arger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-p
rotection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncatio
n -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fc
onserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pi
e -Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WIT
HOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASE
NAME='"SUPR0IdcClient_linux"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt -c -o /tmp/vbox.0/linux/SUPR0IdcClient-linux.o /tmp/vbox.0/linux/SUPR0IdcClient
-linux.c 
# cmd_check_local_export /tmp/vbox.0/linux/SUPR0IdcClient-linux.o
  /usr/src/linux-headers-6.4.0-3-common/scripts/check-local-export /tmp/vbox.0/linux/SUPR0IdcClient-linux.o
# cmd_gen_symversions_c /tmp/vbox.0/linux/SUPR0IdcClient-linux.o
  if nm /tmp/vbox.0/linux/SUPR0IdcClient-linux.o 2>/dev/null | grep -q __ksymtab; then  gcc-13 -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/linux/.SUPR0IdcClient-linux.o.d -nostdinc
-I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4
.0-3-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-he
aders-6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/incl
ude/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -
fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-m
mx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-
rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-br
anch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-
truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-va
riable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-function
s=16 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-arra
y-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werro
r=designated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-commo
n/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -
DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"SUPR0IdcClient_linux"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_
MODNAME=kmod_vboxnetflt /tmp/vbox.0/linux/SUPR0IdcClient-linux.c | scripts/genksyms/genksyms  -r /dev/null >> /tmp/vbox.0/linux/.SUPR0IdcClient-linux.o.cmd; fi
# cmd_check_local_export /tmp/vbox.0/SUPR0IdcClientComponent.o
  /usr/src/linux-headers-6.4.0-3-common/scripts/check-local-export /tmp/vbox.0/SUPR0IdcClientComponent.o
# cmd_gen_symversions_c /tmp/vbox.0/SUPR0IdcClientComponent.o
  if nm /tmp/vbox.0/SUPR0IdcClientComponent.o 2>/dev/null | grep -q __ksymtab; then  gcc-13 -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.SUPR0IdcClientComponent.o.d -nostdinc -I/usr
/src/linux-headers-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-c
ommon/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-
6.4.0-3-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/li
nux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-co
mmon -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mn
o-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-se
tup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-c
s-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-trunca
tion -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable
 -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -
Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-boun
ds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=desi
gnated-init -Wno-packed-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/incl
ude -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WI
TH_VBOX -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"SUPR0IdcClientComponent"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MOD
NAME=kmod_vboxnetflt /tmp/vbox.0/SUPR0IdcClientComponent.c | scripts/genksyms/genksyms  -r /dev/null >> /tmp/vbox.0/.SUPR0IdcClientComponent.o.cmd; fi
# cmd_check_local_export /tmp/vbox.0/SUPR0IdcClient.o
  /usr/src/linux-headers-6.4.0-3-common/scripts/check-local-export /tmp/vbox.0/SUPR0IdcClient.o
# cmd_gen_symversions_c /tmp/vbox.0/SUPR0IdcClient.o
  if nm /tmp/vbox.0/SUPR0IdcClient.o 2>/dev/null | grep -q __ksymtab; then  gcc-13 -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.SUPR0IdcClient.o.d -nostdinc -I/usr/src/linux-headers
-6.4.0-3-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/inc
lude/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/inc
lude/linux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types
.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar
 -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic
 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunctio
n-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-o
verflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const
-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after
-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size
-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-p
acked-not-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/
 -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WIT
H_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"SUPR0IdcClient"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt /tmp/v
box.0/SUPR0IdcClient.c | scripts/genksyms/genksyms  -r /dev/null >> /tmp/vbox.0/.SUPR0IdcClient.o.cmd; fi
# cmd_check_local_export /tmp/vbox.0/VBoxNetFlt.o
  /usr/src/linux-headers-6.4.0-3-common/scripts/check-local-export /tmp/vbox.0/VBoxNetFlt.o
# cmd_gen_symversions_c /tmp/vbox.0/VBoxNetFlt.o
  if nm /tmp/vbox.0/VBoxNetFlt.o 2>/dev/null | grep -q __ksymtab; then  gcc-13 -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.VBoxNetFlt.o.d -nostdinc -I/usr/src/linux-headers-6.4.0-3
-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.4.0-3-common/include -I./include -I/usr/src/linux-headers-6.4.0-3-common/arch/x86/include/uap
i -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.4.0-3-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.4.0-3-common/include/lin
ux/compiler-version.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.4.0-3-common/include/linux/compiler_types.h -D__K
ERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.4.0-3-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PI
E -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
 -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-re
d-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return
=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow
-Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variabl
e -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wdeclaration-after-stateme
nt -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-
than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-no
t-aligned -g -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-6.4.0-3-common/include -I/tmp/vbox.0/ -I/tmp/
vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDEN
ING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"VBoxNetFlt"' -DKBUILD_MODNAME='"vboxnetflt"' -D__KBUILD_MODNAME=kmod_vboxnetflt /tmp/vbox.0/VBoxNe
tFlt.c | scripts/genksyms/genksyms  -r /dev/null >> /tmp/vbox.0/.VBoxNetFlt.o.cmd; fi
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function 'vboxNetFltLinuxForwardToIntNetInner':
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1570:40: error: implicit declaration of function 'skb_gso_segment'; did you mean 'skb_gso_reset'? [-Werror=implicit-function-declaration]
 1570 |            struct sk_buff *pSegment = skb_gso_segment(pBuf, 0 /*supported features*/);
      |                                        ^~~~~~~~~~~~~~~
      |                                        skb_gso_reset
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1570:40: warning: initialization of 'struct sk_buff *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.4.0-3-common/scripts/Makefile.build:257: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.4.0-3-common/Makefile:2057: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:133: vboxnetflt] Error 2

pavroo

The 6.4.x kernel is not full supported by VirtualBox yet.
You should install an older kernel and headers:
- sparky 7 - 5.15.x lts
- sparky 8 - 6.1.x lts
then reboot to the newly installed kernel and try again to build the vbox module.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

meijster

OK, but it worked fine with my previous kernel (I think that was 6.4-01).
How can I downgrade and make sure that the next update will not undo this?

meijster

Just another update (maybe there are other users with the same problem, that are interested).

I now downgraded to my previous kernel (being 6.4.0-2-amd64) and everything works fine now.
Apparently something changed from 6.4.0-2-amd64 to 6.4.0-3-amd64 that break the building of the vbox kernel driver.

So, for the time being I will stick to 6.4.0-2-amd64. Still, I would like to know how I can prevent that a future update will replace this kernel by 6.4.0-3-amd64 again.
 

pavroo

Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

View the most recent posts on the forum