[DRBD-user] drbd-8.2.5 compilation fail with kernel-2.6.24

alex alshu at tut.by
Thu Feb 21 09:34:12 CET 2008

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 try to compile drbd-8.2.5 with last OpenSUSE kernel 2.6.24.1-3 and
again got fail:

make -C drbd drbd_buildtag.c
make[1]: Entering directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd'
make[1]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd'
make[1]: Entering directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/user'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_scanner.o drbdadm_scanner.c
drbdadm_scanner.c: In function 'yy_get_next_buffer':
drbdadm_scanner.c:2084: warning: comparison between signed and unsigned
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_parser.o drbdadm_parser.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_main.o drbdadm_main.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdtool_common.o drbdtool_common.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbdadm_usage_cnt.o 
drbdadm_usage_cnt.c
cp ../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbd_buildtag.o drbd_buildtag.c
gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o 
drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o
gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing   -c -o drbdmeta.o 
drbdmeta.c
flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl
gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing   -c -o 
drbdmeta_scanner.o drbdmeta_scanner.c
drbdmeta_scanner.c: In function 'yy_get_next_buffer':
drbdmeta_scanner.c:1294: warning: comparison between signed and unsigned
gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o 
drbd_buildtag.o
gcc -g -O2 -c -W -Wall -I../drbd 
-I/lib/modules/2.6.24.1-3-default/build/include -fno-strict-aliasing   -c -o 
drbdsetup.o drbdsetup.c
cp ../drbd/drbd_strings.c drbd_strings.c
gcc -g -O2 -c -W -Wall -I../drbd 
-I/lib/modules/2.6.24.1-3-default/build/include -fno-strict-aliasing   -c -o 
drbd_strings.o drbd_strings.c
gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o 
drbd_strings.o
make[1]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/user'
make[1]: Entering directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/scripts'
Makefile:48: No special distribution INITD
Makefile:49: setting INITD=/etc/init.d/ according to LSB
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/scripts'
make[1]: Entering directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/documentation'

         Userland tools build was successful.
make[1]: Entering directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd'

     Calling toplevel makefile of kernel source tree, which I believe is in
     KDIR=/lib/modules/2.6.24.1-3-default/build

test -f ../scripts/adjust_drbd_config_h.sh && \
          KDIR=/lib/modules/2.6.24.1-3-default/build O= /bin/bash 
../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.24.1-3-default/build 
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd

   Adjusted drbd_config.h:
   --- ./linux/drbd_config.h     2008-02-08 16:56:09.000000000 +0200
   +++ ./linux/drbd_config.h.new 2008-02-21 10:00:06.282264132 +0200
   @@ -71 +71 @@
   -//#define NEED_BACKPORT_OF_ATOMIC_ADD
   +#define NEED_BACKPORT_OF_ATOMIC_ADD

make -C /lib/modules/2.6.24.1-3-default/build 
SUBDIRS=/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd 
 modules
make[2]: Entering directory 
`/mnt/xfs/dop/suse/10.3/usr/src/linux-2.6.24.1-3-obj/i386/default'
make -C ../../../linux-2.6.24.1-3 O=../linux-2.6.24.1-3-obj/i386/default 
modules
   CC [M] 
 /mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_buildtag.o
   CC [M] 
 /mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_bitmap.o
In file included from 
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_int.h:1253,
                  from 
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_bitmap.c:31:
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_wrappers.h:185: 
error: redefinition of 'atomic_add_return'
include2/asm/atomic_32.h:181: error: previous definition of 
'atomic_add_return' was here
/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_wrappers.h:211: 
error: redefinition of 'atomic_sub_return'
include2/asm/atomic_32.h:214: error: previous definition of 
'atomic_sub_return' was here
make[5]: *** 
[/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd/drbd_bitmap.o] 
Error 1
make[4]: *** 
[_module_/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd] 
Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/usr/src/linux-2.6.24.1-3-obj/i386/default'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory 
`/mnt/xfs/dop/suse/10.3/home/alex/Work/Agat/drbd/drbd-8.2.5/drbd'
make: *** [module] Error 2

     Is drbd ready to use with 2.6.24?
     Alex
  
                      

----------
Центр быстрого чтения и развития памяти. (+375-17) 220-22-50. 
За восемь дней Вы станете лучше! 
Детские и взрослые группы. Заочное обучение. VIP обучение. 
http://www.fastread.by









More information about the drbd-user mailing list