[DRBD-user] Can not compile drbd 0.7.21 with FC5 kernel2.6.18-1.2200.

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Oct 17 14:14:35 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.


/ 2006-10-17 11:06:16 +0200
\ Francis SOUYRI:
> Hello Lars,
> 
> On the net I saw some informations about problems with the "UTS_RELEASE" in the 2.6.18 kernel the definition was 
> moved from the linux/version.h to the linux/utsrelease.h.
> 
> A "make KDIR=/lib/modules/2.6.18-1.2200.fc5/source" failed with these messages:
> 
> ...
> CC [M] /usr/src/cluster/drbd-0.7.21/drbd/lru_cache.o
> CC [M] /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.o
> In file included from /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c:34:
> include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.

we'll see into that one.

> /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c:52:35: error: linux/devfs_fs_kernel.h: No such file or directory
> /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c: In function ‘drbd_cleanup’:
> /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c:1698: error: implicit declaration of function ‘devfs_remove’
> /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c: In function ‘drbd_init’:
> /usr/src/cluster/drbd-0.7.21/drbd/drbd_main.c:1794: error: implicit declaration of function ‘devfs_mk_dir’

fixed in svn already, devfs is finnally removed from the kernel
completely, so we needed to ifdef those sections out (since for 0.7.x we
still are even compatible with 2.4 kernels).


the move of UTS_RELEASE from version.h to utsrelease.h
will still stop the build probably...
for now the workaround is to specify the correct KVER on the make
commandline, too, and try to remove the offending "test ... "
from the %prep stage, or substitude version.h with utsrelease.h
there (and at the other places where we reference it from the Makefiles
and scripts).

the "correct" "backwards compatible" fix will have to wait a little...

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list