Problem compiling guest additions, 5.2.0, on Centos 7

Discussions about using Linux guests in VirtualBox.
heitkergm
Posts: 17
Joined: 15. Jul 2014, 15:06

Problem compiling guest additions, 5.2.0, on Centos 7

Post by heitkergm »

Code: Select all

/tmp/vbox.0/hgsmi_base.c: In function ‘hgsmi_send_caps_info’:
/tmp/vbox.0/hgsmi_base.c:99:2: error: implicit declaration of function ‘AssertRC’ [-Werror=implicit-function-declaration]
  AssertRC(p->rc);^M
  ^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/hgsmi_base.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
That's the same error I complained about during the beta program... No one seemed to listen then.

Please investigate and repair ASAP.
Last edited by socratis on 21. Oct 2017, 00:01, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
heitkergm
Posts: 17
Joined: 15. Jul 2014, 15:06

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by heitkergm »

Well, when I deleted the 5.2.0 guest software on the Centos 7 guest, I was able to successfully install the 5.1.30 guest additions (after I found the download for the .iso file).
heitkergm
Posts: 17
Joined: 15. Jul 2014, 15:06

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by heitkergm »

The Centos 7 guest is fully updated and current, running 7.4 and patched up to today...
joeman
Posts: 4
Joined: 22. Sep 2011, 14:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7, Oracle Enterprise Linux, Mint Linux, CentOS Linux

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by joeman »

I just upgraded my Oracle Enterprise Linux 7.4 VM from VBox 5.1.30 (which has been working fine) to VBox 5.2 and am seeing the same issue described above:

Code: Select all

/tmp/vbox.0/hgsmi_base.c: In function ‘hgsmi_send_caps_info’:
/tmp/vbox.0/hgsmi_base.c:99:2: error: implicit declaration of function ‘AssertRC’ [-Werror=implicit-function-declaration]
  AssertRC(p->rc);
  ^
/tmp/vbox.0/modesetting.c: In function ‘hgsmi_get_mode_hints’:
/tmp/vbox.0/modesetting.c:330:2: error: implicit declaration of function ‘AssertPtr’ [-Werror=implicit-function-declaration]
   // LogFunc(("HGSMIHeapAlloc failed\n"));
  ^
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/hgsmi_base.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/tmp/vbox.0/modesetting.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Any ideas? I suppose I could just install the 5.1.30 Guest Additions again.
Last edited by socratis on 21. Oct 2017, 00:01, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
heitkergm
Posts: 17
Joined: 15. Jul 2014, 15:06

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by heitkergm »

