mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Folkert van Heusden" <folkert@vanheusden.com>
To: <linux-kernel@vger.kernel.org>
Subject: how to export a symbol so that I can use it in a module
Date: Mon, 11 Nov 2002 22:54:23 +0100	[thread overview]
Message-ID: <002c01c289cc$e6468470$3640a8c0@boemboem> (raw)

Hi,

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?

Thank you.


Folkert van Heusden


             reply	other threads:[~2002-11-11 21:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11 21:54 Folkert van Heusden [this message]
2002-11-11 22:02 ` Ben Greear
2002-11-11 22:02 ` Tomas Szepe

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='002c01c289cc$e6468470$3640a8c0@boemboem' \
    --to=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

all inboxes | Powered by JetHome®