VirtualBox

Opened 8 years ago

Last modified 8 years ago

#15411 closed defect

VBox 5.0.20 kernel source broken by RHEL6.8 update — at Version 3

Reported by: ElCoyote Owned by:
Component: host support Version: VirtualBox 5.0.20
Keywords: rhel6.8 Cc:
Guest type: Linux Host type: Linux

Description (last modified by Frank Mehnert)

Hi, Right after upgrading to RHEL6.8, I noticed this:

# /etc/init.d/dkms_autoinstaller start
Starting dkms:
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make KERNELRELEASE=2.6.32-642.el6.x86_64 -C /lib/modules/2.6.32-642.el6.x86_64/build M=/var/lib/dkms/vboxhost/5.0.20/build.............(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.32-642.el6.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.20/build/make.log for more information.


When I looked at the above make log, the error that showed up was:
[....]
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/generic/RTTimerCreate-generic.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/generic/errvars-generic.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/generic/mppresent-generic.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/generic/uuid-generic.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/VBox/log-vbox.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/common/alloc/heapsimple.o
  LD [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxdrv/vboxdrv.o
  LD      /var/lib/dkms/vboxhost/5.0.20/build/vboxnetadp/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxnetadp/VBoxNetAdp.o
  LD [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxnetadp/vboxnetadp.o
  LD      /var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.o
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c: In function 'vboxNetFltLinuxPacketHandler':
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c:943: error: implicit declaration of function 'vlan_tx_tag_present'
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c:953: error: implicit declaration of function 'vlan_tx_tag_get'
make[2]: *** [/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/5.0.20/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32-642.el6.x86_64'

Change History (3)

comment:1 by ElCoyote, 8 years ago

I worked around the issue by removing the this #iddef:

#ifdef VBOX_HAVE_SKB_VLAN
# define vlan_tx_tag_get(skb)       skb_vlan_tag_get(skb)
# define vlan_tx_tag_present(skb)   skb_vlan_tag_present(skb)
#endif

comment:2 by ElCoyote, 8 years ago

Again, the compile error on RHEL6.8 is:

  gcc -Wp,-MD,/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/.VBoxNetFlt-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include -Iinclude  -I/usr/src/kernels/2.6.32-642.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-642.el6.x86_64/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-642.el6.x86_64/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -include /var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/include/VBox/SUPDrvMangling.h -I/lib/modules/2.6.32-642.el6.x86_64/build/include -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/ -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/include -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/r0drv/linux -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/vboxnetflt/ -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/vboxnetflt/include -I/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/vboxnetflt/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -Wno-declaration-after-statement -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxNetFlt_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetflt)" -D"DEBUG_HASH=36" -D"DEBUG_HASH2=24" -c -o /var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/.tmp_VBoxNetFlt-linux.o /var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c: In function 'vboxNetFltLinuxPacketHandler':
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c:943: error: implicit declaration of function 'vlan_tx_tag_present'
/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.c:953: error: implicit declaration of function 'vlan_tx_tag_get'
gmake[2]: *** [/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt/linux/VBoxNetFlt-linux.o] Error 1
gmake[1]: *** [_module_/var/lib/dkms/vboxhost/5.0.20/build/vboxnetflt] Error 2
gmake[1]: Leaving directory `/usr/src/kernels/2.6.32-642.el6.x86_64'
gmake: *** [vboxnetflt] Error 2

comment:3 by Frank Mehnert, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use