LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   /lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link (https://www.linuxquestions.org/questions/linux-kernel-70/lib-modules-2-6-15-1-2054_fc5-build-broken-symbolic-link-519437/)

sjw01748 01-15-2007 08:03 AM

/lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link
 
Hello:

I am definitely a newbie!
I created this Makefile in my /home/myname/modules directory:

obj-m := hello.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

Within this directory I have the file hello.c

When I execute a make -f Makefile the following error is displayed:

make : *** /lib/modules/2.6.15-1.2054_FC5/build:
No such file or directory.

Using the file browser I moved to directory
lib/modules/2.6.15-1.2054_FC5. In this direcoty the build & source links are displayed but each has a red circle with a
single line through it on the right of the icon and also a red circle with a red line and yellow pencil though it on the left of the icon. Within the browser if I double click the build link a popup window displays The Link "build" is Broken. Move it to Trash? This link can't be used because its target "/usr/src/kernels/2.6.15-1.2054_FC5-i686" doesn't exist.

If I double click The Link "source" a popup window displays The Link "source" is Broken. Move it to Trash? This link can't be used because its target "/usr/src/kernels/2.6.15-1.2054_FC5-i686" doesn't exist.

I could see where a similar problem had been experienced by
"deesto" on 9-02-2006 but I could not see how the error was resolved.

Help please!

Thanks

\Steve

Lenard 01-15-2007 10:19 AM

Install the kernel devel rpm package(s); yum install kernel-devel


All times are GMT -5. The time now is 03:56 AM.