On Thu, 3 Mar 2005 [EMAIL PROTECTED] wrote: > New information: > > The error message appears when I deactivate the "Networking support" > from the options. > > Any help? > > Carlos > > On Thu, 03 Mar 2005 11:11:34 -0600, [EMAIL PROTECTED] said: > > Hi. I'm trying to compile a kernel for my fresh LFS 6.0 (installed using > > the ALFS profile). > > > > I'm getting an Error Message: > > > > LD .tmp_vmlinux1 > > drivers/built-in.o(.text+0x823cd): In function 'hpsb_alloc_packet': > > : undefined reference to 'alloc_skb' > > (a few more messages like above) > > make: *** [.tmp_vmlinux1] Error 1 > > > > What's wrong? > > > > Thank you, > > > > Carlos
You've got a problem with your .config - in theory, all of the dependencies for the various source files are correctly recorded in the Kconfig system, in practice errors happen. First identify which files refer to alloc_skb, and where it is defined, then look at the Makefiles to see what will cause the object file to be created. e.g. find /path/to/linux-2.6-whatever -type f -name '*.c' | xargs grep alloc_skb | less and identify which of the matches defines the function (I've assumed it isn't an assembler primitive). Say it's defined in drivers/net/foo.c - look in the corresponding Makefile, drivers/net/Makefile in my example, and see what causes it to be built, something like #ifdef CONFIG_BAR After that, you've got to identify which config option sets CONFIG_BAR. This can be tricky, but usually the location of the source file will give you a strong hint about where to look, or you can look for CONFIG_BAR in your .config to see which options it's grouped with (if it shows up there). Ken -- das eine Mal als Trag�die, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
