Solution for qemu-kvm-0.13.0 with undefined reference to `kvm_handle_internal_error`

Problem
With the latest version of qemu-kvm, I can’t successfully compile with error below:

Cause

The problem was an bug of version 0.13.0.
The developer using an new ‘macro definition’:KVM_CAP_INTERNAL_ERROR_DATA, but fail to add it to all the places.
As shown below,

This article was firsy posted at:Solution for qemu-kvm-0.13.0 with undefined reference to kvm_handle_internal_error,don’t remove the link if you repost.

Solution
modify qemu-kvm.c, line:674,add the ‘macro definition’ before and after the ‘case:’, as follows

Recompile with make && make install , all is well.

This article was firsy posted at:Solution for qemu-kvm-0.13.0 with undefined reference to kvm_handle_internal_error,don’t remove the link if you repost.

Leave a Reply

Your email address will not be published.