Re: Newbie: Unresolved symbol

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

 



--- vishwas manral <vishwas.manral@lycos.com> wrote:
> I had built and inserted my kernel module, I wanted
> to debug and I made some changes. Now after removing
> the old module I am not able to insert the new
> module at all.
> 
> I am inserting the module in the development machine
> itself so no version mismatches. I tried adding and
> removing other modules and that works fine. 
> 
> The below seem to be all the symbols I am using in
> my module. Any hint what I may have accidently
> removed or deleted or what I am missing would be
> helpful.
> 
> krn_mod.o: unresolved symbol pci_write_config_byte
> krn_mod.o: unresolved symbol
> __generic_copy_from_user
> krn_mod.o: unresolved symbol kmalloc
> krn_mod.o: unresolved symbol unregister_chrdev
> krn_mod.o: unresolved symbol register_chrdev
> krn_mod.o: unresolved symbol pci_read_config_byte
> krn_mod.o: unresolved symbol pcibios_present
> krn_mod.o: unresolved symbol pci_read_config_dword
> krn_mod.o: unresolved symbol __ioremap
> krn_mod.o: unresolved symbol pci_read_config_word
> krn_mod.o: unresolved symbol kfree
> krn_mod.o: unresolved symbol pci_write_config_dword
> krn_mod.o: unresolved symbol pci_find_device
> krn_mod.o: unresolved symbol pci_write_config_word
> krn_mod.o: unresolved symbol printk
> krn_mod.o: unresolved symbol __generic_copy_to_user

  What kind of symbols does /proc/ksyms have?  Is it
something like kmalloc_R12345678? If this is the case
it is a problem because of modversions. Compile your
code with 
-include include/linux/modversions.h
This link has more details.
http://docs.mandragor.org/files/Operating_systems/Linux/Linux_Device_Drivers_2nd_Edition_en/ch11.html#t3


=====
Regards,
Kiran Kumar Immidi

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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