Re: module compile error -- but suprising

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 28, 2009 at 5:04 PM, nidhi mittal <nidhimittal19@xxxxxxxxx> wrote:
> hi all
> i compiled one of my kernel module
> but the error i got is completely cryptic -- pl see -- whethr my kernel is
> corrupted or what
> o/p of make is
>
> make[1] Entering directory /usr/src/linux---
> Building modules , stage 1
> MODPOST 1 modules
> WARNING "_fixunsdfsi" [/home/nidhi/<module_dir>/<module_name>.ko] undefined
> WARNING "_adddf3" [/home/nidhi/<module_dir>/<module_name>.ko] undefined
> WARNING "_floatunsidf" [/home/nidhi/<module_dir>/<module_name>.ko] undefined
> make[1] Leaving directory /usr/src/linux-headers-2.6.27-generic
>
>
> but what i found is i get a module.ko file
>
You should, because the linking of undefined symbol is done at the
time of insmod and not the creation of kernel module.

> and when i insmod it
> o/p
> insmod: error inserting 'blkdev.ko': -1 Unknown symbol in module
>

Do a dmesg and you will see that there is a message about the unknown symbol.
See the message and figure out why that symbol is not present.
Either it will be a spelling mistake or the symbol is not exported
from the kernel.
So, if the case is the later on do a EXPORT_SYMBOL(name of symbol) in
the C file.

HTH,

> pl help
> Nidhi
>
>
> --
> Thanks & Regards
> Nidhi



-- 
Regards,
Sandeep.





 	
“To learn is to change. Education is a process that changes the learner.”

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux