Re: module compile error -- but suprising

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

 



dmesg output

blkdev: Unknown symbol __floatsidf
blkdev: Unknown symbol __fixunsdfsi
blkdev: Unknown symbol elv_dequeue_request
blkdev: Unknown symbol __adddf3


i dont understand which is unknown symbol here ........


On Mon, Mar 30, 2009 at 4:32 PM, nidhi mittal <nidhimittal19@xxxxxxxxx> wrote:
hello all

this is actual o/p of my make

-----------------------------------------------------------------------------------------------------------------
make -C /home/nidhi/STUDY/LINUX/LINUX_Source_Codes/linux-2.6.28.7 M=/home/nidhi/STUDY/LINUX/DevDriver/async_blkdev modules
make: Entering directory `/home/nidhi/STUDY/LINUX/LINUX_Source_Codes/linux-2.6.28.7'

  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "elv_dequeue_request" [/home/nidhi/STUDY/LINUX/DevDriver/async_blkdev/blkdev.ko] undefined!
WARNING: "__fixunsdfsi" [/home/nidhi/STUDY/LINUX/DevDriver/async_blkdev/blkdev.ko] undefined!
WARNING: "__adddf3" [/home/nidhi/STUDY/LINUX/DevDriver/async_blkdev/blkdev.ko] undefined!
WARNING: "__floatsidf" [/home/nidhi/STUDY/LINUX/DevDriver/async_blkdev/blkdev.ko] undefined!
make: Leaving directory `/home/nidhi/STUDY/LINUX/LINUX_Source_Codes/linux-2.6.28.7'

------------------------------------------------------------------------------------------------------------------
1)i m not  getting any message in dmesg
2)thr seems no spelling mistake its not ieven indicating any ...

any other idea pl





On Sat, Mar 28, 2009 at 5:40 PM, Sandeep K Sinha <sandeepksinha@xxxxxxxxx> wrote:
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.”



--
Thanks & Regards
Nidhi



--
Thanks & Regards
Nidhi

[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