VirtualBox

Opened 6 years ago

Closed 6 years ago

#17163 closed defect (fixed)

Guest Additions Setup Error in CentOS 7.4: implicit function declaration in hgsmi_base.c -> should be fixed as of 3 November 2017, 5.2 and later

Reported by: quatum Owned by:
Component: guest additions Version: VirtualBox 5.2.0 RC 1
Keywords: guest additions, implicit function declarations Cc:
Guest type: Linux Host type: Windows

Description

Installation of Guest Additions (5.2 RC1) into CentOS 7.4

CentOS Linux release 7.4.1708 (Core); Linux version 3.10.0-693.2.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017

fails partly.

Due to vboxadd-stup.log (attached, lines 250 & 253) there are implicit function declarations in hgsmi_base.c.

Attachments (7)

vboxadd-setup.log (195.9 KB ) - added by quatum 6 years ago.
vboxadd-setup.2.log (192.4 KB ) - added by jiexa 6 years ago.
from OL7.4
vboxadd-setup.3.log (207.7 KB ) - added by dpiper 6 years ago.
vboxadd-setup.log showing Centos 7 errors
guest-failure.PNG (12.8 KB ) - added by Fake4d 6 years ago.
Vbox-Test-5.2.1-118918.zip (216.9 KB ) - added by Fake4d 6 years ago.
Log files for two test cases with Guest Additon 5.2.1-118918 and Ubuntu
Vbox-Test-5.2.1-118918-17.10.zip (93.9 KB ) - added by Fake4d 6 years ago.
New Logs with installed tools in Ubuntu 17.10
vboxsetuplogs.tgz (7.4 KB ) - added by scubasteve 6 years ago.

Download all attachments as: .zip

Change History (50)

by quatum, 6 years ago

Attachment: vboxadd-setup.log added

comment:1 by quatum, 6 years ago

GuestAdditions 5.1.28 install correctly (VB version is still 5.2 RC1) and, after a restart, the complete functionality is given. After the restart and login an available update for the GuestAdditions is noticed.

Last edited 6 years ago by quatum (previous) (diff)

by jiexa, 6 years ago

Attachment: vboxadd-setup.2.log added

from OL7.4

comment:2 by jiexa, 6 years ago

I've done "yum upgrade" for my Oracle Linux 7.4 today, and installed VirtualBox 5.2.0 GA. After reboot of the guest, when trying to install the guest additions, I've experienced absolutely same issue:

...
/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);
  ^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/hgsmi_base.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/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"));
...

Attaching the log.

# rpm -qa xorg-x11-server-Xorg kernel glibc gcc | sort
gcc-4.8.5-16.el7.x86_64
glibc-2.17-196.el7.i686
glibc-2.17-196.el7.x86_64
kernel-3.10.0-327.13.1.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
xorg-x11-server-Xorg-1.19.3-11.el7.x86_64
Last edited 6 years ago by jiexa (previous) (diff)

comment:3 by Mika Aalto, 6 years ago

Same happens with Fedora 26. Cannot install guest additions 5.2.1. Previously 5.1.x guest additions were installed without problems.

/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"));
  ^~~~~~~~~
/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);
  ^~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:302: /tmp/vbox.0/modesetting.o] Error 1

Package versions:

#rpm -qa xorg-x11-server-Xorg kernel glibc gcc | sort
gcc-7.2.1-2.fc26.x86_64
glibc-2.25-10.fc26.i686
glibc-2.25-10.fc26.x86_64
kernel-4.12.14-300.fc26.x86_64
kernel-4.13.4-200.fc26.x86_64
kernel-4.13.5-200.fc26.x86_64
xorg-x11-server-Xorg-1.19.3-4.fc26.x86_64

#gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) 

comment:4 by David, 6 years ago

This is also happening on Ubuntu 17.04 guest, in virtualbox 5.2 final.

Last edited 6 years ago by David (previous) (diff)

comment:5 by Dreamcreator108, 6 years ago

The same issue on Ubuntu 16.04.3 guest, Virtualbox Guest Additions 5.2.0

comment:6 by David, 6 years ago

Also, why is the guest additions version number 5.2.1 when the Virtualbox version is 5.2.0? Also, this:

echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ;

Last edited 6 years ago by David (previous) (diff)