That`s what I did, reinstall 5.1.30 guest additions. THAT worked fine.
heitkergm
Posts: 17
Joined: 15. Jul 2014, 15:06

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by heitkergm »

Oh, while I remember, CentOS 7 is a open-source rebuild of RHEL7. Oracle Linux is an opinionated rebuild of the open-source part of RHEL7. All 3 of these should fail in the same way...
Simple07
Posts: 133
Joined: 5. Nov 2014, 16:05

Cannot install GuestAdditions_5.2.1 on CentOS 7

Post by Simple07 »

Installed CentOS 7 with the latest updates on VirtualBox-5.2.0-118431-Win.exe, Extension_Pack-5.2.0-118431. But the installation of VBoxGuestAdditions_5.2.0 or 5.2.1 fails.

Removed VirtualBox-5.2.0-118431-Win and installed VirtualBox-5.1.30-118389-Win with Extension_Pack-5.1.30-118389, then the installation of VBoxGuestAdditions_5.1.30-118389 on CentOS 7 is successful.

Removed VirtualBox-5.1.30-118389-Win and reinstalled VirtualBox-5.2.0-118431-Win, CentOS 7 is displaying fine. In fact a reinstallation of VBoxGuestAdditions-5.1.30-118389 again is successful.

Attached vboxadd-setup.log
Attachments
vboxadd-setup.zip
vboxadd-setup.log
(6.58 KiB) Downloaded 82 times
Zann
Posts: 1
Joined: 19. Oct 2017, 09:06

Re: Cannot install GuestAdditions_5.2.1 on CentOS 7

Post by Zann »

I am having similar issues with Ubuntu GNOME 16.04.3 and Ubuntu 17.10 Beta 2 guests:

Code: Select all

zann@poop:~$ grep fail /var/log/vboxadd-setup.log
scripts/Makefile.build:294: recipe for target '/tmp/vbox.0/hgsmi_base.o' failed
Makefile:1524: recipe for target '_module_/tmp/vbox.0' failed
/tmp/vbox.0/Makefile.include.footer:97: recipe for target 'vboxvideo' failed
-Z.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by socratis »

@Simple07, zann
I merged your posts with an existing thread dealing with the same issue. Please use the search functionality in the future, it saves me a lot of time... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Simple07
Posts: 133
Joined: 5. Nov 2014, 16:05

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by Simple07 »

I tried VBoxGuestAdditions_5.2.1-118447.iso first where I got message with some error, then tried VBoxGuestAdditions_5.2.1-118452.iso, then again VBoxGuestAdditions_5.2.1-118447.iso and there is the text results:

Result of installing GuestAdditions_5.2.1-118452:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.1 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
Press Return to close this window...
Result of installing GuestAdditions_5.2.1-118447 again:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.1 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
Press Return to close this window...
The system is now running Guest Additions 118447 and it seems to be working fine.
Last edited by socratis on 21. Oct 2017, 00:00, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by socratis »

I don't know why I didn't move this topic from "Using VirtualBox" to the "Linux Guests" section. Correcting now...

Glad you got it going 'Simple07'...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
JoergK
Posts: 30
Joined: 25. Aug 2017, 09:37

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by JoergK »

Hello,
I'm running a RHEL 7.4 guest on a Win10 host. I was able to install the VBoxGuestAdditions_5.2.1-118447 without any error message. But after rebooting the system I'm suffering the same problem described in: viewtopic.php?f=3&t=84198&p=404681#p404681

So I reverted the VM to a snapshot with GA installed from the BETA2. This seems to work for me at this point.
prana
Posts: 9
Joined: 23. Oct 2017, 14:13

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by prana »

Simple07 wrote:I tried VBoxGuestAdditions_5.2.1-118447.iso first where I got message with some error, then tried VBoxGuestAdditions_5.2.1-118452.iso, then again VBoxGuestAdditions_5.2.1-118447.iso and there is the text results:

Result of installing GuestAdditions_5.2.1-118452:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.1 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
Press Return to close this window...
Result of installing GuestAdditions_5.2.1-118447 again:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.1 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
Press Return to close this window...
The system is now running Guest Additions 118447 and it seems to be working fine.
I'm having the same modprobe issue with all the GA 5.2 versions on Ubuntu 17.10 guest on Windows 10 host.
I've tried it your way also, but no luck :(

In such a scenario, how can a bidirectional copy/paste between host and guest can work?
Thanks.

prana.
shades_aus
Posts: 6
Joined: 20. Apr 2015, 03:37

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by shades_aus »

I second this issue on Ubuntu 17.10 Guest.
Windows guest runs 100% CPU and only the Direct 3D option when installing drivers works. The experimental Alpha Blending verison doesn't work. (W7, XP) guests.

Note* If I click on the X to close the window, I get the option box come up for me to select
. Save the machine state
. Send the shutdown signal
. power off the machine.

In the background, I get the Paused screen graphics for the GUI, just like normal.
If I then close this box, that Graphic now stays instead fo a black screen.

I have attempted to downgrade from 5.2.1 + VBoxGuestAdditions_5.2.1-118452.iso
however even
VirtualBox-5.1.26-117224-Win.exe + Oracle_VM_VirtualBox_Extension_Pack-5.1.26-117224 isn't working anymore. I have installed via root from the shell.
The shell works still so, it maybe be the 3D section??

- Just downgraded to 5.1.24 for both my Ubuntu and Centos 7 guest VMs running under Windows. Neither work with GUI.
Riot Nrrrd™
Posts: 35
Joined: 1. Apr 2012, 01:15

Re: Problem compiling guest additions, 5.2.0, on Centos 7

Post by Riot Nrrrd™ »

Just wanted to add a "Me too" to this thread. CentOS 7.3 Guest on 5.2.0 Mac OS X Sierra host.

But it's worse for me - after the failed installation, rebooting the CentOS 7.3 Guest results in the guest OS freezing up a couple of minutes after it finishes booting.

I can log in and I had time to unmount the Guest Additions ISO image and ... boom, locked up. Happened three times in a row. I guess my CentOS 7.3 install is hosed now. Thanks a lot! :x
Post Reply