Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-03-25 Thread Joe Batt

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.


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel






Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-01-26 Thread Pierre d'Herbemont


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.


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-01-26 Thread Thiemo Seufer
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


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-01-26 Thread Pierre d'Herbemont

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.

Index: vl.h
===
RCS file: /sources/qemu/qemu/vl.h,v
retrieving revision 1.177
diff -u -r1.177 vl.h
--- vl.h24 Jan 2007 21:40:21 -  1.177
+++ vl.h26 Jan 2007 14:51:15 -
@@ -44,6 +44,9 @@
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
+#ifndef ENOMEDIUM
+#define ENOMEDIUM ENODEV
+#endif
 
 #ifdef __sun__
 #define ENOMEDIUM 4097
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel