how to export a symbol so that I can use it in a module

From: Folkert van Heusden (
Date: Mon Nov 11 2002 - 16:54:23 EST


I've added a function "create_tcp_port_number" to net/core/utils.c
like this:

int create_tcp_port_number(void)
/* blah blah */

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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:23 EST