On 12/17/2010 12:48 PM, JimD. wrote: >> >> >> Now that I have a bare-bones LFS (6.7) system running, I've begun to use it >> to learn the rudiments of kernel module programming, using the Linux Kernel >> Programming Guide (May 2007) as a guide. But the "Hello, World" project >> fails to build, right off the bat. In case this is the right forum for >> raising this question, here is what I get: >> >> Makefile: >> obj?m += hello?1.o >> all: >> make ?C /lib/modules/$(shell uname ?r)/build M=$(PWD) modules >> >> clean: >> make ?C /lib/modules/$(shell uname ?r)/build M=$(PWD) clean >> >> These errors are hand-copied, since I'm doing the work in the LFS console: >> >> First I get a warning: >> WARNING: Symbol version dump /sources/linux-2.6.35.4/Module symvers is >> missing; modules will have no dependencies and modversions. >> >> Then a real error: >> scripts/Makefile.build:235: target '/home/daryl/kernel/hello-1/hello-1.c' >> doesn't match the target pattern >> >> And right after the 'MODPOST 0 modules' output line, I get: >> /bin/sh: scripts/mod/modpost: No such file or directory. >> > First, this really is not the correct place to ask this, *but* > although you show: > obj-m += hello-1.o > (which would be correct) > The error seems to indicate that you put: > obj-m += hello-1.c
I wish I knew how many times I'd looked and never saw that error. Thanks! And I won't bother this list with this class of problem again. Fortunately, I have an ample supply of issues that DO belong here! -- Daryl Lee -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page