seduction
 Language:
Welcome, Guest. Please login or register.
Did you miss your activation email?
2020/11/28, 08:59:33


Help

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Virtualbox error after du  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

Offline vayu

  • User
  • Posts: 222
Virtualbox error after du
« on: 2018/10/26, 05:23:34 »
I'm getting a virtualbox error since du the other day:
Code: [Select]
Loading new virtualbox-guest-5.2.20 DKMS files...
Building for 4.19.0-towo.1-siduction-amd64
Building initial module for 4.19.0-towo.1-siduction-amd64
Error! Bad return status for module build on kernel: 4.19.0-towo.1-siduction-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/5.2.20/build/make.log for more information.
dpkg: error processing package virtualbox-guest-dkms (--configure):
 installed virtualbox-guest-dkms package post-installation script subprocess returned error exit status 10
Looking at the make logfile suggested by apt I get a couple pages of what looks like compile errors:
Code: [Select]
/var/lib/dkms/virtualbox-guest/5.2.20/build/vboxvideo/vbox_mode.c: In function ‘vbox_set_edid’:
/var/lib/dkms/virtualbox-guest/5.2.20/build/vboxvideo/vbox_mode.c:496:12: error: invalid storage class for function ‘vbox_get_modes’
 static int vbox_get_modes(struct drm_connector *connector)
            ^~~~~~~~~~~~~~
/var/lib/dkms/virtualbox-guest/5.2.20/build/vboxvideo/vbox_mode.c:496:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-stat
ement]
 static int vbox_get_modes(struct drm_connector *connector)
 ^~~~~~
/var/lib/dkms/virtualbox-guest/5.2.20/build/vboxvideo/vbox_mode.c:568:12: error: invalid storage class for function ‘vbox_mode_valid’
 static int vbox_mode_valid(struct drm_connector *connector,
            ^~~~~~~~~~~~~~~
/var/lib/dkms/virtualbox-guest/5.2.20/build/vboxvideo/vbox_mode.c:574:13: error: invalid storage class for function ‘vbox_connector_destroy’
 static void vbox_connector_destroy(struct drm_connector *connector)
Any ideas?

Offline der_bud

  • User
  • Posts: 956
  • member
Re: Virtualbox error after du
« Reply #1 on: 2018/10/26, 07:47:46 »
Three posts below yours, https://forum.siduction.org/index.php?topic=7400.0 , Kernel 4.19 probably to new for your current virtualbox.
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline harley-peter

  • User
  • Posts: 845
Re: Virtualbox error after du
« Reply #2 on: 2018/10/26, 09:48:55 »
Here Virtualbox (version 5.2.20) works without a problem with Kernel 4.19.

Offline tommy2

  • User
  • Posts: 120
Re: Virtualbox error after du
« Reply #3 on: 2018/10/26, 10:41:16 »
Just did a D-U where VirtualBox was updated, my system works now also. :)

Offline demailly

  • User
  • Posts: 15
Re: Virtualbox error after du
« Reply #4 on: 2018/11/02, 09:59:43 »
Surprisingly, this is a bug in the virtualbox-guest code (version 5.2.20), that is triggered only when compiling with kernel 4.19 : position of closing brace } is wrong at line 493. Here is a patch that makes it compile with the new kernel. I have not checked wether it actually works, but see no reason why it shouldn't. The patch below is to be applied to
   /usr/src/virtualbox-guest-5.2.20/vboxvideo/vbox_mode.c
before retrying d-u (or better : patch the package source code and reinstall)




*** vbox_mode.c.orig   2018-11-02 11:06:35.457890211 +0100
--- vbox_mode.c   2018-11-02 10:56:04.977870035 +0100
***************
*** 490,498 ****
     drm_connector_update_edid_property(connector, (struct edid *)edid);
  #else
     drm_mode_connector_update_edid_property(connector, (struct edid *)edid);
- }
  #endif
!
 
  static int vbox_get_modes(struct drm_connector *connector)
  {
--- 490,497 ----
     drm_connector_update_edid_property(connector, (struct edid *)edid);
  #else
     drm_mode_connector_update_edid_property(connector, (struct edid *)edid);
  #endif
! }
 
  static int vbox_get_modes(struct drm_connector *connector)
  {


Offline towo

  • Global Moderator
  • User
  • *****
  • Posts: 2.415
Re: Virtualbox error after du
« Reply #5 on: 2018/11/02, 12:02:44 »
Theoretical you don't need guest-packages anymore installed in guest, since we have vbox-modules in kernel.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline demailly

  • User
  • Posts: 15
Re: Virtualbox error after du
« Reply #6 on: 2018/11/02, 18:11:20 »
Many thanks for explaining this, Torsten !
Nevertheless, the package virtualbox-guest is broken, and if people don't pay attention to remove it - or still want to use it for some reason - then the dist-upgrade is annoyingly reported as leading to failure ...