Hi guys,
Just hit an error when upgrading the Linux Kernel from 4.14.x to 4.15.x in Linux Mint 18.3 - been upgrading the Kernel for 12 months without any issues.
See the attached screenshot for the build-error (couldn't do a text-capture for some reason)... The errors are related to dkms/ndiswrapper...
Here is the make.log mentioned in the build-error. I dont' have the experience to diagnose this, so any help or comments would be appreciated.
Cheers,
Mike.
------- make.log ------
DKMS make.log for ndiswrapper-1.60 for kernel 4.15.9-041509-generic (x86_64)
Monday 12 March 19:38:34 AEDT 2018
make: Entering directory '/usr/src/linux-headers-4.15.9-041509-generic'
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
CC [M] /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c: In function ƒ_~wrap_init_timerƒ_T:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:455:2: error: implicit declaration of function ƒ_~init_timerƒ_T [-Werror=implicit-function-declaration]
init_timer(&wrap_timer->timer);
^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:456:19: error: ƒ_~struct timer_listƒ_T has no member named ƒ_~dataƒ_T
wrap_timer->timer.data = (unsigned long)wrap_timer;
^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:457:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
wrap_timer->timer.function = timer_proc;
^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c: In function ƒ_~ntoskernel_initƒ_T:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:2563:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
shared_data_timer.function = update_user_shared_data_proc;
^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.c:2564:19: error: ƒ_~struct timer_listƒ_T has no member named ƒ_~dataƒ_T
shared_data_timer.data = 0;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:316: recipe for target '/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o' failed
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.o] Error 1
Makefile:1515: recipe for target '_module_/var/lib/dkms/ndiswrapper/1.60/build' failed
make: *** [_module_/var/lib/dkms/ndiswrapper/1.60/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.9-041509-generic'
Kernel upgrade error - dkms / ndiswrapper
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Kernel upgrade error - dkms / ndiswrapper
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Kernel upgrade error - dkms / ndiswrapper
Kernels 4.14 and 4.15 aren't in the official repos so they're unsupported. You're using mainline kernels, which are for testing only.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: Kernel upgrade error - dkms / ndiswrapper
Yes, I'm aware of that - just after some advice regarding the error...
Mike.
Mike.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Kernel upgrade error - dkms / ndiswrapper
Well, not wanting to be snooty or anything, but the best advice is don't use mainline kernels, and if you do then you need to be able to fix things yourself when it all goes south.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: Kernel upgrade error - dkms / ndiswrapper
Oh, no offence taken...
I've been running the mainline Kernels (a bad habit I've gotten into!) since Mint 18,2 and have had no issues or glitches at all, until 4.15.
I asked here, rather than on a more generic Linux forum, as there seem to be very many knowledgeable members here who may have an idea what the error means/suggests.
It's no big deal, I'm testing each point release of 4.15 as they come out to see if it's been fixed! No luck yet though
Cheers,
Mike,
I've been running the mainline Kernels (a bad habit I've gotten into!) since Mint 18,2 and have had no issues or glitches at all, until 4.15.
I asked here, rather than on a more generic Linux forum, as there seem to be very many knowledgeable members here who may have an idea what the error means/suggests.
It's no big deal, I'm testing each point release of 4.15 as they come out to see if it's been fixed! No luck yet though
Cheers,
Mike,
Re: Kernel upgrade error - dkms / ndiswrapper
Virtualbox and ndiswrapper are packages that supply source code to build out-of-tree kernel modules.
You can find ndiswrapper source in
During compilation they include kernel header files from
Since significant changes were made for the 4.15 series kernel, it's causing the compiler to croak.
These dkms packages have to be adjusted for newer kernel series - so you just jumped too far ahead.
See
You can find ndiswrapper source in
ls -lh /usr/src/ndiswrapper-1.60/
During compilation they include kernel header files from
echo /usr/src/linux-headers-$(uname -r)
Since significant changes were made for the 4.15 series kernel, it's causing the compiler to croak.
These dkms packages have to be adjusted for newer kernel series - so you just jumped too far ahead.
See
man dkms
for more information about dynamically built modules Re: Kernel upgrade error - dkms / ndiswrapper
Thanks for the info - I'm on track now!
Thanks again!
Mike.
Thanks again!
Mike.