From: Avi Kivity <avi@qumranet.com>
To: Farkas Levente <lfarkas@lfarkas.org>
Cc: kvm@vger.kernel.org
Subject: Re: another kvm-70 compile bug with rhel/centos 5.2
Date: Sun, 29 Jun 2008 18:47:22 +0300 [thread overview]
Message-ID: <4867AE8A.4010600@qumranet.com> (raw)
In-Reply-To: <4862AE06.6060206@lfarkas.org>
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
Farkas Levente wrote:
> hi,
> i'm just try to recompile kvm-70 with the latest centos-5.2 (aka
> rhel-5.2) kernel, but i've got a new compile error:
> error: redefinition of typedef 'bool'
Please try the attached patch, and let me know if it helps.
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: rhel-5.2.patch --]
[-- Type: text/plain, Size: 497 bytes --]
diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index c28d759..1ad515f 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -349,10 +349,14 @@ uint64_t div64_u64(uint64_t dividend, uint64_t divisor);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+#if !defined(RHEL_RELEASE_VERSION) || (RHEL_RELEASE_VERSION < RHEL_RELEASE_CODE(5,2))
+
typedef _Bool bool;
#endif
+#endif
+
/*
* PF_VCPU is a Linux 2.6.24 addition
*/
next prev parent reply other threads:[~2008-06-29 15:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 20:43 another kvm-70 compile bug with rhel/centos 5.2 Farkas Levente
2008-06-27 13:03 ` Farkas Levente
2008-06-29 9:11 ` Avi Kivity
2008-06-29 15:47 ` Avi Kivity [this message]
2008-06-29 17:22 ` Farkas Levente
2008-06-29 17:24 ` Farkas Levente
2008-06-29 17:50 ` Avi Kivity
2008-07-01 1:13 ` Erik Bussink
2008-07-01 7:11 ` Avi Kivity
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=4867AE8A.4010600@qumranet.com \
--to=avi@qumranet.com \
--cc=kvm@vger.kernel.org \
--cc=lfarkas@lfarkas.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.