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

Notices

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

Rep: Reputation: 15
Regarding dependent kernel modules


HI,

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?

regards,
dinky
 
Old 06-10-2009, 03:12 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Do the functions (?) come from the first module? Or maybe they are taken from a different place?
 
Old 06-10-2009, 03:59 PM   #3
dinkyverma279
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?

regards,
dinky
 
  


Reply


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 11:00 AM
is /proc/pci kernel dependent? shanenin Linux - Hardware 2 01-23-2005 03:40 PM
autoloading dependent modules saajii Programming 1 09-15-2004 12:04 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06: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 05:52 AM


All times are GMT -5. The time now is 07:12 PM.

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