[DRBD-user] Compile help (please)

Bjorn Enroth bjorn.enroth at comnia.se
Thu Aug 1 11:13:42 CEST 2013

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


I am trying to compile drbd 9.0.0 pre5 on a proxmox 3.0 (Debian 7.0) box. When trying to compile the drbd moduöes I get this error below. Anyone with a tip? Am I missing something?

Thanks a lot in advance

make[1]: Entering directory `/usr/src/linux-headers-2.6.32-22-pve'
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_buildtag.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_bitmap.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_proc.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_sender.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_receiver.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_req.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_actlog.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/lru_cache.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_main.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_strings.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_nl.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_interval.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_state.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/compat/idr.o
/usr/src/drbd-9.0.0pre5/drbd/compat/idr.c: In function ‘idr_get_next’:
/usr/src/drbd-9.0.0pre5/drbd/compat/idr.c:16:27: error: ‘MAX_LEVEL’ undeclared (first use in this function)
/usr/src/drbd-9.0.0pre5/drbd/compat/idr.c:16:27: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/drbd-9.0.0pre5/drbd/compat/idr.c:16:24: warning: unused variable ‘pa’ [-Wunused-variable]
make[2]: *** [/usr/src/drbd-9.0.0pre5/drbd/compat/idr.o] Error 1
make[1]: *** [_module_/usr/src/drbd-9.0.0pre5/drbd] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-pve'
make: *** [kbuild] Error 2


Björn Enroth
Comnia Internet AB

bjorn.enroth at comnia.se
+46-70-3118400  cellphone
+46-8-53338400  direct

More information about the drbd-user mailing list