Re: module compile error -- but suprising

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

 



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
>
>

Do a insmod and then see the dmesg.
If the insmod gives you an error of undefined symbol in the module,
then the dmesg will surely have the symbol name.

Can you provide the output of insmod followed by dmesg.


>
>
> 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
>



-- 
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