External Modules: undefined symbol problem

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

 



Dear all,

in a project, I have to make use of multiple modules that depend on
each other.  Building works as far as dependencies are concerned for
run-time, it specifying 'modprobe module_one' makes the required
modules load.

However, there is "cosmetic" issue that annoys me:  when I reference a
symbol of another external module, an 'undefined' warning message is
returned.  Why?


    module_1
        - resides in its own directory structure
        - EXPORT_SYMBOL_GPL(a_required_function)
        - defines in module_1.h
            extern unsigned a_required_function(struct sk_buff *skb);

    module_2 resides in its own directory structure
        - resides in its own directory structure
        - requires "a_required_function"
        - includes "module_1.h"

Compiling does not result in any error/warning.

Linking module_1 does not result in any error/warning.

Linking module_2 returns the warning:
    MODPOST
  *** Warning: "a_required_function" [path_to/module_2.ko] undefined!


Loading module_2 makes module_1 being loaded automatically in a
correct way, I do not like the Warning: message.

How can I avoid it?

Thanks for any help!

wbr,
Lukas
-- 
Lukas Ruf   <http://www.lpr.ch> | Ad Personam
rbacs      <http://wiki.lpr.ch> | Restaurants, Bars and Clubs
Raw IP   <http://www.rawip.org> | Low Level Network Programming
Style  <http://email.rawip.org> | How to write emails

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