Bad return status for module build on kernel: 4.13

Bug #1734159 reported by Ilis
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ndiswrapper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya

4.13.0-16-generic #19~16.04.3-Ubuntu SMP Mon Oct 16 18:59:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I've got errors while upgrade kernel to 4.13.0-16

Error! Bad return status for module build on kernel: 4.13.0-16-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.

DKMS make.log for ndiswrapper-1.60 for kernel 4.13.0-16-generic (x86_64)
Сб ноя 18 13:24:12 +05 2017
make: вход в каталог «/usr/src/linux-headers-4.13.0-16-generic»
  AR /var/lib/dkms/ndiswrapper/1.60/build/built-in.o
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/usb_exports.h
  MKSTUBS /var/lib/dkms/ndiswrapper/1.60/build/win2lin_stubs.h
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/crt.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/hal.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/iw_ndis.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/loader.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/ndis.o
In file included from /var/lib/dkms/ndiswrapper/1.60/build/ndis.h:19:0,
                 from /var/lib/dkms/ndiswrapper/1.60/build/ndis.c:16:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMAllocateSharedMemory’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: error: ‘__GFP_REPEAT’ undeclared (first use in this function)
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: note: each undeclared identifier is reported only once for each function it appears in
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMIndicateReceivePacket’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2261:15: error: ‘struct net_device’ has no member named ‘last_rx’
   wnd->net_dev->last_rx = jiffies;
               ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘EthRxIndicateHandler’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2349:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMTransferDataComplete’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2464:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
scripts/Makefile.build:302: ошибка выполнения рецепта для цели «/var/lib/dkms/ndiswrapper/1.60/build/ndis.
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ndis.o] Ошибка 1
Makefile:1546: ошибка выполнения рецепта для цели «_module_/var/lib/dkms/ndiswrapper/1.60/build»
make: *** [_module_/var/lib/dkms/ndiswrapper/1.60/build] Ошибка 2
make: выход из каталога «/usr/src/linux-headers-4.13.0-16-generic»

Ilis (ilis)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ndiswrapper (Ubuntu):
status: New → Confirmed
Revision history for this message
Ilis (ilis) wrote :

Maybe this:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01f1d297

will help developers to fix this bug?

Revision history for this message
NStorm (passnet) wrote :

I could confirm the same error for kernel 4.13.0-26-generic. Kernel structures has been changed and the dkms module version should be bumped to comply with this.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Please see bug 1724869 - this has been fixed months ago, but nobody verified the xenial upload, so the fix is stuck in -proposed. Verifying should be easy: Enable proposed, upgrade ndiswrapper-dkms and report that it works with the 4.13 kernel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.