in reply to:  6 comment:7 by Dreamcreator108, 6 years ago

Replying to vensasa:

Also, why is the guest additions version number 5.2.1 when the Virtualbox version is 5.2.0?

My host is Debian 9, but I only can insert 5.2.0 guest additions iso file from Menu -> Devices -> Insert Guest Additions CD image

Confused

comment:8 by Kartoffelbrei, 6 years ago

This is also happening on Ubuntu 17.04, 16.04 und 17.10 guest, in virtualbox 5.2 final.

comment:9 by oraclebase, 6 years ago

My ticket (#17181) was closed as a duplicate of this. For information, I get this on the following combinations with 5.2 final.

Host: macOS Sierra Guest: OL7.4 (existing VM running 5.1.30 GA or new clean VM) Host: Win7 Guest: OL7.4 (existing VM running 5.1.30 GA or new clean VM) Host: Win7 Guest: Fedora 26 (existing VM running 5.1.30 GA)

I've not managed to install GA on any VM, existing or new yet.

comment:10 by Socratis, 6 years ago

Please try the updated images on the downloads page.

comment:11 by oraclebase, 6 years ago

Worked fine on Win7 host with OL7.4 and F26 guests. I'll try on macOS when I get home, but it looks good!

Thanks!

comment:12 by Jim Nutt, 6 years ago

Same issue on Arch current with CentOS 7 guest. The 5.2.1 guest additions failed as well.

comment:13 by oraclebase, 6 years ago

The 5.2.1 GA fixed my problem on macOS Sierra and Oracle Linux 7.4 hosts also. In both cases ol7.4 guests were failing before 5.2.1 GA. Thanks.

comment:14 by heitkergm, 6 years ago

For the confused, you have to manually mount this optical disk, choosing it from the directory in which it was downloaded.

5.2.1 GA has worked for me with Centos 7.4, Fedora 27 beta, RHEL 7.4. It is disconcerting to see an error message at the end "VirtualBox Guest Additions: modprobe vboxsf failed". Upon reboot, shared folders worked A-OK, in spite of the seemingly dire warning.

comment:15 by highbury, 6 years ago

Also affecting VirtualBox-5.2.0-118431-Win.exe install on Windows 10 Pro (16299) with release Ubuntu-17.10 Desktop guest with VBox_GAs_5.2.1 Guest Additions CD

comment:16 by heitkergm, 6 years ago

For grins and giggles, I installed the 5.2.1 GA additions on a Win 10 Pro (16299.19) VM as well as on a Win 10 Pro Insider VM (17000+). I was worried that there might be a regression that the 5.2.1 GA broke on Windows; thankfully NO problems.

in reply to:  10 comment:17 by trolley, 6 years ago

Replying to socratis:

Please try the updated images on the downloads page.

This works in an Ubuntu 17.10 guest. Thank you.

comment:18 by Kartoffelbrei, 6 years ago

I tried on a Windows 10 Fall creator update Host with Ubuntu 16.04, 17.04 and 17.10 with the updated Guast Additon ISO. It compiled well but gave me the error message "VirtualBox Guest Additions: modprobe vboxsf failed" in the end.

After rebooting none of the machines came to the graphical desktop. :-(

I can give you additional information and logs if needed!

comment:19 by Michael Thayer, 6 years ago

That error message is actually just a warning that the module will not be reloaded until reboot. I agree that it needs to be made clear.

comment:20 by Xunnamius, 6 years ago

I can confirm that this is still happening on Debian 9 (Stretch) guest with a current Windows 10 host. I don't know if what is being returned is just a warning or something, but Guest Additions isn't working after a guest restart as if GA were not installed at all.

Before the restart:

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

After restart the machine doesn't make it to the GUI anymore.

I'll just use an older 5.1.x Guest Additions image for the foreseeable future.

Version 0, edited 6 years ago by Xunnamius (next)

comment:21 by scubasteve, 6 years ago

I tried VBoxGuestAdditions_5.2.1-118868 with Xubuntu and Lubuntu 17.10 - vboxvideo still doesn't work. vboxadd-setup.log reports module signing errors (probably irrelevant). The command modprobe vboxvideo returns "ERROR: could not insert 'vboxvideo': Invalid argument"

comment:22 by Michael Thayer, 6 years ago

Summary: Guest Additions Setup Error in CentOS 7.4: implicit function declaration in hgsmi_base.cGuest Additions Setup Error in CentOS 7.4: implicit function declaration in hgsmi_base.c -> should be fixed as of 3 November 2017, 5.2 and later

The signing errors are not irrelevant - we currently do not support set-ups which require signed modules. However, the distributions usually provide instructions on how to handle this. The updated Additions build on the Download page<1> should fix problems with EL7.x and Debian 9, as well as the harmless message about failing to load vboxsf.

  1. https://www.virtualbox.org/wiki/Downloads

comment:23 by scubasteve, 6 years ago

I've just tried VBoxGuestAdditions_5.2.1-118918.iso with Xubuntu 17.10 kernel 4.13.0-16-generic, fully updated, still doesn't work.

by dpiper, 6 years ago

Attachment: vboxadd-setup.3.log added

vboxadd-setup.log showing Centos 7 errors

comment:24 by dpiper, 6 years ago

Latest VBoxGuestAdditions_5.2.1-118918.iso worked perfectly on Centos 7 hosted on Windows 10. Thanks!

comment:25 by Fake4d, 6 years ago

I tried VBoxGuestAdditions_5.2.1-118918.iso in Ubuntu 16.04, 17.04 und 17.10 fully patched.

16.04 und 17.04 didnt make it to the gui again after rebooting the system. 17.10 started the gui but told me it couldnt load the Guest Addition (see the screenshot I added)

Sorry but 5.2.1-118918 is not working for me in Ubuntu :-(

by Fake4d, 6 years ago

Attachment: guest-failure.PNG added

comment:26 by Michael Thayer, 6 years ago

@Fake4d @scubasteve Please provide exact information about your guest systems. If possible test with a freshly installed system. Please also provide Additions installation logs (/var/log/vbox*.log from the guest) and machine log files from the host.

comment:27 by Michael Thayer, 6 years ago

@scubasteve And please also be more precise about what "it doesn't work" means. Exact descriptions for reproducing with a freshly installed system are always welcome.

comment:28 by Fake4d, 6 years ago

Here are my two test cases - Host Windows 10 v1703 with VirtualBox 5.2.0 r118431 - Guest Addition ISO 5.2.1-118918 :

  • Ubuntu 16.04 long time system

Installing Guest Addition and rebooting - doesnt boot up to UI

  • Ubuntu 17.10 - freshly installed

Installing Guest Addition and rebooting - boots up to UI and throws a failure message

All logs and Pictures are included in the ZIP-File "Vbox-Test-5.2.1-118918.zip" which is attached

by Fake4d, 6 years ago

Attachment: Vbox-Test-5.2.1-118918.zip added

Log files for two test cases with Guest Additon 5.2.1-118918 and Ubuntu

comment:29 by Michael Thayer, 6 years ago

@Fake4d You need to have gcc, make and the kernel headers installed. Actually it should be giving you a warning on the command line.

comment:30 by Fake4d, 6 years ago

@michael : I have installed all the tools in both test cases!

root@LabIX-Ubuntu1604:/media/user/VBox_GAs_5.2.1# ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.1.26 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
You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.

root@LabIX-Ubuntu1604:/media/user/VBox_GAs_5.2.1# uname -a
Linux LabIX-Ubuntu1604 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@LabIX-Ubuntu1604:/media/user/VBox_GAs_5.2.1# apt-get install gcc make linux-headers-4.4.0-93
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
»gcc« ist bereits die neuste Version (4:5.3.1-1ubuntu1).
gcc wurde als manuell installiert festgelegt.
»make« ist bereits die neuste Version (4.1-6).
make wurde als manuell installiert festgelegt.
»linux-headers-4.4.0-93« ist bereits die neuste Version (4.4.0-93.116).
linux-headers-4.4.0-93 wurde als manuell installiert festgelegt.

comment:31 by Michael Thayer, 6 years ago

Indeed. It was the log for the 17.10 guest which said that Make was not installed. 16.04 is a signing problem: we do not currently support kernel module signing, as it is not something which is easy to do automatically. Ubuntu should provide instructions on how to sign modules.

comment:32 by Michael Thayer, 6 years ago

I am interested to know though - were previous versions of the Additions working in your 16.04 guest? Can you try re-installing older versions if so?

comment:33 by Fake4d, 6 years ago

Uh yes you are right! I just installed all the tools in 17.10 (there was no warning indeed while building the addition). After rebooting the system now doesnt make it to the gui as well as the 16.04 system.. I am going to attach you the detailed logs again as an attachment! Maybe it is the same problem like in 16.04 and 17.04!

The last working addition is 5.1.30! I just tested it again in all my test machines and it worked out very fine! It just says there is an update available :) I could provide you with logs from this guest as well if you need it!

by Fake4d, 6 years ago

New Logs with installed tools in Ubuntu 17.10

in reply to:  27 comment:34 by scubasteve, 6 years ago

Replying to michael:

@scubasteve And please also be more precise about what "it doesn't work" means. Exact descriptions for reproducing with a freshly installed system are always welcome.

Apologies - I didn't expand because it's the same error as with previous versions of the guest additions ISO, i.e.:

vboxadd-setup.log reports module signing errors (probably irrelevant). The command modprobe vboxvideo returns "ERROR: could not insert 'vboxvideo': Invalid argument"

I'm going to try with a new fresh install of Xubuntu 17.10 now.

comment:35 by scubasteve, 6 years ago

Additions version VBoxGuestAdditions_5.2.1-118918.iso still fails with a fresh install of Xubuntu 17.10. Host is Lenovo T460 running Linux Mint 18.2 (4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017). Steps to reproduce:

  • boot VM from xubuntu 17.10 ISO (must pick "nomodeset" from "F6 - Various Options" menu, or screen is corrupted making the VM unusable)
  • install Xubuntu with all defaults except: use LVM, log in automatically
  • on reboot, remove unwanted packages to slim down update phase (apt remove libreoffice* thunderbird* pidgin*)
  • apt update && apt upgrade
  • apt install make gcc perl
  • reboot
  • insert guest additions ISO
  • run additions installer
  • reboot

Still not resizing window. Manually loading vboxvideo doesn't work:

sudo modprobe vboxvideo modprobe: ERROR: could not insert 'vboxvideo': Invalid argument

Logs attached. Thank you...

by scubasteve, 6 years ago

Attachment: vboxsetuplogs.tgz added

comment:36 by Michael Thayer, 6 years ago

@scubasteve Indeed, you still have the nomodeset parameter set, which tells graphics drivers like vboxvideo not to load.

comment:37 by Fake4d, 6 years ago

Are you still working on a new guest addition?

in reply to:  36 comment:38 by scubasteve, 6 years ago

Replying to michael:

@scubasteve Indeed, you still have the nomodeset parameter set, which tells graphics drivers like vboxvideo not to load.

That fixed it, thx (just tried with Lubuntu 17.10 - same thing...)

comment:39 by Michael Thayer, 6 years ago

@Fake4d Could you please expand on your last question? And could you try disabling 3D acceleration for your machines to see if that makes a difference? If so then yes, it is something I have on my radar.

comment:40 by Fake4d, 6 years ago

@michael Sorry I didnt know that I was included in the question.. Sorry for that :)

I can confirm, that 16.04, 17.04 and 17.10 are booting in the UI and working fine when I disable the 3D acceleration. The 'nomodeset' parameter is not set in the standard boot. There must be something in the 3D acceleration..

Can I test something else? Or can I produce you some logs?

comment:41 by Gui Ambros, 6 years ago

Same here - host ubuntu trusty 14.04, guest ubuntu 17.10, and VB 5.2.0 r118431.

Clean install of 17.10 and VB 5.2. Without Guest Additions, everything works fine (including 3D acceleration), except for clipboard.

Installing the non-beta Guest Additions 5.2 results in the problems in the beginning of this thread, and doesn't solve copy/paste.

After installing Guest Additions 5.2.1-118918, it stopped booting in the UI, even with 'nomodeset'. If I disable 3D Acceleration, I'm able to boot again (and clipboard functions are now working), but without 3D acceleration.

Would be glad to help with any tests, if it helps.

comment:42 by Michael Thayer, 6 years ago

The 3D problems are a separate issue, which I am working on. Please tag onto #17190, which is not quite the same, but I will probably look at at the same time.

Last edited 6 years ago by Michael Thayer (previous) (diff)

comment:43 by Michael Thayer, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use