Re: Unknown symbol device_create_file
- From: jeckab612@xxxxxxxxx
- Date: Wed, 19 Mar 2008 16:10:18 -0700 (PDT)
On Mar 19, 11:34 pm, Janaka <jana...@xxxxxxxxxxxx> wrote:
On Mar 20, 8:57 am, Darko <darko.maksimo...@xxxxxxxxx> wrote:
Hi,
I am trying to write a driver for my barcode reader, and I am in the
middle of the process. At the current state, I am testing it and
compiler reports no errors. But once I try to insert it as module, it
reports the following error:
insmod: error inserting 'usbTest.ko': -1 Unknown symbol in module
/var/log/syslog reports the following lines:
Mar 19 22:54:45 darko kernel: Symbol usb_register_driver is being used
by a non-GPL module, which will not be allowed in the future
Mar 19 22:54:45 darko kernel: Please see the file Documentation/
feature-removal-schedule.txt in the kernel source tree for more
details.
Mar 19 22:54:45 darko kernel: usbTest: Unknown symbol
device_create_file
Mar 19 22:54:45 darko kernel: Symbol usb_deregister is being used by a
non-GPL module, which will not be allowed in the future
Mar 19 22:54:45 darko kernel: Please see the file Documentation/
feature-removal-schedule.txt in the kernel source tree for more
details.
Mar 19 22:54:45 darko kernel: usbTest: Unknown symbol
device_remove_file
Though I don't know why usb_register is said to be not allowed in the
future, at the moment I am more interested in how it can't find the
device_remove_file and device_create symbols if:
1. compiler reports no errors;
2. /proc/kallsyms enlists them:
...
ffffffff803cd65b T device_create_file
ffffffff803cd694 T device_remove_file
...
Am I supposed to link differently or something, I am not sure, but I
know my deadline is due :(
This is what compiler says:
make -C /usr/src/linux M=/usr/home/ml01172/DeviceDrivers/usbTest
modules
make[1]: Entering directory `/usr/src/linux-2.6.19.2'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-2.6.19.2'
As you can see, my kernel is 2.6.19.2, so if you can help me, please
do so :)
Thanks
Darko
What does your Makefile look like ?
Thank you for your response. My Makefile looks as following:
ifneq ($(KERNELRELEASE),)
obj-m := usbTest.o
else
KERNELDIR ?= /usr/src/linux
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
rm -rf *.ko *.o *~
endif
Cheers
Darko
.
- References:
- Unknown symbol device_create_file
- From: Darko
- Re: Unknown symbol device_create_file
- From: Janaka
- Unknown symbol device_create_file
- Prev by Date: Re: Unknown symbol device_create_file
- Next by Date: Re: Unknown symbol device_create_file
- Previous by thread: Re: Unknown symbol device_create_file
- Next by thread: Re: Unknown symbol device_create_file
- Index(es):
Relevant Pages
|