* build error : drivers/char/char.o(__ksymtab+0x110): undefined reference to `
@ 2004-02-18 21:35 sting sting
2004-02-19 2:13 ` Randy.Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: sting sting @ 2004-02-18 21:35 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: build error : drivers/char/char.o(__ksymtab+0x110): undefined reference to `
2004-02-18 21:35 build error : drivers/char/char.o(__ksymtab+0x110): undefined reference to ` sting sting
@ 2004-02-19 2:13 ` Randy.Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2004-02-19 2:13 UTC (permalink / raw)
To: sting sting; +Cc: linux-kernel
On Wed, 18 Feb 2004 23:35:53 +0200 "sting sting" <zstingx@hotmail.com> wrote:
| 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.
What kernel symbols are you trying to use?
What are you tring to EXPORT?
It mostly looks like something in your main .text section is calling
(or using) something that's in another code section or vice versa.
You might see if one of the scripts from
http://www.kernelnewbies.org/scripts/
will help you. I can't reach that web site right now, but there
are a couple of scripts there (reference-discarded.pl and
reference-init.pl) that might help you.
or you can always post source code so that we won't have to guess
whatever it is you are doing.
--
~Randy
kernel-janitors project: http://janitor.kernelnewbies.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-19 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 21:35 build error : drivers/char/char.o(__ksymtab+0x110): undefined reference to ` sting sting
2004-02-19 2:13 ` Randy.Dunlap
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®