"Unresolved Symbols" reported by depmod, though the module works fine.

"Unresolved Symbols" reported by depmod, though the module works fine.

Post by Chris Jense » Sat, 31 Jul 1999 04:00:00



I recently finished my first linux driver/module and it
works fine.   I'm currently working on the
automated loading/installing side of it.  Playing around, I
put it in /lib/modules/preferred/misc and ran "depmod -a
-e".  It then says my module has unresolved symbols and
spews out all of the kernel calls that my module makes (i.e.
printk(), free_irq(), jiffies, etc.).  No other module in
the system has any unresolved symbols, though they obviously
make calls to the kernel, so what did I do wrong?  Is there
something during link/compile that I should do, or is there
a file I need to edit?  It's kind of perplexing, obviously
they are unresolved, they are only resolved once you run
insmod to load the module, but apparently I am missing
something, because my module is the only one getting these
"errors".  Any help would be greatly appreciated.

Chris Jensen

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

 
 
 

1. depmod reports unresolved symbols but module loads (and works) anyway

I've compiled the 'p4b_smbus' hotplug-module from the lm_sensors package
to get access to the sensor chips of my motherboard. The module compiles
and links fine. I'm able to load the module and it seems to work as well
(at least lsmod reports a loaded module and the sensors are accessible).

However, depmod reports unresolved symbols on that module:


depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.9/kernel/drivers/char/p4b_smbus.o
depmod:         pci_insert_device
depmod:         pci_setup_device
depmod:         kmalloc
depmod:         pci_remove_device
depmod:         pci_enable_device
depmod:         pcibios_present
depmod:         pci_read_config_word
depmod:         kfree
depmod:         pci_find_device
depmod:         pci_write_config_word
depmod:         printk


p4b_smbus               2720   0  (unused)

Some may ask why thinking about something which seems to work but for some
reason I want to know what is going on here.

Is it possible that these symbols are included in the binary but never
used when running the module? How can I remove these symbols from the
binary in that case?

Ciao, Meph

2. RH7.2 UTF8

3. depmod -a produces "unresolved symbol(s)", how to fix?

4. JAVA under Linux

5. Linux "unresolved symbols in module /lib/modules/2.0.29..."

6. X-Windows Terminal Emulator

7. "Unresolved symbols in module /lib/module/2.1.127..."

8. i386 Topology update

9. "Unresolved symbols in module..."

10. "Unresolved symbol errors" in sound and parallel port modules of kernel 2.2.16

11. "unresolved symbol" when loading modules for sound

12. Using "nm" to find module w/ unresolved symbols in a shared lib???

13. "unresolved symbols in module iBCS"