Ticket #11996 (closed defect: fixed)
vboxvideo error -> fixed in 4.2.x and later releases as of Nov 11 2013
Reported by: | Ashuras | Owned by: | |
---|---|---|---|
Component: | guest additions | Version: | VirtualBox 4.2.16 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Windows |
Description
I am running VirtualBox v4.2.16 on Windows 8, trying to install RHEL 6.1 Enterprise Linux as a guest, with GUI. When I try to install Guest Additions in RHEL 6.1, the OpenGL support module failed.
In the /var/log/vboxadd-install.log, it says, /tmp/vbox.0/vboxvideo_drm.c: In function 'vboxvideo_init': /tmp/vbox.0/vboxvideo_drm.c:176: error: too many arguments to function 'drm_pci_init' /tmp/vbox.0/vboxvideo_drm.c: In function 'vboxvideo_exit': /tmp/vbox.0/vboxvideo_drm.c:185: error: implicit declaration of function 'drm_pci_exit'
Change History
comment:2 Changed 7 years ago by DavidK
I still see this problem with VBox 4.3.2. Host OS is CentOS 5.10 64-bit, target OS is CentOS 6.1 64-bit.
comment:3 Changed 7 years ago by DavidK
- Status changed from closed to reopened
- Resolution fixed deleted
comment:4 Changed 7 years ago by michael
- Summary changed from vboxvideo error to vboxvideo error -> fixed in 4.2.x and later releases as of Nov 11 2013
Confirmed. Please see below for the fix which you can apply locally if you would like to test. Alternatively you can try the Additions build at
http://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.3-90519.iso
Index: /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c =================================================================== --- /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c (revision 88865) +++ /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c (revision 90512) @@ -156,5 +156,5 @@ .fops = &driver_fops, #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61) +#ifndef DRIVER_BUS_PCI .pci_driver = { @@ -171,5 +171,5 @@ }; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39) || defined(DRM_RHEL61) +#ifdef DRIVER_BUS_PCI static struct pci_driver pci_driver = { @@ -181,5 +181,5 @@ static int __init vboxvideo_init(void) { -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61) +#ifndef DRIVER_BUS_PCI return drm_init(&driver); #else @@ -190,5 +190,5 @@ static void __exit vboxvideo_exit(void) { -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61) +#ifndef DRIVER_BUS_PCI drm_exit(&driver); #else
Please reopen if still relevant with VBox 4.3.2.