[DRBD-user] Compilation error

Lars Ellenberg lars.ellenberg at linbit.com
Fri Feb 1 19:04:35 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.


On Fri, Feb 01, 2008 at 10:41:05AM +0200, alex wrote:
>    Hello list!
>    I try to use last drbd-8.2.4 with last kernel 2.6.24-2 on OpenSUSE-10.3
> and get compilation error:
>
> make[1]: Entering directory `/home/alex/drbd-8.2.4/drbd'
> 
>     Calling toplevel makefile of kernel source tree, which I believe is in
>     KDIR=/lib/modules/2.6.24-2-default/build
> 
> test -f ../scripts/adjust_drbd_config_h.sh && \
>          KDIR=/lib/modules/2.6.24-2-default/build O= /bin/bash 
> ../scripts/adjust_drbd_config_h.sh
> /lib/modules/2.6.24-2-default/build /home/alex/drbd-8.2.4/drbd
> /home/alex/drbd-8.2.4/drbd
> 
>   Adjusted drbd_config.h:
>   --- ./linux/drbd_config.h     2008-01-11 14:36:02.000000000 +0200
>   +++ ./linux/drbd_config.h.new 2008-02-01 09:49:27.557343646 +0200
>   @@ -71 +71 @@
>   -//#define NEED_BACKPORT_OF_ATOMIC_ADD
>   +#define NEED_BACKPORT_OF_ATOMIC_ADD

well, "auto adjust" did fail.
you do NOT need the backport of ATOMIC_ADD.

either fix that by hand, or apply this patch to the auto-magic:

diff --git a/scripts/adjust_drbd_config_h.sh
b/scripts/adjust_drbd_config_h.sh
index 734a45e..65835bc 100755
--- a/scripts/adjust_drbd_config_h.sh
+++ b/scripts/adjust_drbd_config_h.sh
@@ -64,7 +64,8 @@ if grep_q "^PATCHLEVEL *= *6" $KDIR/Makefile ; then
   for f in $O/include/asm/atomic.h \
     $O/include/asm/arch/atomic.h \
     $O/include2/asm/atomic.h \
-    $O/include/asm/atomic_32.h
+    $O/include/asm/atomic_32.h \
+    $O/include2/asm/atomic_32.h
   do
     if grep_q "atomic_add_return" $f; then
       have_atomic_add=1

it should then at least build.
but be aware that we (LINBIT) did not yet test DRBD with 2.6.24.

-- 
: Lars Ellenberg                           http://www.linbit.com :
: DRBD/HA support and consulting             sales at linbit.com :
: LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
: Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list