[DRBD-user] make rpm drbd 0.7.17 failed with FC4 kernel 2.6.16-1.2069.

Stefan Pietsch stefan.pietsch at eds.com
Wed Apr 5 13:35:21 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.


Francis SOUYRI wrote:

> I tried to compile drdb-0.7.17 with the latest Fedora FC4 kernel 
> 2.6.16-1.2069, the "make rpm" failed with the message "cannot stat 
> `.kernelrelease.new'".
> 
> make[3]: Entering directory `/usr/src/kernels/2.6.16-1.2069_FC4-i686'
>  Building modules, stage 2.
>  MODPOST
> make[3]: Leaving directory `/usr/src/kernels/2.6.16-1.2069_FC4-i686'
> mv: cannot stat `.kernelrelease.new': No such file or directory
> make[2]: *** [kbuild] Error 1



Edit the Makefile in "/usr/src/kernels/2.6.16-1.2069_FC4-i686":

Replace the line
KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null)


with:
KERNELRELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)





More information about the drbd-user mailing list