From: "J. Mayer" <l_indien@magic.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Fail to compile
Date: Sun, 22 Feb 2004 01:26:21 +0100 [thread overview]
Message-ID: <1077409581.23168.8.camel@rapid> (raw)
In-Reply-To: <4037E495.40803@wanadoo.fr>
On Sun, 2004-02-22 at 00:07, Anne et Bertrand wrote:
> System : Mandrake9.1PPC, kernel-2.4.23.
> Wgereas qemu-0.5.0 compile and run on my system, I can't compile
> anymore qemu-0.5.2 and also the latest CVS :
>
> gcc -Wall -O2 -g -I. -I/home/bertrand/Desktop/qemu/target-i386
> -I/home/bertrand/Desktop/qemu -D_GNU_SOURCE -c -o main.o
> /home/bertrand/Desktop/qemu/main.c
> gcc -Wall -O2 -g -I. -I/home/bertrand/Desktop/qemu/target-i386
> -I/home/bertrand/Desktop/qemu -D_GNU_SOURCE -c -o syscall.o
> /home/bertrand/Desktop/qemu/syscall.c
> /home/bertrand/Desktop/qemu/syscall.c:1147: `O_DIRECT' undeclared here
> (not in a function)
...
What is your glibc version ?
Whatever, try to apply this patch:
Index: syscall.c
===================================================================
RCS file: /cvsroot/qemu/qemu/syscall.c,v
retrieving revision 1.42
diff -u -d -w -B -b -d -p -r1.42 syscall.c
--- syscall.c 4 Jan 2004 23:57:22 -0000 1.42
+++ syscall.c 22 Feb 2004 00:23:50 -0000
@@ -1144,7 +1144,9 @@ static bitmask_transtbl fcntl_flags_tbl[
{ TARGET_O_DIRECTORY, TARGET_O_DIRECTORY, O_DIRECTORY, O_DIRECTORY, },
{ TARGET_O_NOFOLLOW, TARGET_O_NOFOLLOW, O_NOFOLLOW, O_NOFOLLOW, },
{ TARGET_O_LARGEFILE, TARGET_O_LARGEFILE, O_LARGEFILE, O_LARGEFILE, },
+#if defined (O_DIRECT)
{ TARGET_O_DIRECT, TARGET_O_DIRECT, O_DIRECT, O_DIRECT, },
+#endif
{ 0, 0, 0, 0 }
};
--
J. Mayer <l_indien@magic.fr>
Never organized
next prev parent reply other threads:[~2004-02-22 0:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-21 23:07 [Qemu-devel] Fail to compile Anne et Bertrand
2004-02-22 0:26 ` J. Mayer [this message]
2004-02-22 0:56 ` [Qemu-devel] [BUG] signed 16 bits word load for bigendian targets J. Mayer
2004-02-23 22:37 ` [Qemu-devel] Re: Fail to compile Anne et Bertrand
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=1077409581.23168.8.camel@rapid \
--to=l_indien@magic.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).