error : no symbol version for "function"
Hi all, I am trying to port a kernel module from 2.6.23 kernel to 2.6.32 kernel. While inserting the module , it shows an error : insmod : error inserting 'module.ko' : -1 Unknown symbol in module I checked in /var/log/messages for the unknown symbol and it shows, module : no symbol version for function_name Can anybody explain what is this error and how to resolve this error ? -- Thanks & Regards, Kashish Bhatia
On Tue, Sep 13, 2011 at 6:06 AM, kashish bhatia <koolest77@gmail.com> wrote:
Hi all, I am trying to port a kernel module from 2.6.23 kernel to 2.6.32 kernel.
While inserting the module , it shows an error :
insmod : error inserting 'module.ko' : -1 Unknown symbol in module
I checked in /var/log/messages for the unknown symbol and it shows,
module : no symbol version for function_name
Can anybody explain what is this error and how to resolve this error ?
-- Thanks & Regards, Kashish Bhatia
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Are you building it out of tree?
Your module is trying to use an exported symbol, perhaps it is a symbol exported from another module, for cases like this modprobe works better than insmod. Try modprobe and it should works. -- Jorgyano Bruno de Oliveira Vieira cell: +55 (41) 8890 6774
Hi, On Tue, Sep 13, 2011 at 4:24 AM, Jorgyano Bruno <jorgyano@gmail.com> wrote:
On Tue, Sep 13, 2011 at 6:06 AM, kashish bhatia <koolest77@gmail.com> wrote:
Hi all, I am trying to port a kernel module from 2.6.23 kernel to 2.6.32 kernel.
While inserting the module , it shows an error :
insmod : error inserting 'module.ko' : -1 Unknown symbol in module
I checked in /var/log/messages for the unknown symbol and it shows,
module : no symbol version for function_name
Can anybody explain what is this error and how to resolve this error ?
-- Thanks & Regards, Kashish Bhatia
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Are you building it out of tree?
Your module is trying to use an exported symbol, perhaps it is a symbol exported from another module, for cases like this modprobe works better than insmod. Try modprobe and it should works.
The other reason that it might appear to be missing a symbol is because the symbol is exported as a GPL symbol, and you're missing the MODULE_LICENSE( "GPL" ); in your module. -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com
Hi, There is no licensing mistake because I already included MODULE_LICENSE( "GPL" ); in my module. I also verified the exported symbol. There is an entry for the exported symbol in kallsyms. Is there any other reason of getting this kind of error? -- Regards, Kashish
Hi! On Tue, Sep 13, 2011 at 2:19 PM, kashish bhatia <koolest77@gmail.com> wrote:
Hi, There is no licensing mistake because I already included MODULE_LICENSE( "GPL" ); in my module.
I also verified the exported symbol. There is an entry for the exported symbol in kallsyms.
Is there any other reason of getting this kind of error?
-- Regards, Kashish
This link helped me when I had the same problem compiling out-of-tree modules: http://lists.busybox.net/pipermail/busybox/2009-April/068855.html Best Regards ----[ Jorgyano
Hi kashish, Sending to the whole list this time... On Tue, Sep 13, 2011 at 10:19 AM, kashish bhatia <koolest77@gmail.com> wrote:
Hi, There is no licensing mistake because I already included MODULE_LICENSE( "GPL" ); in my module.
I also verified the exported symbol. There is an entry for the exported symbol in kallsyms.
Is there any other reason of getting this kind of error?
module : no symbol version for function_name I re-read the error, and it seems that the problem isn't that the symbol is missing, but rather that the symbol version is missing. This talks abit about symbol versioning: http://tldp.org/HOWTO/Module-HOWTO/basekerncompat.html Also see section 6 of Documentation/kbuild/modules.txt http://lxr.linux.no/linux+v3.0.4/Documentation/kbuild/modules.txt#L426 -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com
Hi all, I am trying to port a kernel module from 2.6.23 kernel to 2.6.32 kernel.
While inserting the module , it shows an error :
insmod : error inserting 'module.ko' : -1 Unknown symbol in module
I checked in /var/log/messages for the unknown symbol and it shows,
module : no symbol version for function_name
Can anybody explain what is this error and how to resolve this error ?
Are you sure that you are compiling your module against the same source tree that your current kernel was built from? If you compile the module against say, 2.6.38 and then try to insert it into 2.6.39, it will not work, you will be given that error message. //Pelle
participants (4)
-
Dave Hylands -
Jorgyano Bruno -
kashish bhatia -
Pelle Windestam