From: Tomas Szepe <szepe@pinerecords.com>
To: Folkert van Heusden <folkert@vanheusden.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to export a symbol so that I can use it in a module
Date: Mon, 11 Nov 2002 23:02:46 +0100 [thread overview]
Message-ID: <20021111220246.GH285@louise.pinerecords.com> (raw)
In-Reply-To: <002c01c289cc$e6468470$3640a8c0@boemboem>
> I've added a function "create_tcp_port_number" to net/core/utils.c
> like this:
>
> int create_tcp_port_number(void)
> {
> /* blah blah */
> }
> EXPORT_SYMBOL(create_tcp_port_number);
>
> in include/linux/net.h I added:
> extern int create_tcp_port_number(void);
>
> So, now in net/ipv6/tcp_ipv6.c I used this 'create_tcp_port_number'
> function. I'm compiling the kernel with ipv6 as a module. And that's
> where I get the problem. In the last stage, the makefile does a
> depmod and then I get:
> depmod: *** Unresolved symbols in /lib/modules/2.4.19/kernel/net/ipv6/ipv6.o
> depmod: create_tcp_port_number
>
> I'm really out of ideas what can be the cause of this. It must be
> something trivial, but I cannot find the solution. Anyone who can
> help me?
Make sure you're including <linux/module.h> into utils.c and that
utils.o is among export-objs in the makefile.
--
Tomas Szepe <szepe@pinerecords.com>
prev parent reply other threads:[~2002-11-11 21:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 21:54 how to export a symbol so that I can use it in a module Folkert van Heusden
2002-11-11 22:02 ` Ben Greear
2002-11-11 22:02 ` Tomas Szepe [this message]
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=20021111220246.GH285@louise.pinerecords.com \
--to=szepe@pinerecords.com \
--cc=folkert@vanheusden.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