error : no symbol version for "function"
Dave Hylands
dhylands at gmail.com
Tue Sep 13 11:48:40 EDT 2011
Hi,
On Tue, Sep 13, 2011 at 4:24 AM, Jorgyano Bruno <jorgyano at gmail.com> wrote:
>
>
> On Tue, Sep 13, 2011 at 6:06 AM, kashish bhatia <koolest77 at 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 at 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
More information about the Kernelnewbies
mailing list