[DRBD-user] compile against kernel source

Walter Robert Ditzler ditwal001 at gmail.com
Mon Jul 25 12:58:50 CEST 2011

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


hi drbd user list,

i want to compile drbd 8.4 against kernel mainline 3.0 source and receive an
error:

my commands:

# cd /usr/src/drbd-8.4.0
# ./autogen.sh
# ./configure --localstatedir=/var --sysconfdir=/etc --with-km=yes
# cd /usr/src/drbd-8.4.0/drbd
# make clean
# make KDIR=/usr/src/linux-3.0



the error message:

***
In file included from include/linux/security.h:25,
                 from include/net/sock.h:53,
                 from include/linux/connector.h:83,
                 from /usr/src/drbd-8.4.0/drbd/linux/drbd.h:28,
                 from /usr/src/drbd-8.4.0/drbd/drbd_buildtag.c:2:
include/linux/fs.h:1606: error: requested alignment is not a constant
In file included from include/net/sock.h:62,
                 from include/linux/connector.h:83,
                 from /usr/src/drbd-8.4.0/drbd/linux/drbd.h:28,
                 from /usr/src/drbd-8.4.0/drbd/drbd_buildtag.c:2:
include/net/dst.h: In function âdst_holdâ:
include/net/dst.h:232: error: size of array âtype nameâ is negative
make[2]: *** [/usr/src/drbd-8.4.0/drbd/drbd_buildtag.o] Error 1
make[1]: *** [_module_/usr/src/drbd-8.4.0/drbd] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0'
make: *** [kbuild] Error 2
root at hst-ldeb-ksqx64:/usr/src/drbd-8.4.0/drbd#
***

does anyone have a glue on that subject?


thanks walter




More information about the drbd-user mailing list