qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PATCH: fix usb-linux.c compile orror
@ 2008-09-28 18:54 Robert Reif
  2008-09-29 16:13 ` Anthony Liguori
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Reif @ 2008-09-28 18:54 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

This patch fixes the following compile error:

usb-linux.c: In function `usb_linux_update_endp_table':
usb-linux.c:777: error: structure has no member named `bRequestType'
usb-linux.c:778: error: structure has no member named `bRequest'
usb-linux.c:779: error: structure has no member named `wValue'
usb-linux.c:780: error: structure has no member named `wIndex'
usb-linux.c:781: error: structure has no member named `wLength'
usb-linux.c:818: error: structure has no member named `bRequestType'
usb-linux.c:819: error: structure has no member named `bRequest'
usb-linux.c:820: error: structure has no member named `wValue'
usb-linux.c:821: error: structure has no member named `wIndex'
usb-linux.c:822: error: structure has no member named `wLength'
make: *** [usb-linux.o] Error 1

[-- Attachment #2: usb.diff.txt --]
[-- Type: text/plain, Size: 313 bytes --]

--- usb-linux.c	(revision 5338)
+++ usb-linux.c	(working copy)
@@ -771,7 +771,7 @@
 {
     uint8_t *descriptors;
     uint8_t devep, type, configuration, alt_interface;
-    struct usbdevfs_ctrltransfer ct;
+    struct usb_ctrltransfer ct;
     int interface, ret, length, i;
 
     ct.bRequestType = USB_DIR_IN;

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-28 18:54 [Qemu-devel] PATCH: fix usb-linux.c compile orror Robert Reif
@ 2008-09-29 16:13 ` Anthony Liguori
  2008-09-30  0:54   ` Robert Reif
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2008-09-29 16:13 UTC (permalink / raw)
  To: qemu-devel

Robert Reif wrote:
> This patch fixes the following compile error:
>
> usb-linux.c: In function `usb_linux_update_endp_table':
> usb-linux.c:777: error: structure has no member named `bRequestType'
> usb-linux.c:778: error: structure has no member named `bRequest'
> usb-linux.c:779: error: structure has no member named `wValue'
> usb-linux.c:780: error: structure has no member named `wIndex'
> usb-linux.c:781: error: structure has no member named `wLength'
> usb-linux.c:818: error: structure has no member named `bRequestType'
> usb-linux.c:819: error: structure has no member named `bRequest'
> usb-linux.c:820: error: structure has no member named `wValue'
> usb-linux.c:821: error: structure has no member named `wIndex'
> usb-linux.c:822: error: structure has no member named `wLength'
> make: *** [usb-linux.o] Error 1

What kernel version are you using?  This needs a configure check as more 
recent kernel versions seem to be using usbdevfs_ctrltransfer.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-29 16:13 ` Anthony Liguori
@ 2008-09-30  0:54   ` Robert Reif
  2008-09-30  1:38     ` Anthony Liguori
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Reif @ 2008-09-30  0:54 UTC (permalink / raw)
  To: qemu-devel

Anthony Liguori wrote:
> Robert Reif wrote:
>> This patch fixes the following compile error:
>>
>> usb-linux.c: In function `usb_linux_update_endp_table':
>> usb-linux.c:777: error: structure has no member named `bRequestType'
>> usb-linux.c:778: error: structure has no member named `bRequest'
>> usb-linux.c:779: error: structure has no member named `wValue'
>> usb-linux.c:780: error: structure has no member named `wIndex'
>> usb-linux.c:781: error: structure has no member named `wLength'
>> usb-linux.c:818: error: structure has no member named `bRequestType'
>> usb-linux.c:819: error: structure has no member named `bRequest'
>> usb-linux.c:820: error: structure has no member named `wValue'
>> usb-linux.c:821: error: structure has no member named `wIndex'
>> usb-linux.c:822: error: structure has no member named `wLength'
>> make: *** [usb-linux.o] Error 1
>
> What kernel version are you using?  This needs a configure check as 
> more recent kernel versions seem to be using usbdevfs_ctrltransfer.
>
> Regards,
>
> Anthony Liguori
>
>
>
RH9 system (2.4.20-31.9smp).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-30  0:54   ` Robert Reif
@ 2008-09-30  1:38     ` Anthony Liguori
  2008-09-30 14:12       ` Vince Weaver
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2008-09-30  1:38 UTC (permalink / raw)
  To: qemu-devel

Robert Reif wrote:
> Anthony Liguori wrote:
>> Robert Reif wrote:
>>> This patch fixes the following compile error:
>>>
>>> usb-linux.c: In function `usb_linux_update_endp_table':
>>> usb-linux.c:777: error: structure has no member named `bRequestType'
>>> usb-linux.c:778: error: structure has no member named `bRequest'
>>> usb-linux.c:779: error: structure has no member named `wValue'
>>> usb-linux.c:780: error: structure has no member named `wIndex'
>>> usb-linux.c:781: error: structure has no member named `wLength'
>>> usb-linux.c:818: error: structure has no member named `bRequestType'
>>> usb-linux.c:819: error: structure has no member named `bRequest'
>>> usb-linux.c:820: error: structure has no member named `wValue'
>>> usb-linux.c:821: error: structure has no member named `wIndex'
>>> usb-linux.c:822: error: structure has no member named `wLength'
>>> make: *** [usb-linux.o] Error 1
>>
>> What kernel version are you using?  This needs a configure check as 
>> more recent kernel versions seem to be using usbdevfs_ctrltransfer.
>>
>> Regards,
>>
>> Anthony Liguori
>>
>>
>>
> RH9 system (2.4.20-31.9smp).

Huh.  I'm amazed it compiles with just that change on such an old kernel.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-30  1:38     ` Anthony Liguori
@ 2008-09-30 14:12       ` Vince Weaver
  2008-09-30 14:54         ` Anthony Liguori
  0 siblings, 1 reply; 7+ messages in thread
From: Vince Weaver @ 2008-09-30 14:12 UTC (permalink / raw)
  To: qemu-devel


On Mon, 29 Sep 2008, Anthony Liguori wrote:
> Robert Reif wrote:
>> RH9 system (2.4.20-31.9smp).
>
> Huh.  I'm amazed it compiles with just that change on such an old kernel.

I have similar problems compiling on a SuSE 10.1 system which really isn't 
that old.  Since I only use linux-user I'd been too lazy to investigate 
the problem.

Why should Qemu not build on older systems?  I'd imagine that linux 2.4 / 
2.6 compatability would be easier to handle than linux /OSX /Windows 
compatability.

Vince

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-30 14:12       ` Vince Weaver
@ 2008-09-30 14:54         ` Anthony Liguori
  2008-09-30 22:31           ` Robert Reif
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2008-09-30 14:54 UTC (permalink / raw)
  To: qemu-devel

Vince Weaver wrote:
>
> On Mon, 29 Sep 2008, Anthony Liguori wrote:
>> Robert Reif wrote:
>>> RH9 system (2.4.20-31.9smp).
>>
>> Huh.  I'm amazed it compiles with just that change on such an old 
>> kernel.
>
> I have similar problems compiling on a SuSE 10.1 system which really 
> isn't that old.  Since I only use linux-user I'd been too lazy to 
> investigate the problem.
>
> Why should Qemu not build on older systems?  I'd imagine that linux 
> 2.4 / 2.6 compatability would be easier to handle than linux /OSX 
> /Windows compatability.

I think we should support 2.4 kernels FWIW.  I'm just waiting for 
someone to send a patch that adds a configure check instead of breaking 
the build for newer kernels.

I think the best way to do it would be to try and detect the right 
header files for usb pass through in configure, and disable usb-linux.c 
entirely if they aren't available.

Regards,

Anthony LIguori

> Vince
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror
  2008-09-30 14:54         ` Anthony Liguori
@ 2008-09-30 22:31           ` Robert Reif
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Reif @ 2008-09-30 22:31 UTC (permalink / raw)
  To: qemu-devel

Anthony Liguori wrote:
> Vince Weaver wrote:
>>
>> On Mon, 29 Sep 2008, Anthony Liguori wrote:
>>> Robert Reif wrote:
>>>> RH9 system (2.4.20-31.9smp).
>>>
>>> Huh.  I'm amazed it compiles with just that change on such an old 
>>> kernel.
>>
>> I have similar problems compiling on a SuSE 10.1 system which really 
>> isn't that old.  Since I only use linux-user I'd been too lazy to 
>> investigate the problem.
>>
>> Why should Qemu not build on older systems?  I'd imagine that linux 
>> 2.4 / 2.6 compatability would be easier to handle than linux /OSX 
>> /Windows compatability.
>
> I think we should support 2.4 kernels FWIW.  I'm just waiting for 
> someone to send a patch that adds a configure check instead of 
> breaking the build for newer kernels.
>
> I think the best way to do it would be to try and detect the right 
> header files for usb pass through in configure, and disable 
> usb-linux.c entirely if they aren't available.
>
> Regards,
>
> Anthony LIguori
>
>> Vince
>>
>>
The problem in this instance is that a structure that usb uses was 
copied from a linux header file so the c file wasn't dependent on linux 
headers.  Unfortunately the c file wasn't changed to use the new structure.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-30 22:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 18:54 [Qemu-devel] PATCH: fix usb-linux.c compile orror Robert Reif
2008-09-29 16:13 ` Anthony Liguori
2008-09-30  0:54   ` Robert Reif
2008-09-30  1:38     ` Anthony Liguori
2008-09-30 14:12       ` Vince Weaver
2008-09-30 14:54         ` Anthony Liguori
2008-09-30 22:31           ` Robert Reif

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).