From: "sting sting" <zstingx@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: build error : drivers/char/char.o(__ksymtab+0x110): undefined reference to `
Date: Wed, 18 Feb 2004 23:35:53 +0200 [thread overview]
Message-ID: <Sea2-F133D4rGVcMNKW000372f6@hotmail.com> (raw)
Hello,
I am trying to add a test module to the kernel image (2.4.20).
I wrote a simple module, named test.c; I do succeed to build it as a module,
perform insmod and rmmod twith it, etc.
Now I want it to be a part of the kernel Image.
The kernel itself does pass full build successfully without this change.
I had put test.c under drivers/char;
I had added it in the makefile under drivers/char
in the follwoing way
obj-$(CONFIG_TEST) += test.o
In config.in under drivers/char I had put :
tristate 'test' CONFIG_TEST
I had run make menuconfig and selceted this character device (test) with *.
Now when I try to compile it I have an error about export_symbol.
Since this module that have a call to the EXPORT_SYMBOL
macro, I had tried to add it to the list of export-objs in that Makefile
(under /drivers/char)
but Now , when running make , I have the follwoing error:
rivers/char/char.o(__ksymtab+0x110): undefined reference to `local symbols
in discarded section .text.exit'
make: *** [vmlinux] Error 1
any idea which can help will be appreciated.
regards,
sting
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
next reply other threads:[~2004-02-18 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-18 21:35 sting sting [this message]
2004-02-19 2:13 ` Randy.Dunlap
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=Sea2-F133D4rGVcMNKW000372f6@hotmail.com \
--to=zstingx@hotmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®