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

JonaZ A7V enbd@lists.community.tummy.com
Mon, 30 Dec 2002 22:21:09 +0000


>
>"JonaZ A7V wrote:"
> > >>Looks like your kernel is compiled with MODVERSIONS, but your .config
> > >>file does not match it in that respect at least..
> >
> > .config paste:
> > # Loadable module support
> > #
> > CONFIG_MODULES=y
> > CONFIG_MODVERSIONS=y
> > CONFIG_KMOD=y
>
>Can't be where the compile is looking, then. To settle the matter do
>
>     grep printk /proc/ksyms

PASTE: c0111908 printk_R1b7d4074

>
>and make sure that LINUXDIR in the Makefile points at the kernel source
>dir that you think it does point to!
>
>
> > in ENBD Makefile I added(read a thread here about this) the following
> > CFLAGS       = -DMODVERSIONS
> > compiled and installed. The results were the same :|
>
>I'm not convinced that's enough. I think it may be EXTRA_CFLAGS that
>you need.  Yes, I think it is.  It would be safer to note the compile
>line that the makefile produces, and then repeat it (via mouse cut and
>paste) with the -DMODVERSIONS thrown directly into it.
>
>Try that.
>
> > Note: this was all done before sending my first message. I tried, honest 
>;)
>
> > >>Well, try on a different kernel to see if there is a config problem
> > >>against 2.4.20 alone (I haven't tried it - I'm on 2.4.19). But it
> > >>looks like a simple kernel/.config mismatch.
> >
> > Well, that's what I'll do and was already thinking on doing, but I was
> > hopping for a simpler solution... =)
>
>Convince me that the .config shown above is really the one being used
>.. compile some other module in the kernel dir, and see if you get that 
>kind
>of depmod complaint against it too!
>
>I suspect however that EXTRA_CFLAGS=-DMODVERSIONS is required.
>And possibly also   -include $(LINUXDIR)/linux/modversions.h .
>
>Mind you, I can't really say from here! Can you show me what the
>compile line for the module looks like, as produced by the Makefile?

gcc -DMODVERSIONS -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 
-D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall 
-I/usr/src/linux/linux/modversions.h -O2 -I/tmp 
-I/install-stuff/nbd-2.4.31/linux/include -I/usr/src/linux/include  
-DDEBUG=0 -o enbd-server.o -c /install-stuff/nbd-2.4.31/nbd/enbd-server.c

I tried all the variations, and the result is the same. I'm going to 
download 2.4.19 and test it (give me 30 mins)

_________________________________________________________________
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf