Anonymous - 2009-07-24

Hi,
i'm trying to compile the kernel modules on the XenServer 5.5.0 DDK, but even after removing some (duplicate) declaration (those in stub_rx.c, "#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)"), i get the following errors:

[root@localhost 2.6.18]# make -C /usr/src/kernels/2.6.18-128.1.6.el5.xs5.5.0.496.1012xen-i686 M=/root/usbip-0.1.7/drivers/2.6.18 modules
make: Entering directory `/usr/src/kernels/2.6.18-128.1.6.el5.xs5.5.0.496.1012xen-i686'
  CC [M]  /root/usbip-0.1.7/drivers/2.6.18/vhci_sysfs.o
In file included from /root/usbip-0.1.7/drivers/2.6.18/vhci_sysfs.c:24:
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:132: warning: 'struct usb_hcd' declared inside parameter list
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:132: warning: its scope is only this definition or declaration, which is probably not what you want
/root/usbip-0.1.7/drivers/2.6.18/vhci.h: In function 'hcd_to_vhci':
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:134: error: dereferencing pointer to incomplete type
/root/usbip-0.1.7/drivers/2.6.18/vhci.h: In function 'vhci_to_hcd':
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:139: error: dereferencing pointer to incomplete type
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:139: warning: type defaults to 'int' in declaration of '__mptr'
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:139: error: invalid use of undefined type 'struct usb_hcd'
/root/usbip-0.1.7/drivers/2.6.18/vhci.h: In function 'vhci_dev':
/root/usbip-0.1.7/drivers/2.6.18/vhci.h:144: error: dereferencing pointer to incomplete type
make[1]: *** [/root/usbip-0.1.7/drivers/2.6.18/vhci_sysfs.o] Error 1
make: *** [_module_/root/usbip-0.1.7/drivers/2.6.18] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-128.1.6.el5.xs5.5.0.496.1012xen-i686'

This is my only chance to get my ISB ISDN card working inside a VM, so any help is greatly appreciated! ;)