[ENBD] depmod: *** Unresolved symbols in kernel 2.4.20

Peter T. Breuer enbd@lists.community.tummy.com
Sat, 4 Jan 2003 21:46:51 +0100 (MET)


"Peter T. Breuer wrote:"
>    gcc -D__KERNEL__ -I /usr/local/src/linux-2.4.20/include -Wall -O2
> -D__SMP__ -DMODULE -DMODVERSIONS -include
> /usr/local/src/linux-2.4.20/include/linux/modversions.h -D_LINUX
> -DCONFIG_ENBD=m
> -I/var/home/oboe/ptb/lang/c/nbd/nbd-2.4.31/linux/include -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=enbd -c -o /tmp/enbd.o
> /var/home/oboe/ptb/lang/c/nbd/nbd-2.4.31/linux/drivers/block/enbd.c
> 
> Ummm ... none of the kernel compiled modules show up as having
> MODVERSIONS-type symbols either!
> 
> Maybe it's stopped working and nobody noticed? Or stopped being needed?

Well, I just recompiled te whole kernel with modversions. And the
modules.

I was remarkably unsuccessful in getting anything to load via modprobe,
and depmod was very unhappy.

Maybe modversions is broken in 2.4.20? The System.map shows normal
symbols too:

  c0100000 A _text
  c0100000 t startup_32
  c01000cb t checkCPUtype
  c0100159 t is486
  c0100168 t is386
  c01001c9 t L6
  c01001cb t ready

But I compiled it with MODVERSIONS.

  #
  # Loadable module support
  #
  CONFIG_MODULES=y
  CONFIG_MODVERSIONS=y
  CONFIG_KMOD=y


I'll try one more time ...

Peter