kBuild: Compiling vboxvideo_drm - /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c In file included from /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:71, from /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.h:58, from /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:48: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h: In function ‘drm_calloc_large’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h:34: error: ‘SIZE_MAX’ undeclared (first use in this function) /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h:34: error: (Each undeclared identifier is reported only once /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h:34: error: for each function it appears in.) /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h: In function ‘drm_malloc_ab’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drm_mem_util.h:47: error: ‘SIZE_MAX’ undeclared (first use in this function) In file included from /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.h:58, from /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:48: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h: At top level: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:319: error: expected specifier-qualifier-list before ‘kuid_t’ /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h: In function ‘drm_is_render_client’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:888: error: ‘const struct drm_file’ has no member named ‘minor’ /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h: In function ‘drm_is_control_client’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:893: error: ‘const struct drm_file’ has no member named ‘minor’ /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h: In function ‘drm_is_primary_client’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:898: error: ‘const struct drm_file’ has no member named ‘minor’ /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h: In function ‘drm_can_sleep’: /lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm/drmP.h:1119: error: implicit declaration of function ‘in_dbg_master’ [-Wimplicit-function-declaration] In file included from /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:48: /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.h: At top level: /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.h:235: error: field ‘gem’ has incomplete type /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c: In function ‘vbox_drm_freeze’: /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:97: error: implicit declaration of function ‘console_lock’ [-Wimplicit-function-declaration] /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:99: error: implicit declaration of function ‘console_unlock’ [-Wimplicit-function-declaration] /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c: At top level: /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c:206: error: ‘drm_fasync’ undeclared here (not in a function) kmk: *** [/home/vagrant/VirtualBox-5.0.26/out/linux.amd64/release/obj/vboxvideo_drm/vbox_drv.o] Error 1 The failing command: @gcc -c -O2 -fno-pie -nostdinc -iwithprefix include -include /lib/modules/2.6.32-642.4.2.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/vagrant/VirtualBox-5.0.26/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 -I/home/vagrant/VirtualBox-5.0.26/src/VBox/Runtime/include -I/home/vagrant/VirtualBox-5.0.26/src/VBox/Runtime/r0drv/linux -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/asm-i386/mach-default -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/asm-x86/mach-default -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/drm -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/arch/x86/include -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/arch/x86/include/asm/mach-default -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/arch/x86/include/uapi -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/arch/x86/include/generated -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/arch/x86/include/generated/uapi -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/uapi -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include/generated/uapi -I/lib/modules/2.6.32-642.4.2.el6.x86_64/build/include -I/home/vagrant/VirtualBox-5.0.26/out/linux.amd64/release/obj/vboxvideo_drm/dtrace -I/home/vagrant/VirtualBox-5.0.26/include -I/home/vagrant/VirtualBox-5.0.26/out/linux.amd64/release -DVBOX -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/vagrant/VirtualBox-5.0.26/out/linux.amd64/release/obj/vboxvideo_drm/vbox_drv.o.dep -Wp,-MT,/home/vagrant/VirtualBox-5.0.26/out/linux.amd64/release/obj/vboxvideo_drm/vbox_drv.o -Wp,-MP -o /home/vagrant/VirtualBox-5.0.26/out/linux.amd64/release/obj/vboxvideo_drm/vbox_drv.o /home/vagrant/VirtualBox-5.0.26/src/VBox/Additions/linux/drm/vbox_drv.c