Re: Compile warning when using exported symbols located in other loadable module

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

 



stackframe@xxxxxxxxxxx wrote:
I am trying to learn how to do module stacking.  I have a module named providesexport that exports the symbol "some_exported_symbol" which is a function.  In another module called usesexport I call the exported function.

The code compiles and runs as expected, however I get the following warning when compiling the module that uses the exported symbol.

make[1]: Entering directory `/lib/modules/2.6.10-1.770_FC3/build'
  CC [M]  /home/tony/learnexport/user/user.o
  LD [M]  /home/tony/learnexport/user/usesexport.o
  Building modules, stage 2.
  MODPOST
*** Warning: "some_exported_symbol" [/home/tony/learnexport/user/usesexport.ko] undefined!
  CC      /home/tony/learnexport/user/usesexport.mod.o
  LD [M]  /home/tony/learnexport/user/usesexport.ko

Before compiling usesexport.ko, try loading providesexport.ko. The warning should go away.

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

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