From: Olaf Till <olaf.till@uni-jena.de>
To: linux-kbuild@vger.kernel.org
Subject: symbol versioning, interdependent external modules
Date: Sat, 11 Oct 2008 08:20:52 +0200 [thread overview]
Message-ID: <20081011062052.GA11116@till> (raw)
Hi,
I am no kernel developer, but would like to fix the build system of
certain third party external kernel modules (under GPL). Although they
use the linux makefiles, there are problems with symbol versioning.
The external packages build system, as usual, has a main Makefile
which causes recursive calls of 'make' in each subdirectory. There are
two modules in the package, built in different subdirectories, whose
Makefiles each cause a call of 'make' with the Makefile of linux for
building the modules.
Problem (on kernel linux-2.6.24-486, also on linux-2.6.18-686, both
from current Debian Stable): When the second module is built, the
linux modpost program reads 'Module.symvers' files only from the
second modules directory and from the linux source directory. The
second module uses symbols exported by the first module, but their
versions are in 'Module.symvers' in the directory of the first module,
so they are not read by modpost in this step. Consequently, modpost
warns about undefined symbols and produces a <modulename>.mod.c file
lacking these symbols; after linking, inserting the module taints the
kernel. I can work around the problem by copying 'Module.symvers' from
the first modules directory into the second modules directory and
building again.
How is such a situation (modules built in different directories,
second depends on the first) supposed to be handled correctly?
Olaf
reply other threads:[~2008-10-11 6:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081011062052.GA11116@till \
--to=olaf.till@uni-jena.de \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox