1/1

VirtualBox Guest Additions for CentOS 6.3

Forumsリンクが切れそうなんで転載します。Building the OpenGL support moduleで失敗になる修正パッチ
VirtualBox guest additions (4.1.18) won't build properly for CentOS 6.3. The patch Thank you.


--- vboxvideo_drm.c.original 2012-07-10 08:26:22.000000000 +0200
+++ vboxvideo_drm.c 2012-07-10 08:34:06.000000000 +0200
@@ -67,6 +67,9 @@
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1)
# define DRM_RHEL61
# endif
+# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
+# define DRM_RHEL63
+# endif
# endif
# endif

@@ -85,7 +88,7 @@
return 0;
#endif
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) || defined(DRM_RHEL63)
/* since linux-3.3.0-rc1 drm_driver::fops is pointer */
static struct file_operations driver_fops =
{
@@ -109,7 +112,7 @@
.get_map_ofs = drm_core_get_map_ofs,
.get_reg_ofs = drm_core_get_reg_ofs,
#endif
-# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) && !defined(DRM_RHEL63)
.fops =
{
.owner = THIS_MODULE,

  • -
  • -

1/1