Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hello! I cannot compile drbd-0.7.25 on 2.6.24 kernel because of following problem: make[2]: Entering directory `/usr/src/linux-2.6.24-rc1' scripts/Makefile.build:46: *** CFLAGS was changed in "/root/drbd-0.7.25/drbd/Makefile". Fix it to use EXTRA_CFLAGS. Stop. Then I have modified drbd-0.7.25/drbd/Makefile: - override CFLAGS += -I$(DRBDSRC) + EXTRA_CFLAGS = -I$(DRBDSRC) But there are more problems: make[1]: Entering directory `/root/drbd-0.7.25/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/lib/modules/2.6.24-rc1-smp/build test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/lib/modules/2.6.24-rc1-smp/build /bin/bash ../scripts/adjust_drbd_config_h.sh Using unmodified drbd_config.h make -C /lib/modules/2.6.24-rc1-smp/build SUBDIRS=/root/drbd-0.7.25/drbd modules make[2]: Entering directory `/usr/src/linux-2.6.24-rc1' CC [M] /root/drbd-0.7.25/drbd/drbd_sizeof_sanity_check.o CC [M] /root/drbd-0.7.25/drbd/drbd_buildtag.o CC [M] /root/drbd-0.7.25/drbd/drbd_bitmap.o In file included from /root/drbd-0.7.25/drbd/drbd_bitmap.c:32: /root/drbd-0.7.25/drbd/drbd_int.h:752: warning: 'request_queue_t' is deprecated /root/drbd-0.7.25/drbd/drbd_int.h:1041: warning: 'request_queue_t' is deprecated In file included from /root/drbd-0.7.25/drbd/drbd_int.h:1149, from /root/drbd-0.7.25/drbd/drbd_bitmap.c:32: /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_bio_IO_error': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:381: error: too many arguments to function 'bio_endio' /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_bio_endio': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:386: error: too many arguments to function 'bio_endio' /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_ee_prepare_write': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:514: warning: assignment from incompatible pointer type /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_ee_prepare_read': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:522: warning: assignment from incompatible pointer type /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_req_prepare_write': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:533: warning: assignment from incompatible pointer type /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_req_prepare_read': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:550: warning: assignment from incompatible pointer type /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: At top level: /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:585: warning: 'request_queue_t' is deprecated /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h: In function 'drbd_plug_device': /root/drbd-0.7.25/drbd/drbd_compat_wrappers.h:605: warning: 'request_queue_t' is deprecated make[3]: *** [/root/drbd-0.7.25/drbd/drbd_bitmap.o] Error 1 make[2]: *** [_module_/root/drbd-0.7.25/drbd] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.24-rc1' make[1]: *** [kbuild] Error 2 make[1]: Leaving directory `/root/drbd-0.7.25/drbd' What should I do with too many arguments to function 'bio_endio'? Thanks.