Package: virtualbox-guest-dkms
Version: 4.1.18-dfsg-2
Severity: important
Dear Maintainer,
Making dpkg-reconfigure on virtualbox-guest-dkms gives the following error:
Loading new virtualbox-guest-4.1.18 DKMS files...
Building only for 3.2.0-4-amd64
Building initial module for 3.2.0-4-amd64
Error! Bad return status for module build on kernel: 3.2.0-4-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.1.18/build/make.log for more
information.
The make.log says (full contents of the file attached to the report):
[...]
CC [M] /var/lib/dkms/virtualbox-guest/4.1.18/build/vboxvideo/vboxvideo_drm.o
[...]
/var/lib/dkms/virtualbox-guest/4.1.18/build/vboxvideo/vboxvideo_drm.c:115:9:
error: field name not in record or union initializer
It seems this is the same problem that occurred earlier in RHEL: since
linux-3.3.0-rc1 drm_driver::fops is a pointer, but this change was
backported to erlier versions of the kernel, which the code in vboxvideo_drm.c
does
not recognize (it tests only wheather LINUX_VERSION_CODE <
KERNEL_VERSION(3,3,0)).
Indeed, when I replaced the offending file vboxvideo_drm.c with the following
downloaded
from the internet:
https://www.virtualbox.org/svn/vbox/trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c
and added the following line to it:
#define DRM_RHEL63
then the compilation went successfully.
I recreated the problem and report it from my virtualbox host system (although
installing guest additions in a host system makes little sense),
but the errors occurring during installation on the guest system (despite a
different architecture: pae instead of amd64) were identical.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (901, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash