[Nelug] Symlink to linux kernel

Eddy Younger eddy at shofar.uklinux.net
Sat Nov 9 15:25:01 UTC 2002


peter.holmes at fopet-esl.com writes:

> #error "   Make sure that the symbolic link
> #error "   /lib/modules/`uname -r`/build exists and points to
> #error "   the matching kernel source directory

> a) You (me) can't create a symlink with the suggested name I get the
> error message ".. can't overwrite directory.." so it can't actually
> be the name of the symlink file.

Sounds like something (possibly) has actually created a directory
called "build" in the place where the symlink should be. Injudicious
use of "cp" could do this. It should not be a directory, it should be
a symlink:

moriah% ls -l /lib/modules/2.4.18
total 108
lrwxrwxrwx    1 root     root           21 Jun 29 23:08 build -> /usr/src/linux-2.4.18/
drwxr-xr-x    6 root     root         4096 Jun 29 23:09 kernel/
drwxr-xr-x    2 root     root         4096 Jul  4 22:09 misc/
-rw-r--r--    1 root     root        21338 Oct  3 22:08 modules.dep
-rw-r--r--    1 root     root           31 Oct  3 22:08 modules.generic_string
-rw-r--r--    1 root     root          300 Oct  3 22:08 modules.isapnpmap
-rw-r--r--    1 root     root           29 Oct  3 22:08 modules.parportmap
-rw-r--r--    1 root     root         9017 Oct  3 22:08 modules.pcimap
-rw-r--r--    1 root     root        46061 Oct  3 22:08 modules.usbmap
drwxr-xr-x    2 root     root         4096 Jun 29 00:11 pcmcia/


> What DO I name it as?

> b) Where do I put the symlink so the compiler can find (and
> understand) it?

I'd suggest you rm -r that directory (/lib/modules/<version>/build), if
it exists, and replace it with the symlink to the kernel sources.

Eddy.
-- 
"Microsoft has performed an illegal operation and will be shut down. 
 Continue [Y/N] ?" 




More information about the Nelug mailing list