Re: depmod problem

Joerg Albert <[email protected]> Mon, 14 Mar 2005 21:19:01 +0100 (CET)
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
Hi Miklos,

On Sun, 13 Mar 2005, SZABO Miklos Zsolt wrote:

> When I try to build the atmel driver on my 2.4.26 (custom kernel), "make"
> goes fine and then "make install" fails with this:
>
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.26/kernel/drivers/net/wireless/at76c503/at76c503.o
> depmod:         iw_handler_set_thrspy
> depmod:         iw_handler_get_thrspy
> depmod:         wireless_send_event
> depmod:         iw_handler_get_spy
> depmod:         wireless_spy_update
> depmod:         iw_handler_set_spy
>
> ... I said whew, this must've happened to people before, and i started
> google and i downloaded the archives of this mailing list, but I found
> nothing, except some ppl who had the same problem, but it was because
> module was not compiled into kernel. but here it may be different.
>
> anoftc:~/linux/atcvs/at76c503a# cat /usr/src/linux-2.4.26/.config | grep
> -i wire
> # Wireless LAN (non-hamradio)
> CONFIG_NET_WIRELESS=y
>
>
> anoftc:~/linux/atcvs/at76c503a# grep iw_handler_get_spy /proc/ksyms
> c020d6d0 iw_handler_get_spy_R__ver_iw_handler_get_spy
> ...
> So it seems I've the necessary modules installed into my kernel, and yet
> make install fails at depmod. question is: why?
> ...
> atmel driver (cvs ver) compiled perfectly under 2.6.10, but then i was
> having video problems while playing. and I need the atmel driver for
> school project. And rebooting each time when I want to work and when I
> want to play will not be good :)

Looks more like symbol versioning for modules is broken with your
kernel configuration:

1) grep for CONFIG_MODVERSIONS in your .config
2) Do you see the flag  -DMODVERSIONS while make'ing the Berlios driver?
3) Is there any file in include/linux/modules/ containing
   "iw_handler_get_spy" and an include line  for any such file in
   include/linux/modversions.h?

depmod / modprobe cannot match the reference iw_handler_get_spy to
iw_handler_get_spy_R__ver_iw_handler_get_spy from the kernel.

Does "custom kernel" implies that the kernel source the symlink
/lib/modules/`uname -r`/build is pointing at is a tree, where you compiled
the currently running kernel? Never tried to configure the kernel source
after compiling it? I really wonder how you got the above symbols
(name_R__ver_name) into your kernel? Is genksym (from modutils) installed
as mentioned in the Kbuild help text for CONFIG_MODVERSIONS?

/Jörg