Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 438518

Summary: app-emulation/virtualbox-modules-4.2.0-r1 fails with kernel 3.7-rc
Product: Gentoo Linux Reporter: Fabio Rossi <rossi.f>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED UPSTREAM    
Severity: normal CC: patrick, swapon, waterhouse.sysmail
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: virtualbox-modules-kernel-3.7-vmreserved.patch

Description Fabio Rossi 2012-10-15 21:49:53 UTC
Here is the problem:

make KBUILD_VERBOSE= SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv CONFIG_MODULE_SIG= -C /usr/src/linux modules
make[2]: Entering directory `/usr/src/wireless-testing'
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/SUPDrv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/SUPDrvSem.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/SUPDrvTracer.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/mp-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/process-r0drv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1460:38: error: ‘VM_RESERVED’ undeclared (first use in this function)
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1460:38: note: each undeclared identifier is reported only once for each function it appears in
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.0-r1/work/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o

The problem is related to the recent kernel commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=314e51b9851b4f4e8ab302243ff5a6fc6147f379
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-10-16 04:59:12 UTC
Please report this issue upstream and let us know about the upstram bug report once it was filed.
Comment 2 Fabio Rossi 2012-10-19 12:34:39 UTC
Created attachment 326932 [details, diff]
virtualbox-modules-kernel-3.7-vmreserved.patch

I have created a simple patch to solve the problem, tested and working.
Comment 3 Magnus Helmersson 2012-10-20 16:33:58 UTC
I suspect this is a duplicate of: https://bugs.gentoo.org/show_bug.cgi?id=432884
Comment 4 Magnus Helmersson 2012-10-20 16:45:33 UTC
Oh, and there already seems to be a fix for it: https://www.virtualbox.org/changeset/43637/vbox