Copy the end of this message to a file called patch.txt

$ sudo su
# cd /usr/src/virtualbox-4.3.10
# patch -p0 <patch.txt
# dkms clean
# dkms remove virtualbox/4.3.10 --all
# dkms build virtualbox/4.3.10
# sudo dkms install virtualbox/4.3.10

Not my original work, credit goes to someone else... I was affected
though.



--- vboxnetadp/linux/VBoxNetAdp-linux.c 2014-07-15 19:24:57.000000000 +0200
+++ vboxnetadp/linux/VBoxNetAdp-linux.c 2014-08-18 13:52:24.292185943 +0200
@@ -50,10 +50,29 @@
 #define VBOXNETADP_LINUX_NAME      "vboxnet%d"
 #define VBOXNETADP_CTL_DEV_NAME    "vboxnetctl"
 
 #define VBOXNETADP_FROM_IFACE(iface) ((PVBOXNETADP) ifnet_softc(iface))
 
+/*******************************
+source for the 4th parameter alloc_netdev fix for kernel 3.17-rc1 is:
+https://github.com/proski/madwifi/commit/c5246021b7b8580c2aeb0a145903acc07d246ac1
+*/
+#ifndef NET_NAME_UNKNOWN
+#undef alloc_netdev
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \
+  alloc_netdev(sizeof_priv, name, setup)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \
+  alloc_netdev_mq(sizeof_priv, name, setup, 1)
+#else
+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \
+  alloc_netdev_mqs(sizeof_priv, name, setup, 1, 1)
+#endif
+#endif
+/*******************************/
+
 
/*******************************************************************************
 *   Internal Functions                                                         
*
 
*******************************************************************************/
 static int  VBoxNetAdpLinuxInit(void);
 static void VBoxNetAdpLinuxUnload(void);
@@ -181,10 +200,11 @@ int vboxNetAdpOsCreate(PVBOXNETADP pThis
     struct net_device *pNetDev;
 
     /* No need for private data. */
     pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV),
                            pThis->szName[0] ? pThis->szName : 
VBOXNETADP_LINUX_NAME,
+                           NET_NAME_UNKNOWN,
                            vboxNetAdpNetDevInit);
     if (pNetDev)
     {
         int err;
 
--- r0drv/linux/alloc-r0drv-linux.c     2014-07-15 19:25:23.000000000 +0200
+++ r0drv/linux/alloc-r0drv-linux.c     2014-08-18 13:37:53.257621846 +0200
@@ -189,11 +189,11 @@ static PRTMEMHDR rtR0MemAllocExecVmArea(
          * in the free function, if nothing else...
          */
         struct page **papPagesIterator = papPages;
         pVmArea->nr_pages = cPages;
         pVmArea->pages    = papPages;
-        if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC, &papPagesIterator))
+        if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC, papPagesIterator))
         {
             PRTMEMLNXHDREX pHdrEx = (PRTMEMLNXHDREX)pVmArea->addr;
             pHdrEx->pVmArea     = pVmArea;
             pHdrEx->pvDummy     = NULL;
             return &pHdrEx->Hdr;


** Attachment added: "Fixes issues related to bug #1457776"
   
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1457776/+attachment/4451661/+files/patch.txt

** Changed in: virtualbox (Ubuntu)
     Assignee: (unassigned) => Henrik Tikanvaara (henrik-tikanvaara-7)

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

Title:
  virtualbox-dkms 4.3.10-dfsg-1ubuntu5: virtualbox kernel module failed
  to build

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to