From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AuhSX-00005u-Ct for qemu-devel@nongnu.org; Sat, 21 Feb 2004 19:27:01 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AuhRv-0007IP-VV for qemu-devel@nongnu.org; Sat, 21 Feb 2004 19:26:56 -0500 Received: from [62.210.158.46] (helo=teheran.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AuhRu-0007DL-ON for qemu-devel@nongnu.org; Sat, 21 Feb 2004 19:26:22 -0500 Received: from 10.0.0.2 (ppp-181.net-555.magic.fr [62.210.255.181]) by teheran.magic.fr (8.11.6/8.11.2) with ESMTP id i1M0PuY06756 for ; Sun, 22 Feb 2004 01:25:56 +0100 (CET) Subject: Re: [Qemu-devel] Fail to compile From: "J. Mayer" In-Reply-To: <4037E495.40803@wanadoo.fr> References: <4037E495.40803@wanadoo.fr> Content-Type: text/plain Message-Id: <1077409581.23168.8.camel@rapid> Mime-Version: 1.0 Date: Sun, 22 Feb 2004 01:26:21 +0100 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Never organized