VirtualBox

Ticket #15411 (closed defect: fixed)

Opened 19 months ago

Last modified 17 months ago

VBox 5.0.20 kernel source broken by RHEL6.8 update => Fixed in SVN

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

Description (last modified by frank) (diff)

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

comment:1 Changed 19 months ago by ElCoyote

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 Changed 19 months ago by ElCoyote

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 Changed 19 months ago by frank

  • Description modified (diff)

comment:4 Changed 19 months ago by frank

Any hint where to grab the sources from? CentOS6 is still at 2.6.32-573.26.1...

comment:5 Changed 19 months ago by ElCoyote

Hi Frank, You could register for the RHEL trial and download the RHEL6.8 distro with sources and stuff.

Otherwise the sources are all available here:  http://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS

Here's the 6.8 kernel:  http://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-2.6.32-642.el6.src.rpm

Here's the 6.8 glibc:  http://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/glibc-2.12-1.192.el6.src.rpm

Thanks, Vincent

Last edited 19 months ago by ElCoyote (previous) (diff)

comment:6 Changed 18 months ago by frank

  • Summary changed from VBox 5.0.20 kernel source broken by RHEL6.8 update to VBox 5.0.20 kernel source broken by RHEL6.8 update => Fixed in SVN

Thanks! The latest 5.0 test builds contain the fix, see also r60995.

comment:7 Changed 18 months ago by pycloux

Hi Guys, I "yum updated" my Centos and I got a similar error log:

make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/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.1.1.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-642.1.1.el6.x86_64/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-642.1.1.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 /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/2.6.32-642.1.1.el6.x86_64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxnetflt/ -I/tmp/vbox.0/vboxnetflt/include -I/tmp/vbox.0/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=60" -D"DEBUG_HASH2=11" -c -o /tmp/vbox.0/linux/.tmp_VBoxNetFlt-linux.o /tmp/vbox.0/linux/VBoxNetFlt-linux.c
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxPacketHandler’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:943: error: implicit declaration of function ‘vlan_tx_tag_present’
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:953: error: implicit declaration of function ‘vlan_tx_tag_get’
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxnetflt] Error 2

My kernel-devel "2.6.32-642.1.1.el6.x86_64" looks fine as well my gclib. Any clue ? Should I wait for the 5.0.21 ?

comment:8 Changed 18 months ago by frank

As written above, there are test builds containing the fix including an rpm package for EL6.

comment:9 Changed 17 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 5.0.22.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use