[DRBD-user] 2.6.24 compile issue

Matteo matteo at rmnet.it
Mon Oct 29 15:26:05 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 all,

i'm having problems compiling drbd 8.2 in kernel 2.6.24rc1, it says:
 Adjusted drbd_config.h:
  --- ./linux/drbd_config.h     2007-10-29 15:14:19.000000000 +0100
  +++ ./linux/drbd_config.h.new 2007-10-29 15:15:53.000000000 +0100
  @@ -71 +71 @@
  -//#define NEED_BACKPORT_OF_ATOMIC_ADD
  +#define NEED_BACKPORT_OF_ATOMIC_ADD

and then ask me to change extra_cflags in drbd/Makefile, but it still won't
compile:

 CC [M]  /usr/src/drbd-8.2.0/drbd/drbd_bitmap.o
In file included from /usr/src/drbd-8.2.0/drbd/drbd_bitmap.c:31:
/usr/src/drbd-8.2.0/drbd/drbd_int.h:756:1: warning: "BIT" redefined
In file included from /usr/src/drbd-8.2.0/drbd/drbd_bitmap.c:27:
include/linux/bitops.h:6:1: warning: this is the location of the previous
definition
In file included from /usr/src/drbd-8.2.0/drbd/drbd_int.h:1195,
                 from /usr/src/drbd-8.2.0/drbd/drbd_bitmap.c:31:
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h: In function
`drbd_generic_make_request':
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h:125: error: too many arguments to
function `bio_endio'
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h:130: error: too many arguments to
function `bio_endio'
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h: In function
`drbd_kmem_cache_create':/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h:185: warning: passing arg 5 of
`kmem_cache_create' from incompatible pointer type
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h: At top level:
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h:224: error: redefinition of
'atomic_add_return'
include/asm/atomic_32.h:181: error: previous definition of
'atomic_add_return' was here
/usr/src/drbd-8.2.0/drbd/drbd_wrappers.h:250: error: redefinition of
'atomic_sub_return'
include/asm/atomic_32.h:214: error: previous definition of
'atomic_sub_return' was here
/usr/src/drbd-8.2.0/drbd/drbd_bitmap.c: In function `drbd_bm_page_io_async':
/usr/src/drbd-8.2.0/drbd/drbd_bitmap.c:615: warning: assignment from
incompatible pointer type
/usr/src/drbd-8.2.0/drbd/drbd_bitmap.c:619: error: too many arguments to
function `bio_endio'
make[3]: *** [/usr/src/drbd-8.2.0/drbd/drbd_bitmap.o] Error 1
make[2]: *** [_module_/usr/src/drbd-8.2.0/drbd] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.24-rc1'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/usr/src/drbd-8.2.0/drbd'
make: *** [module] Error 2

Any ideas? i would like to try this new kernel because 2.6.23 give me
tremendous high %util and await time on my 3ware controller.
Thanks in advance,
--
so long and thank for all the fish
--matteo





More information about the drbd-user mailing list