* [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD
@ 2007-01-26 14:53 Pierre d'Herbemont
2007-01-26 15:39 ` Thiemo Seufer
2007-01-26 15:57 ` Joe Batt
0 siblings, 2 replies; 4+ messages in thread
From: Pierre d'Herbemont @ 2007-01-26 14:53 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
Hi,
This fix,
/qemu/hw/ide.c: In function `ide_atapi_io_error':
/qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this
function)
on Darwin and certainly on other *BSDs
Pierre.
[-- Attachment #2: enomedium_darwin.diff.txt --]
[-- Type: text/plain, Size: 400 bytes --]
Index: vl.h
===================================================================
RCS file: /sources/qemu/qemu/vl.h,v
retrieving revision 1.177
diff -u -r1.177 vl.h
--- vl.h 24 Jan 2007 21:40:21 -0000 1.177
+++ vl.h 26 Jan 2007 14:51:15 -0000
@@ -44,6 +44,9 @@
#ifndef O_BINARY
#define O_BINARY 0
#endif
+#ifndef ENOMEDIUM
+#define ENOMEDIUM ENODEV
+#endif
#ifdef __sun__
#define ENOMEDIUM 4097
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD
2007-01-26 14:53 [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD Pierre d'Herbemont
@ 2007-01-26 15:39 ` Thiemo Seufer
2007-01-26 16:40 ` Pierre d'Herbemont
2007-01-26 15:57 ` Joe Batt
1 sibling, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2007-01-26 15:39 UTC (permalink / raw)
To: Pierre d'Herbemont; +Cc: qemu-devel
Pierre d'Herbemont wrote:
> Hi,
>
> This fix,
>
> /qemu/hw/ide.c: In function `ide_atapi_io_error':
> /qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this
> function)
I committed a slightly different patch.
Thiemo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD
2007-01-26 14:53 [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD Pierre d'Herbemont
2007-01-26 15:39 ` Thiemo Seufer
@ 2007-01-26 15:57 ` Joe Batt
1 sibling, 0 replies; 4+ messages in thread
From: Joe Batt @ 2007-01-26 15:57 UTC (permalink / raw)
To: qemu-devel
Have all the Darwin changes been committed?
I was compiling with the default compiler.
joe-batts-computer:~/qemu battjt$ gcc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
5363)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
At one point last summer, with a bunch of ugly hacks before my
harddrive failure, I thought I was able to compile a working version
of qemu on the MacBook(Intel/white) with gcc-3.4.
gcc -Wall -O2 -g -fno-strict-aliasing -I. -D_GNU_SOURCE -
D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mdynamic-no-pic -o dyngen
dyngen.c
dyngen.c: In function 'get_reloc_name':
dyngen.c:1013: warning: pointer targets in passing argument 2 of
'fetch_next_pair_value' differ in signedness
dyngen.c:1015: warning: pointer targets in passing argument 2 of
'fetch_next_pair_value' differ in signedness
dyngen.c:1017: warning: pointer targets in passing argument 2 of
'fetch_next_pair_value' differ in signedness
dyngen.c: In function 'gen_code':
dyngen.c:1817: error: 'struct relocation_info' has no member named
'r_offset'
dyngen.c:1818: error: 'struct relocation_info' has no member named
'r_offset'
dyngen.c:1822: error: 'struct relocation_info' has no member named
'r_offset'
dyngen.c:1836: error: 'struct relocation_info' has no member named
'r_offset'
dyngen.c:1879:2: error: #error unsupport object format
dyngen.c:1813: warning: unused variable 'type'
make: *** [dyngen] Error 1
Has anyone tracked the changes made by the guys working on Q.app?
Were those committed? That worked pretty well, but I just want a
command line qemu as a consistent env across my mac, linux and win32
devices.
Joe
On Jan 26, 2007, at 9:53 AM, Pierre d'Herbemont wrote:
> Hi,
>
> This fix,
>
> /qemu/hw/ide.c: In function `ide_atapi_io_error':
> /qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in
> this function)
>
> on Darwin and certainly on other *BSDs
>
> Pierre.
>
> <enomedium_darwin.diff.txt>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD
2007-01-26 15:39 ` Thiemo Seufer
@ 2007-01-26 16:40 ` Pierre d'Herbemont
0 siblings, 0 replies; 4+ messages in thread
From: Pierre d'Herbemont @ 2007-01-26 16:40 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: qemu-devel
On 26 janv. 07, at 16:39, Thiemo Seufer wrote:
> Pierre d'Herbemont wrote:
>> Hi,
>>
>> This fix,
>>
>> /qemu/hw/ide.c: In function `ide_atapi_io_error':
>> /qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this
>> function)
>
> I committed a slightly different patch.
And it's better ;)
Pierre.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-26 16:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26 14:53 [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD Pierre d'Herbemont
2007-01-26 15:39 ` Thiemo Seufer
2007-01-26 16:40 ` Pierre d'Herbemont
2007-01-26 15:57 ` Joe Batt
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.