Re: Question about module unresolved symbol

Riley Williams (rhw@MemAlpha.CX)
Sun, 6 Jun 1999 02:53:42 +0100 (GMT)


Hi.

> I am doing something on the IP tunneling, and changed the
> 'new_tunnel.c'. However, when i install this
> module(new_tunnel.o), there are many 'unresolved symbol' errors.

> My OS is RedHat 5.2, kernel version is 2.0.36.

> The procedures i made the new module is as below:
> [its100 /usr/src/linux]# make menuconfig
> /* here, i enable the IP tunneling function as module */
> [its100 /usr/src/linux]# make zImage
> [its100 /usr/src/linux]# make modules

At this point, also do...

make modules_install
depmod -a

> Since i just want to test the tunnel function, so, i install the
> module now:

You first need to do the above...

> [its100 /usr/src/linux/modules]# insmod ./new_tunnel.o
> ./new_tunnel.o: unresolved symbol dev_get_Reb9f4330
> ./new_tunnel.o: unresolved symbol ip_forward_Rcabe4c2e
> ./new_tunnel.o: unresolved symbol ip_rt_put_Rf39f67ec
> ./new_tunnel.o: unresolved symbol dev_kfree_skb_Rcf9420b5
> ./new_tunnel.o: unresolved symbol dev_alloc_skb_R5b35c6df
> ./new_tunnel.o: unresolved symbol ip_rt_route_R50cd4a07
> ./new_tunnel.o: unresolved symbol register_netdev_R4a709bb4
> ./new_tunnel.o: unresolved symbol unregister_netdev_Ra1232941
> ./new_tunnel.o: unresolved symbol skb_device_unlock_Rb1f086b7
> ./new_tunnel.o: unresolved symbol kfree_skb_Rabadef54

> However,
> [its100 /usr/src/linux/modules]# ksyms -a |grep ip_for
> 00145318 ip_forward_R1532c223
> 001d989c sysctl_ip_forward_Ra7d20d83

> My question is: I only want to test the new_tunnel.c, and do not
> need a new kernel, what can i do to avoid all errors above? Is
> there something wrong with my procedure?

As I understand it, until you've done the steps inserted above, those
messages will spam you every time...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/