[DRBD-user] 2.6.18 fedora and devfs error

Achim Stumpf newgrp at gmx.de
Thu Jan 4 11:14:38 CET 2007

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


Hi List,

I am trying to compile the original 2.6.18 fedora kernel with drdb 
0.7.22 from http://oss.linbit.com/drbd/0.7/drbd-0.7.22.tar.gz

I have created a patch like that:
make KDIR=/usr/src/linux-2.6.18-1.2239.fc5/ KVER=2.6.18-1.2239.fc5 
kernel-patch

If I am not specifying the kernel version I get an error like that:

make KDIR=/usr/src/linux-2.6.18-1.2239.fc5/  kernel-patch
Makefile:164: *** "could not determine uts_release".  Stop.

even if i do a simple clean:
make clean
Makefile:164: *** "could not determine uts_release".  Stop.



and patched it into the kernel as described in the docs.

When it compiles the Kernel it stops:
In file included from drivers/block/drbd/drbd_fs.c:31:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC      drivers/block/drbd/drbd_proc.o
In file included from drivers/block/drbd/drbd_proc.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC      drivers/block/drbd/drbd_worker.o
In file included from drivers/block/drbd/drbd_worker.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC      drivers/block/drbd/drbd_receiver.o
In file included from drivers/block/drbd/drbd_receiver.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
drivers/block/drbd/drbd_receiver.c: In function 'drbd_asender':
drivers/block/drbd/drbd_receiver.c:2315: warning: unused variable 'empty'
  CC      drivers/block/drbd/drbd_req.o
In file included from drivers/block/drbd/drbd_req.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC      drivers/block/drbd/drbd_actlog.o
  CC      drivers/block/drbd/lru_cache.o
  CC      drivers/block/drbd/drbd_main.o
In file included from drivers/block/drbd/drbd_main.c:34:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
drivers/block/drbd/drbd_main.c:53:35: error: linux/devfs_fs_kernel.h: No 
such file or directory
drivers/block/drbd/drbd_main.c: In function 'drbd_cleanup':
drivers/block/drbd/drbd_main.c:1803: error: implicit declaration of 
function 'devfs_remove'
drivers/block/drbd/drbd_main.c: In function 'drbd_init':
drivers/block/drbd/drbd_main.c:1903: error: implicit declaration of 
function 'devfs_mk_dir'
drivers/block/drbd/drbd_main.c:1928: error: 'struct gendisk' has no 
member named 'devfs_name'
make[3]: *** [drivers/block/drbd/drbd_main.o] Error 1
make[2]: *** [drivers/block/drbd] Error 2
make[1]: *** [drivers/block] Error 2
make: *** [drivers] Error 2

In the changelog I read of drbd 0.7.22:
* Gracefull removal of devfs and other updates.

I thought it is removed and would compile now with newer kernels.
I have found a thread where they wrote that this will be solved in 
0.7.22, but maybe not.

Thanks a lot

Achim





More information about the drbd-user mailing list