Bug 11567
Summary: | KBUILD_EXTRA_SYMBOLS is not working | ||
---|---|---|---|
Product: | Other | Reporter: | Peter Volkov (peter.volkov) |
Component: | Other | Assignee: | other_other |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | reubenhwk |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.26 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | linux-2.6-KBUILD_EXTRA_SYMBOLS.patch |
Description
Peter Volkov
2008-09-14 03:17:18 UTC
Created attachment 17772 [details]
linux-2.6-KBUILD_EXTRA_SYMBOLS.patch
This patch fixes the issue.
Please send the patch via email to Sam Ravnborg <sam@ravnborg.org> Andrew Morton <akpm@linux-foundation.org> linux-kernel@vger.kernel.org as per Documentation/SubmittingPatches, thanks. Added kbuild-fix-kbuild_extra_symbols.patch to -mm. Thank you Andrew and sorry for delay. To make this patch available in Linus tree should I still send patch to linux-kernel@vger.kernel.org? Hi, Is this still broken in 2.6.31? I'm using Ubuntu and I'm not able to successfully build a kernel module using KBUILD_EXTRA_SYMBOLS. I have to copy the Module.symvers in manually so my modules will build with no warnings and load into the kernel. Thanks in advance Reuben, to get help, tell us what you need and what went wrong. Hi, I have two modules, one depends on the other. Both modules are in their own directory like so... ksocket/src/... kradvd/... If I build kradvd with KBUILD_EXTRA_SYMBOLS := ../ksocket/src/Module.symvers I get undefined symbols from ksocket and kradvd.ko will not load. If I do this form kradvd... cp ../ksocket/src/Module.symvers . and remove KBUILD_EXTRA_SYMBOLS from the makefile, kradvd builds and loads successfully. KBUILD_EXTRA_SYMBOLS is broken. Thanks, Reuben It does not work with relative paths. Use KBUILD_EXTRA_SYMBOLS := $(TOPDIR)/ksocket/src/Module.symvers |