[DRBD-user] drbd 8.3.10 and kernel 2.6.32 from ubuntu lucid compile error

Lars Ellenberg lars.ellenberg at linbit.com
Wed Feb 16 17:35:51 CET 2011

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


On Wed, Feb 16, 2011 at 11:44:50AM +0000, Alessandro Bono wrote:
> Hi
> 
> I'm trying to compile drbd 8.3.10 from git repository against kernel  
> 2.6.32-28-server from ubuntu lucid but I receive this error
> 
> usr/bin/make -C drbd KERNEL_SOURCES=/usr/src/linux-headers-2.6.32-28-
> server MODVERSIONS=detect KERNEL=linux-2.6.32-28-server KDIR=/usr/src/
> linux-headers-2.6.32-28-server
> make[2]: Entering directory `/usr/src/modules/drbd/drbd'
> 
>     Calling toplevel makefile of kernel source tree, which I believe is in
>     KDIR=/usr/src/linux-headers-2.6.32-28-server
> 
> test -f ../scripts/adjust_drbd_config_h.sh && \
>                 KDIR=/usr/src/linux-headers-2.6.32-28-server O= /bin/
> bash ../scripts/adjust_drbd_config_h.sh
> /usr/src/linux-headers-2.6.32-28-server /usr/src/modules/drbd/drbd
> KDIR=/usr/src/linux-headers-2.6.32-28-server
> O=/usr/src/linux-headers-2.6.32-28-server
> /usr/src/modules/drbd/drbd
>   
>   Adjusted drbd_config.h:
>   --- ./linux/drbd_config.h     2011-02-16 12:25:29.000000000 +0100
>   +++ ./linux/drbd_config.h.new 2011-02-16 12:36:37.340105104 +0100
>   @@ -118 +118 @@
>   -//#define NEED_BLK_QUEUE_MAX_SEGMENTS
>   +#define NEED_BLK_QUEUE_MAX_SEGMENTS
>   
> /usr/bin/make -C /usr/src/linux-headers-2.6.32-28-server   SUBDIRS=/usr/
> src/modules/drbd/drbd  modules
> make[3]: Entering directory `/usr/src/linux-headers-2.6.32-28-server'
>   CC [M]  /usr/src/modules/drbd/drbd/drbd_buildtag.o
> In file included from include/linux/notifier.h:13,
>                  from include/linux/memory_hotplug.h:6,
>                  from include/linux/mmzone.h:666,
>                  from include/linux/gfp.h:4,
>                  from include/linux/kmod.h:22,
>                  from include/linux/module.h:13,
>                  from include/net/sock.h:48,
>                  from /usr/src/modules/drbd/drbd/linux/connector.h:109,
>                  from /usr/src/modules/drbd/drbd/linux/drbd.h:28,
>                  from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2:
> /usr/src/modules/drbd/drbd/linux/mutex.h:6:27: error: asm/semaphore.h: No 
> such file or directory

Yeah right.

Some standard linux kernel header cannot be found,
and that is obviously DRBD's fault. Not.

The source tarball you us there is broken,
or more likely some symlink in your linux headers is broken.

building drbd 8.3.10 against 2.6.32-28-server works for me just fine
out of the box.

-- 
: 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