* Re: insmod: error inserting 'test2.ko': -1 Unknown symbol in module
@ 2012-12-03 7:28 jeshkumar555
0 siblings, 0 replies; 4+ messages in thread
From: jeshkumar555 @ 2012-12-03 7:28 UTC (permalink / raw)
To: kernelnewbies
I don't know if it works, but I too got the same error and all the symbols are defined. But I forgot module_licence so it was giving symbol not found. If not added just add module_licence("GPL"), if added ignore this mail.
Sent from my HTC
Excuse for typo.
----- Reply message -----
From: "Pritam Bankar" <pritambankar1988@gmail.com>
Date: Mon, Dec 3, 2012 12:18 pm
Subject: insmod: error inserting 'test2.ko': -1 Unknown symbol in module
To: "kernelnewbies" <kernelnewbies@kernelnewbies.org>
Hi,
What is basic reason behind error "Unknown symbol in module" ?
I have two modules test1.ko and test2.ko. test1.ko loads succesfully
but test2.ko gives error
insmod: error inserting 'test2.ko': -1 Unknown symbol in module
dmesg shows all symbols in module as unknown. To give more details I
have compiled both modules same way with same compiler options and
with modpost, Module.Symvers files.
Another point to mention is that both modules load perfectly on 2.6
kernel. But kernel on which I am trying is 3.0 series kernel.
What can be entry point to look into this issue ?
Thanks,
Pritam
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121203/6357938d/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread* insmod: error inserting 'test2.ko': -1 Unknown symbol in module
@ 2012-12-14 10:31 Grzegorz Dwornicki
0 siblings, 0 replies; 4+ messages in thread
From: Grzegorz Dwornicki @ 2012-12-14 10:31 UTC (permalink / raw)
To: kernelnewbies
Well I had same problem in my own project that I am working ATM. We
won't be sure what is wrong until you show us the sourcecode but my
guess is missing EXPORT_SYMBOL makro - that was missing in my project.
Greg.
----- Reply message -----
From: "Pritam Bankar" <pritambankar1988@gmail.com>
Date: Mon, Dec 3, 2012 12:18 pm
Subject: insmod: error inserting 'test2.ko': -1 Unknown symbol in module
To: "kernelnewbies" <kernelnewbies@kernelnewbies.org>
Hi,
What is basic reason behind error "Unknown symbol in module" ?
I have two modules test1.ko and test2.ko. test1.ko loads succesfully
but test2.ko gives error
insmod: error inserting 'test2.ko': -1 Unknown symbol in module
dmesg shows all symbols in module as unknown. To give more details I
have compiled both modules same way with same compiler options and
with modpost, Module.Symvers files.
Another point to mention is that both modules load perfectly on 2.6
kernel. But kernel on which I am trying is 3.0 series kernel.
What can be entry point to look into this issue ?
Thanks,
Pritam
^ permalink raw reply [flat|nested] 4+ messages in thread
* insmod: error inserting 'test2.ko': -1 Unknown symbol in module
@ 2012-12-03 6:48 Pritam Bankar
2012-12-03 7:46 ` SandeepKsinha
0 siblings, 1 reply; 4+ messages in thread
From: Pritam Bankar @ 2012-12-03 6:48 UTC (permalink / raw)
To: kernelnewbies
Hi,
What is basic reason behind error "Unknown symbol in module" ?
I have two modules test1.ko and test2.ko. test1.ko loads succesfully
but test2.ko gives error
insmod: error inserting 'test2.ko': -1 Unknown symbol in module
dmesg shows all symbols in module as unknown. To give more details I
have compiled both modules same way with same compiler options and
with modpost, Module.Symvers files.
Another point to mention is that both modules load perfectly on 2.6
kernel. But kernel on which I am trying is 3.0 series kernel.
What can be entry point to look into this issue ?
Thanks,
Pritam
^ permalink raw reply [flat|nested] 4+ messages in thread
* insmod: error inserting 'test2.ko': -1 Unknown symbol in module
2012-12-03 6:48 Pritam Bankar
@ 2012-12-03 7:46 ` SandeepKsinha
0 siblings, 0 replies; 4+ messages in thread
From: SandeepKsinha @ 2012-12-03 7:46 UTC (permalink / raw)
To: kernelnewbies
On Mon, Dec 3, 2012 at 12:18 PM, Pritam Bankar
<pritambankar1988@gmail.com>wrote:
> Hi,
> What is basic reason behind error "Unknown symbol in module" ?
> I have two modules test1.ko and test2.ko. test1.ko loads succesfully
> but test2.ko gives error
>
> insmod: error inserting 'test2.ko': -1 Unknown symbol in module
>
> Try adding module_licence("GPL")
> dmesg shows all symbols in module as unknown. To give more details I
> have compiled both modules same way with same compiler options and
> with modpost, Module.Symvers files.
> Another point to mention is that both modules load perfectly on 2.6
> kernel. But kernel on which I am trying is 3.0 series kernel.
> What can be entry point to look into this issue ?
>
> Thanks,
> Pritam
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Regards,
Sandeep.
?To learn is to change. Education is a process that changes the learner.?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121203/6bb06a6f/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-14 10:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 7:28 insmod: error inserting 'test2.ko': -1 Unknown symbol in module jeshkumar555
-- strict thread matches above, loose matches on Subject: below --
2012-12-14 10:31 Grzegorz Dwornicki
2012-12-03 6:48 Pritam Bankar
2012-12-03 7:46 ` SandeepKsinha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).