Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 06-09-2009, 03:56 PM   #1
LQ Newbie
Registered: Jun 2009
Posts: 29

Rep: Reputation: 15
Regarding dependent kernel modules


I have two kernel modules in old linux kernel version 2.6.10. I have to port these .ko modules to kernel version 2.6.27. I have ported it successfully. Since my one of kernel module is using the API of the another kernel modules. I have exported the API made using the EXPORT_SYMBOL and also made that methods extern in header files. I have included that header files in my 2nd modules.

So when I am compiling the first module, it is compiling successully and when i am compiling the 2nd module which is using the API of the first module. It is giving the following errors:

WARNING: "Register_Driver" [/usr/src/linux/drivers/usb/my/device/src/b.ko] undefined!
WARNING: "A_Free" [/usr/src/linux/drivers/usb/my/device/src/b.ko] undefined!

So first i load the module 1 using insmod, it is loaded successfully, But when i try to load another module using the insmod, I am getting the following error:

insmod: error inserting 'b.ko' : -1 unknown symbol in module

and when i saw through dmesg, I am getting following information:

b: no symbol version for Register_Driver
b: unknown symbol Register_Driver
b: no symbol version for A_Free
b: unknown symbol version for A_Free

Can somebody tell the work around for this? Why these warnings coming even?

Old 06-10-2009, 04:12 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

Rep: Reputation: 218Reputation: 218Reputation: 218
Do the functions (?) come from the first module? Or maybe they are taken from a different place?
Old 06-10-2009, 04:59 PM   #3
LQ Newbie
Registered: Jun 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Hi Mara,

Thanks for reply. Yes These functions are from first module. So can you please tell why this is happening?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Modules in /lib/modules kaplan71 Linux - General 1 04-02-2007 12:00 PM
is /proc/pci kernel dependent? shanenin Linux - Hardware 2 01-23-2005 04:40 PM
autoloading dependent modules saajii Programming 1 09-15-2004 01:04 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 07:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 06:52 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration