Skip to contentSkip to conversation

undefined symbols of modules

DISCUSSION Josef Angermeier 2 participants 2 messages May 30, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

when i try to compile my kernel extension as modul, i get some undefined references. But a look in System.map shows, that the relevant symbols are defined in the main kernel. Why then those undefined references ?

Any hint is appreciated!
bye

Josef

make ARCH=ppc -C linux modules
make[1]: Entering directory `/scratch-local/esm/linux'
CHK include/linux/version.h
Building modules, stage 2.
MODPOST
*** Warning: "cpm_load_patch" [drivers/usb/host/m82xx-hcd.ko] undefined! *** Warning: "cpmp" [drivers/usb/host/m82xx-hcd.ko] undefined!

#1 lore raw
Quoted 5 lines · Josef Angermeier

Hello,

when i try to compile my kernel extension as modul, i get some undefined references. But a look in System.map shows, that the relevant symbols are defined in the main kernel. Why then those undefined references ?

Symbol must be exported to be available for modules, just being listed in System.map isn't enough.

Try adding EXPORT_SYMBOL(...) for those "undefined" references.

Signature · 1 line
Eugene