All of lore.kernel.org
 help / color / mirror / Atom feed
From: liheyuan <680350@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 680350] [NEW] fail to compile qemu-kvm-0.13.0
Date: Tue, 23 Nov 2010 02:48:06 -0000	[thread overview]
Message-ID: <20101123024806.24657.22591.malonedeb@wampee.canonical.com> (raw)
In-Reply-To: 20101123024806.24657.22591.malonedeb@wampee.canonical.com

Public bug reported:

Problem
During compile with qemu-kvm-0.13.0, can't successfully make through with error:
#make && make install
kvm-all.o: In function `kvm_run':
/home/liheyuan/code/qemu-kvm-0.13.0/qemu-kvm.c:675: undefined reference to `kvm_handle_internal_error'
collect2: ld returned 1 exit status

Cause
The developer using an new ‘macro definition’:KVM_CAP_INTERNAL_ERROR_DATA, but fail to add it to every places it needed.

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

#line674~~677  should be replace like this:
#ifdef KVM_CAP_INTERNAL_ERROR_DATA
        case KVM_EXIT_INTERNAL_ERROR:
            kvm_handle_internal_error(env, run);
            r = 1;
            break;
#endif

For more details at, http://www.coder4.com/archives/1174

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: 0.13.0 qmeu-kvm

-- 
fail to compile qemu-kvm-0.13.0
https://bugs.launchpad.net/bugs/680350
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
Problem
During compile with qemu-kvm-0.13.0, can't successfully make through with error:
#make && make install
kvm-all.o: In function `kvm_run':
/home/liheyuan/code/qemu-kvm-0.13.0/qemu-kvm.c:675: undefined reference to `kvm_handle_internal_error'
collect2: ld returned 1 exit status

Cause
The developer using an new ‘macro definition’:KVM_CAP_INTERNAL_ERROR_DATA, but fail to add it to every places it needed.

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

#line674~~677  should be replace like this:
#ifdef KVM_CAP_INTERNAL_ERROR_DATA
        case KVM_EXIT_INTERNAL_ERROR:
            kvm_handle_internal_error(env, run);
            r = 1;
            break;
#endif

For more details at, http://www.coder4.com/archives/1174

       reply	other threads:[~2010-11-23  2:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-23  2:48 liheyuan [this message]
2010-11-29 10:11 ` [Qemu-devel] [Bug 680350] Re: fail to compile qemu-kvm-0.13.0 Jes Sorensen
2012-07-10 15:55 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101123024806.24657.22591.malonedeb@wampee.canonical.com \
    --to=680350@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.