Re: compile failed on FC5T2 kernel
"Linuxant support (Jonathan)" <[email protected]> Mon, 16 Jan 2006 14:51:25 -0500
| Newsgroups | gmane.linux.kernel.driver-loader |
|---|---|
| Message-ID | <[email protected]> |
Hi, for the suspend issue on FC5 test, did you tried with different versions of the Windows XP driver, if available, to see if there is a difference? Did you tried with the vanilla 2.6.15 kernel from http://www.kernel.org as well? For the compilation issue, please try the patch I have attached to this post, it should fix at least the following error: --- /usr/lib/driverloader/modules/dldrusb.c:348: error: unknown field 'owner' specified in initializer --- Regards, Jonathan Technical specialist / Linuxant www.linuxant.com [email protected] Neal Becker wrote: > This is Fedora 5 Test 2 x86_64: > > CC [M] /usr/lib/driverloader/modules/dldrusb.o > In file included from /usr/lib/driverloader/modules/dldrusb.c:18: > /usr/lib/driverloader/modules/GPL/netndis.h: In function 'netndis_lock': > /usr/lib/driverloader/modules/GPL/netndis.h:181: warning: value computed is > not used > /usr/lib/driverloader/modules/GPL/netndis.h:184: warning: value computed is > not used > /usr/lib/driverloader/modules/GPL/netndis.h:189: warning: value computed is > not used > /usr/lib/driverloader/modules/dldrusb.c: At top level: > /usr/lib/driverloader/modules/dldrusb.c:348: error: unknown field 'owner' > specified in initializer > /usr/lib/driverloader/modules/dldrusb.c:348: warning: missing braces around > initializer > /usr/lib/driverloader/modules/dldrusb.c:348: warning: (near initialization for > 'dldrusb_driver.dynids') > /usr/lib/driverloader/modules/dldrusb.c:348: warning: initialization makes > integer from pointer without a cast > /usr/lib/driverloader/modules/dldrusb.c:348: error: initializer element is not > computable at load time > /usr/lib/driverloader/modules/dldrusb.c:348: error: (near initialization for > 'dldrusb_driver.dynids.lock.raw_lock.slock') > make[2]: *** [/usr/lib/driverloader/modules/dldrusb.o] Error 1 > make[1]: *** [_module_/usr/lib/driverloader/modules] Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.15-1.1857_FC5-x86_64' > make: *** [all] Error 2 > _______________________________________________ > driverloader mailing list > [email protected] > https://www.linuxant.com/mailman/listinfo/driverloader _______________________________________________ driverloader mailing list [email protected] https://www.linuxant.com/mailman/listinfo/driverloader
dldr-2.30-usb_driver_owner.patch
(text/x-patch, 1.4 KB)
diff -urN driverloader-2.30/modules/Makefile driverloader-2.30-usb_driver_owner/modules/Makefile
--- driverloader-2.30/modules/Makefile 2005-10-21 11:45:54.000000000 -0400
+++ driverloader-2.30-usb_driver_owner/modules/Makefile 2005-12-15 14:08:59.000000000 -0500
@@ -83,6 +83,9 @@
FOUND_PCI_CHOOSE_STATE := $(shell grep -q 'pci_choose_state' ${REAL_KERNELSRC}/include/linux/pci.h 2>/dev/null && echo -DFOUND_PCI_CHOOSE_STATE)
CFLAGS+= $(FOUND_PCI_CHOOSE_STATE)
+FOUND_USB_DRIVER_OWNER := $(shell grep -q 'struct module \*owner' ${REAL_KERNELSRC}/include/linux/usb.h 2>/dev/null && echo -DFOUND_USB_DRIVER_OWNER)
+CFLAGS+= $(FOUND_USB_DRIVER_OWNER)
+
KBUILD_SUPPORTED := $(shell test -e ${DLDR_KERNELSRC}/scripts/kconfig && echo yes || echo no)
ifeq ($(KBUILD_SUPPORTED),yes)
diff -urN driverloader-2.30/modules/dldrusb.c driverloader-2.30-usb_driver_owner/modules/dldrusb.c
--- driverloader-2.30/modules/dldrusb.c 2005-10-21 11:40:51.000000000 -0400
+++ driverloader-2.30-usb_driver_owner/modules/dldrusb.c 2005-12-15 13:58:42.000000000 -0500
@@ -344,7 +344,7 @@
struct usb_driver dldrusb_driver = {
.name = "driverloader",
.id_table = dldrusb_tbl,
-#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20) )
+#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20) ) && defined(FOUND_USB_DRIVER_OWNER)
.owner = THIS_MODULE,
#endif
.probe = dldrusb_probe,