Build OpenGL support module failed in Scientific Linux 6

Discussions about using Linux guests in VirtualBox.

Build OpenGL support module failed in Scientific Linux 6

Postby penyuan » 18. Jun 2011, 05:22

Hello,
I have successfully installed Scientific Linux 6 (which is literally RHEL 6.0 without the branding) as a virtual machine guest in with VirtualBox 4.0.8 host in Mac OS X 10.6.7. I have also fully updated the guest system.
When I install the VirtualBox guest additions in the guest system, I get the following error:
Building the OpenGL support modules..... [FAILED]

All other steps seemed OK.
I checked /var/log/vboxadd-install.log, and got this.
Can someone please tell me what's wrong, and how I can correct this error? Thank you.
penyuan
 
Posts: 44
Joined: 5. Jun 2010, 13:01
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Arch Linux, Ubuntu 10.04

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Sasquatch » 18. Jun 2011, 11:23

As you see multiple times in it, there are some configuration errors with the kernel that are required for certain features. It's likely that OpenGL is one of the things that fails because of incorrect kernel configuration. Does the rest work, like mouse integration, dynamic resolution and seamless mode? I am not experienced with kernel compilation and configuration, so I don't know how to change your kernel to accept OpenGL.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Build OpenGL support module failed in Scientific Linux 6

Postby penyuan » 19. Jun 2011, 00:30

Sasquatch wrote:Does the rest work, like mouse integration, dynamic resolution and seamless mode?

Mouse integration and dynamic resolution are the only ones that work. There's no seamless mode, shared folders, nor clipboard sharing, etc...
I have no experience with kernel issues either, if anyone has insight, please help! Thanks.
penyuan
 
Posts: 44
Joined: 5. Jun 2010, 13:01
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Arch Linux, Ubuntu 10.04

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Sasquatch » 19. Jun 2011, 12:11

Then it would appear that the Guest Additions did not install completely or correctly. If you have dynamic resolution, you should also have seamless mode. Shared Folders is a different module and it seems that didn't compile either. Clipboard is the same thing, but you have to know that not all applications in Linux use the same buffer and they clear it when you close the application you copied from. E.g. open a file in gedit, copy a piece of text and then close it, removes the copied text from clipboard.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Build OpenGL support module failed in Scientific Linux 6

Postby penyuan » 19. Jun 2011, 15:58

Sasquatch wrote:Then it would appear that the Guest Additions did not install completely or correctly. If you have dynamic resolution, you should also have seamless mode. Shared Folders is a different module and it seems that didn't compile either. Clipboard is the same thing, but you have to know that not all applications in Linux use the same buffer and they clear it when you close the application you copied from. E.g. open a file in gedit, copy a piece of text and then close it, removes the copied text from clipboard.

Ooops, I just checked again and dynamic resolution is not working, that's probably part of why there's no seamless mode for me. And I checked again, there's definitely no shared folders nor clipboard sharing (I checked before an application is closed).....
penyuan
 
Posts: 44
Joined: 5. Jun 2010, 13:01
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Arch Linux, Ubuntu 10.04

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Sasquatch » 20. Jun 2011, 19:01

Then it just shows that the Guest Additions aren't installed at all. Are you sure that all required packages are installed to create kernel modules?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Build OpenGL support module failed in Scientific Linux 6

Postby penyuan » 23. Jun 2011, 23:59

Sasquatch wrote:Then it just shows that the Guest Additions aren't installed at all. Are you sure that all required packages are installed to create kernel modules?

I've installed GCC, GNU make, kernel-devel-[version number], kernel-headers-[version number]. Not sure if there's anything else I need??
My mouse pointer integration works though, so it looks like some components were installed?
penyuan
 
Posts: 44
Joined: 5. Jun 2010, 13:01
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Arch Linux, Ubuntu 10.04

Re: Build OpenGL support module failed in Scientific Linux 6

Postby bits45 » 24. Jun 2011, 19:53

I'll be interesting in a fix or patch for this too. Seems like only RHEL6 has issues. I'm now on RHEL 6.1.

VB Extensions partially work. Can't dynamically resize window, but mouse seems to work.

Had same error as above during install, ONLY OpenGL mod failed. Same error.
bits45
 
Posts: 2
Joined: 9. Oct 2009, 16:14
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Sasquatch » 25. Jun 2011, 12:44

penyuan wrote:
Sasquatch wrote:Then it just shows that the Guest Additions aren't installed at all. Are you sure that all required packages are installed to create kernel modules?

I've installed GCC, GNU make, kernel-devel-[version number], kernel-headers-[version number]. Not sure if there's anything else I need??
My mouse pointer integration works though, so it looks like some components were installed?

