KMK Fails to compile vboxvideo_drm
Posted: 20. Feb 2014, 19:02
Hello all,
I am trying to build Virtualbox 4.3.6 from source on Scientific Linux. KMK is failing when it starts to compile vboxvideo_drm.
I ran the ./configure with the --disable-libvpx (SL does not support the version needed for VBox) and the --enable-vde options. It came back clean and ready to move on. I then preceded to run source env.sh and then kmk.
Here is a snippet from the output of the terminal right before it fails/stops:
I am a bit lost as to how I need to troubleshoot this. I have not been able to find any working solutions through google and have ran out of ideas.
Any help is greatly appreciated and thank you in advance.
VirtualBox version (that is the one I am trying to build): 4.3.6
Kernel Version: Linux 2.6.32-431.5.1.el6.x86_64
I am trying to build Virtualbox 4.3.6 from source on Scientific Linux. KMK is failing when it starts to compile vboxvideo_drm.
I ran the ./configure with the --disable-libvpx (SL does not support the version needed for VBox) and the --enable-vde options. It came back clean and ready to move on. I then preceded to run source env.sh and then kmk.
Here is a snippet from the output of the terminal right before it fails/stops:
Code: Select all
kBuild: Linking vboxsf
kBuild: Compiling vboxvideo_drm - /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c
In file included from /lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/drm/drmP.h:53,
from /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c:79:
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h: In function ‘pci_hp_register’:
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: implicit declaration of function ‘KBUILD_STR’ [-Wimplicit-function-declaration]
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: ‘vboxvideo’ undeclared (first use in this function)
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: for each function it appears in.)
kmk: *** [/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o] Error 1
The failing command:
@gcc -c -O2 -nostdinc -iwithprefix include -include /lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wstrict-prototypes -Wno-pointer-sign -Wno-sign-compare -fdiagnostics-show-option -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -include /home/user/VirtualBox-4.3.6/include/VBox/VBoxGuestMangling.h -fshort-wchar -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time -Wno-sign-compare -Wdeclaration-after-statement -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/asm-i386/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/asm-x86/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/drm -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/asm/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/generated -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/generated/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/generated/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include -I/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/dtrace -I/home/user/VirtualBox-4.3.6/include -I/home/user/VirtualBox-4.3.6/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D__KERNEL__ -DMODULE -DIN_GUEST -DIN_GUEST_R0 -DMODULE -DIN_RT_R0 -DVBOXGUEST -DVBOX_WITH_HGCM -DKBUILD_MODNAME=KBUILD_STR\(vboxvideo\) -DKBUILD_BASENAME=KBUILD_STR\(vboxvideo\) -DDEBUG_HASH=2 -DDEBUG_HASH2=3 -DRT_NO_EXPORT_SYMBOL -Wp,-MD,/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o.dep -Wp,-MT,/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o -Wp,-MP -o /home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c
Any help is greatly appreciated and thank you in advance.
VirtualBox version (that is the one I am trying to build): 4.3.6
Kernel Version: Linux 2.6.32-431.5.1.el6.x86_64