For me I got it to work as follow after reading this link:
https://www.virtualbox.org/ticket/10709

My error from /var/log/vboxadd-install.log
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2

I copied the source at this link:
https://www.virtualbox.org/attachment/ticket/10709/memobj-r0drv-linux.c
and removed line numbers.

Then replaced the existing source:
root@u12:/opt/VBoxGuestAdditions-4.1.18/src/vboxguest-4.1.18/vboxguest/r0drv/linux#
 mv ~/memobj-r0drv-linux.c ./memobj-r0drv-linux.c

Then reran vboxadd:
root@u12:/opt/VBoxGuestAdditions-4.1.18/src/vboxguest-4.1.18/vboxguest/r0drv/linux#
 /etc/init.d/vboxadd setup

Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.

** Bug watch added: Virtualbox Trac #10709
   http://www.virtualbox.org/ticket/10709

** Bug watch added: www.virtualbox.org/attachment/ #10709
   https://www.virtualbox.org/attachment/ticket/10709

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016165

Title:
  virtualbox-guest-dkms 4.1.16-dfsg-2: virtualbox-guest kernel module
  failed to build [error: implicit declaration of function ‘do_mmap’]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1016165/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to