hypervisor error: SPIN_LOCK_UNLOCKED undeclared here + implicit kmalloc

SapphireB

Bit poster
Full error:
/tmp/.MP2CHYBH8/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:75:38: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
/tmp/.MP2CHYBH8/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:112:2: error: implicit declaration of function ‘kmalloc’

Trying to run on Kernel Linux 3.0.0-1-amd64 (x86_64).

Apparently SPIN_LOCK_UNLOCKED has been deprecated since 2007 and completely removed since version 2.6.39.
I was able to patch that by adding the removed line back into to spinlock_types.h but I'm not sure about the kmalloc.

So @Parallels team; please update I wanna try/buy this software. <3
And @Everyone else; know of a temporary patch to fix the kmalloc issue? :(

If I could patch the source directly it'd be ok but I'm sort of scared to since I can't continue the installation from the same tmp folder and if I just ran the make from there I might miss some finalizing routine I don't know about. x.x
 
Back
Top