Hai,
I am doing an usb-uhci(osg-uhci) device driver with a single interrupt.I 
cannot insmod the module since it is showing unresolved symbols error.
I am using Redhat linux with kernel version 2.2(2.2.16-22).

The error message I got was:(from /var/log/messages)

Feb 25 15:07:03 pc23 rc.sysinit: Setting hostname pc23:  succeeded
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o:
Feb 25 15:07:03 pc23 modprobe: unresolved symbol usb_alloc_bus
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_free_dev
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_inc_dev_use
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_deregister_bus
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_disconnect
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_connect
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_new_device
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_root_hub_string
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_alloc_dev
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_register_bus
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: 
unresolved symbol usb_free_bus
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: insmod 
/lib/modules/2.2.16-22/usb/osg-uhci.o failed
Feb 25 15:07:03 pc23 modprobe: /lib/modules/2.2.16-22/usb/osg-uhci.o: insmod 
osg-uhci failed
Feb 25 15:07:03 pc23 rc.sysinit: Initializing USB controller (osg-uhci):  
failed
Feb 25 15:07:03 pc23 fsck: /: clean, 112690/2146304 files, 806489/4285338 
blocks


These symbols are declared in header file <linux/usb.h> and defined in 
<usb/usb.c>.I have included the header file usb.h in my c file.
I am using a simple makefile as below:
-------------------------------
# Make file for USB-UHCI
CC=gcc
MODCFLAGS := -Wall -DMODULE -D__KERNEL__ -DLINUX -DDEBUG  
-I/usr/src/linux-2.2.16/include -O2
osg-uhci.o:             osg-uhci.c /usr/include/linux/version.h
                        $(CC) $(MODCFLAGS) -c osg-uhci.c
-------------------------------------

I am able to create osh-uhci.o with this file.Should I include or link any 
other files ?
Is the unresolved symbols error due to any dependency issues ?
Please help..
Thanking you
Prasanth




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to