Does [version number] match your running kernel? It's of little use to install a kernel with number .42 when you run .41 or vice versa. They have to match exactly. There should be a meta package that depends on the latest version available and keeps you up to date.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Build OpenGL support module failed in Scientific Linux 6

Postby EllieM » 1. Aug 2012, 12:20

Hi,

I am having the same problem with the OpenGL module.

I am running SL 6.2 as a guest. I have install the extension pack on the host machine. I am running Virtualbox 4.1.18

In SL, I have installed dkms, gcc and my kernel-headers & -devel match my kernel and everything is fully up to date. I am using the ls.repo and epel.repo

Mouse integration and shared folders seem to work, but my screen will only display 800x600 (too small) and 640x480 (really too small!)

Thanks in advance
EllieM
 
Posts: 1
Joined: 1. Aug 2012, 12:12

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Perryg » 1. Aug 2012, 14:50

EllieM wrote:Hi,
I am having the same problem with the OpenGL module.
I am running SL 6.2 as a guest. I have install the extension pack on the host machine. I am running Virtualbox 4.1.18
In SL, I have installed dkms, gcc and my kernel-headers & -devel match my kernel and everything is fully up to date. I am using the ls.repo and epel.repo
Mouse integration and shared folders seem to work, but my screen will only display 800x600 (too small) and 640x480 (really too small!)
Thanks in advance

Do you see errors when installing the Guest additions (in the guest)?
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Build OpenGL support module failed in Scientific Linux 6

Postby kaychoro » 14. Aug 2012, 21:07

I got the same thing and was able to resolve it by doing this before running the installer:

Code: Select all   Expand viewCollapse view
export MAKE='/usr/bin/gmake -i'


Google for freeoracletrainings and 15-install-guest-additions-building-the-opengl-support-module-failed to find the source (I'm a new forum member so I can't post the link now)

I got it all installed and then it worked. One thing that I did notice is that I couldn't change the resolution from within linux, but I could resize the window and have the window automatically adjust (even on full-screen) and it worked great.
kaychoro
 
Posts: 1
Joined: 14. Aug 2012, 21:02

Re: Build OpenGL support module failed in Scientific Linux 6

Postby Wolfie » 11. Mar 2013, 00:44

kaychoro wrote:I got the same thing and was able to resolve it by doing this before running the installer:

Code: Select all   Expand viewCollapse view
export MAKE='/usr/bin/gmake -i'

THANK YOU!

I installed CentOS 6.4 earlier and first had an issue with 'Building the main Guest Additions module' failing. Got that working then the OpenGL issue. Tried the line above and -poof- it worked!
Wolfie
 
Posts: 2
Joined: 11. Mar 2013, 00:41

Re: Build OpenGL support module failed in Scientific Linux 6

Postby rwouters » 20. Mar 2013, 16:28

Hi,

the -i flag, according to the man pages for gmake means : ignore all errors.
I have the same OpenGL issue on the official RHEL 6.4 distro. The build of the opengl support module fails.
Using the -i flag, the build "succeeds". However, I don't know if simply ignoring all errors is the right way to go ...

Regards,
Ronald Wouters
rwouters
 
Posts: 4
Joined: 17. Apr 2012, 08:13

Re: Build OpenGL support module failed in Scientific Linux 6

Postby dmischa » 21. Mar 2013, 11:31

penyuan wrote:Hello,
I have successfully installed Scientific Linux 6 (which is literally RHEL 6.0 without the branding) as a virtual machine guest in with VirtualBox 4.0.8 host in Mac OS X 10.6.7. I have also fully updated the guest system.
When I install the VirtualBox guest additions in the guest system, I get the following error:
Building the OpenGL support modules..... [FAILED]

All other steps seemed OK.
I checked /var/log/vboxadd-install.log, and got this.
Can someone please tell me what's wrong, and how I can correct this error? Thank you.


because of a bug in the linux guestadditions the OpenGL support modules can't be build for RHEL6.4 and clones guests, you will have to apply the patch

--- vboxvideo_drm.c.ori 2013-03-01 12:11:52.146639050 +0100
+++ vboxvideo_drm.c 2013-03-01 12:18:57.231061446 +0100
@@ -70,6 +70,9 @@
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
# define DRM_RHEL63
# endif
+# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,4)
+# define DRM_RHEL64
+# endif
# endif
# endif

@@ -106,7 +109,7 @@
{
/* .driver_features = DRIVER_USE_MTRR, */
.load = vboxvideo_driver_load,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_RHEL64)
.reclaim_buffers = drm_core_reclaim_buffers,
#endif
/* As of Linux 2.6.37, always the internal functions are used. */


or wait for 4.2.12
dmischa
 
Posts: 54
Joined: 20. May 2010, 12:32
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: RHEL, Fedora, Windows 7

Next

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 24 guests