[DRBD-user] FC3 - Fedora Kernel Sources

Todd Denniston Todd.Denniston at ssa.crane.navy.mil
Mon Apr 3 17:37:38 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

David Branford wrote:
> Thanks Luciano,
> When I try a "make" in /usr/src/drbd-0.7.17 (where I unpacked the 
> archive) I get:
> Calling toplevel makefile of kernel source tree, which I believe is in
>    KDIR=/lib/modules/2.6.16-1.2069_FC4/build
>    SORRY, kernel makefile not found. You need to tell me a correct KDIR!
> However in /lib/modules I only have:
> drwxr-xr-x   3 root root 4096 Dec 27 23:51 2.6.11-1.1369_FC4

you might try (as root)
`yum install kernel-devel`

which should get you the kernel headers to go with your kernel.
when the yum install is done you should be able to do:
`ls -l /lib/modules/2.6.16-1.2069_FC4/build/Makefile`
and have it find a file... mine comes back as
-rw-r--r--  1 root root 44832 Mar 28 12:43 

$ rpm -q --whatprovides /usr/src/kernels/2.6.16-1.2069_FC4-i686/Makefile

> I don't have a directory matching my currently running kernel, which is 
> 2.6.16-1.2069_FC4
> I have installed and updated the kernel-devel package for fedora core 4 
> ("yum update kernel-devel") and downloaded 

Note: if the kernel-devel is not installed a yum _update_ will not install it.

> kernel-2.6.16-1.2069_FC4.src.rpm and installed it ("rpm -Uvh 
> kernel-2.6.16-1.2069_FC4.src.rpm") however neither of those packages 
> provides it. Do you know which FC4 package provides the needed files here?

Note: you generally do not want to use -U on your kernels, because if your 
machine does not like the new one, you no longer have the old one when rpm -U 
gets done.

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

More information about the drbd-user mailing list