[DRBD-user] DRBD .7.2 compile issue - [drbd_bitmap.o] Error 1

Lars Ellenberg Lars.Ellenberg at linbit.com
Wed Aug 25 16:01:13 CEST 2004

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


/ 2004-08-25 09:46:06 -0400
\ Dan Didier:
> Thanks to Lars for pointing out some obvious issues with kernel
> compilations I am now trying to compile DRBD .7.2 on my redhat 9 system
> running kernel 2.4.20.31.9smp

> 
> When I try to make, I get the following:
> 
> [root at rome1 drbd]# make KDIR=/lib/modules/2.4.20-31.9smp/build/
> 
>     Calling toplevel makefile of kernel source tree, which I believe is
> in
>     KDIR=/lib/modules/2.4.20-31.9smp/build/
> 

> drbd_compat_types.h:62: conflicting types for `find_first_bit'
> /usr/src/linux-2.4.20-31.9/include/asm/bitops.h:304: previous
> declaration of `find_first_bit'
> drbd_compat_types.h:89: conflicting types for `find_next_bit'
> /usr/src/linux-2.4.20-31.9/include/asm/bitops.h:363: previous
> declaration of `find_next_bit'
> make[2]: *** [drbd_bitmap.o] Error 1
> make[2]: Leaving directory `/var/src/drbd-0.7.2/drbd'
> make[1]: *** [_mod_/var/src/drbd-0.7.2/drbd] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.20-31.9'
> make: *** [kbuild] Error 2
> 
> It seems that there is a conflict, but I am at a loss as to how to fix
> this.  Does anyone know what the solution could be?
> 

you could have a close look at drbd_config.h.
or you could use a fresh svn checkout,
which contains some magic adjust_drbd_config_h.sh script...

	Lars Ellenberg

-- 
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list