Re: 2.4.0-test9-pre8, usb, unresolved symbols

From: Randy Dunlap (randy.dunlap@intel.com)
Date: Wed Oct 18 2000 - 15:47:40 EST


Keith Owens wrote:
>
> Objects that export symbols must be explicitly listed before the
> calculation of OX_OBJS. usb.o is not explicitly listed as an object,
> it is implicitly included via the link of usbcore.
>
> Index: 0-test10-pre3.1/drivers/usb/Makefile
> --- 0-test10-pre3.1/drivers/usb/Makefile Mon, 02 Oct 2000 15:28:44 +1100
> kaos (linux-2.4/n/b/19_Makefile 1.1.1.10 644)
> +++ 0-test10-pre3.1(w)/drivers/usb/Makefile Wed, 18 Oct 2000 13:17:59
> +1100 kaos (linux-2.4/n/b/19_Makefile 1.1.1.10 644)
> @@ -38,7 +38,7 @@ obj- :=
>
> # Each configuration option enables a list of files.
>
> -obj-$(CONFIG_USB) += usbcore.o
> +obj-$(CONFIG_USB) += usbcore.o usb.o
> obj-$(CONFIG_USB_UHCI) += usb-uhci.o
> obj-$(CONFIG_USB_UHCI_ALT) += uhci.o
> obj-$(CONFIG_USB_OHCI) += usb-ohci.o

Keith-

We still need your help. Using this usb/Makefile change gives
me errors on all (?) exported symbols when I try to build all
of USB into the kernel. Example (one of many):

usbcore.o: In function `usb_set_address':
usbcore.o(.text+0x1b90): multiple definition of `usb_set_address'
usb.o(.text+0x1b90): first defined here

I guess that we could go ahead and merge usb-core.c into usb.c
if there's no good/simple solution to this.

Thanks,
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:13 EST