* undefined symbols of modules
@ 2006-05-30 7:45 Josef Angermeier
2006-05-30 8:06 ` Eugene Surovegin
0 siblings, 1 reply; 2+ messages in thread
From: Josef Angermeier @ 2006-05-30 7:45 UTC (permalink / raw)
To: linuxppc-embedded
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!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: undefined symbols of modules
2006-05-30 7:45 undefined symbols of modules Josef Angermeier
@ 2006-05-30 8:06 ` Eugene Surovegin
0 siblings, 0 replies; 2+ messages in thread
From: Eugene Surovegin @ 2006-05-30 8:06 UTC (permalink / raw)
To: Josef Angermeier; +Cc: linuxppc-embedded
On Tue, May 30, 2006 at 09:45:46AM +0200, Josef Angermeier wrote:
> 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.
--
Eugene
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-30 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-30 7:45 undefined symbols of modules Josef Angermeier
2006-05-30 8:06 ` Eugene Surovegin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).