qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Fail to compile


From: J. Mayer
Subject: Re: [Qemu-devel] Fail to compile
Date: Sun, 22 Feb 2004 01:26:21 +0100

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 <address@hidden>
Never organized





reply via email to

[Prev in Thread] Current Thread [Next in Thread]