Unknown symbol device_create_file
- From: Darko <darko.maksimovic@xxxxxxxxx>
- Date: Wed, 19 Mar 2008 14:57:03 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Unknown symbol device_create_file
- From: Darko
- Re: Unknown symbol device_create_file
- From: Janaka
- Re: Unknown symbol device_create_file
- Prev by Date: Re: Dynamic linking with LD_PRELOAD - get it compiled
- Next by Date: Re: Unknown symbol device_create_file
- Previous by thread: software interruption
- Next by thread: Re: Unknown symbol device_create_file
- Index(es):
Relevant Pages
|