how to identify "Unknown Symbol"
I may come to regret my choice to write a webcam driver ;)
Anyway, now I am having this problem:
insmod: error inserting './usbgetinfo.ko': -1 Unknown symbol in module
I understand that
Quote:
Originally Posted by http://www.linuxchix.org/content/courses/kernel_hacking/lesson8
What this is saying is that the kernel is not allowing modules to see that variable. When the module loads, it has to resolve all it's external references, like function names or variable names. If it can't find all of it's unresolved names in the list of symbols that the kernel exports, then the module can't write to that variable or call that function. The variable my_variable has space allocated for it somewhere in the kernel, but the module can't figure out where.
To fix this, we're going to add my_variable to the list of symbols that the kernel exports...
However, what if I don't know which variable is causing the problem (the code is simple and straightforward, <70 lines, etc)...is there a way to identify the offending symbol?? From the sound of it, this could almost be just a missing header...