[DRBD-user] building drbd 8.3.9 against upstream kernel

Lars Ellenberg lars.ellenberg at linbit.com
Sun Nov 7 20:13:01 CET 2010

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


On Sun, Nov 07, 2010 at 12:42:15PM +0200, Or Gerlitz wrote:
> Attempting to build drbd 8.3.9 against 2.6.36 I have run into few build errors, I have managed to get
> drbd_receiver.c and drbd_main.c to build fine with the below patch,
> 
> > make -C /lib/modules/2.6.36/source  O=/lib/modules/2.6.36/build SUBDIRS=/home/ogerlitz/linux/drbd/drbd-8.3.9/drbd  modules
> >   CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_buildtag.o
> >   CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_bitmap.o
> >   CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_proc.o
> >   CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_worker.o
> >   CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_receiver.o
> > /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_receiver.c: In function ‘write_flags_to_bio’:
> > /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_receiver.c:1818: error: ‘REQ_BCOMP_SYNC’ undeclared (first use in this function)
> [...]
> >  CC [M]  /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_main.o
> > /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_main.c: In function ‘bio_flags_to_wire’:
> > /home/ogerlitz/linux/drbd/drbd-8.3.9/drbd/drbd_main.c:2647: error: ‘DP_BCOMP_UNPLUG’ undeclared (first use in this function)

Should be fixed with
http://git.drbd.org/?p=drbd-8.3.git;a=commitdiff;h=d23e7fa9dd7c51160761ebcf9fa06a926b042001

> 
> but then drbd_tracing put some more serious challenges, so what would be the best way to proceed. 

For the tracing stuff, just don't compile it for now.
--- a/drbd/Makefile
+++ b/drbd/Makefile
@@ -44,7 +44,7 @@ ifneq ($(PATCHLEVEL),)
   endif

   CONFIG_BLK_DEV_DRBD := m
-  CONFIG_DRBD_TRACE := $(shell test $${SUBLEVEL} -ge 30 && echo m || echo n)
+  CONFIG_DRBD_TRACE := $(shell test $${SUBLEVEL} -ge 30 && test $${SUBLEVEL} -lt 35 && echo m || echo n)

   include $(DRBDSRC)/Makefile-2.6


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list