[DRBD-user] Compile help (please)

Bjorn Enroth bjorn.enroth at comnia.se
Thu Aug 1 12:36:17 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.


Thanks a lot Joseph

It seems to compile ok after I added:

#define MAX_LEVEL (MAX_ID_SHIFT + IDR_BITS - 1) / IDR_BITS
#define IDR_FREE_MAX MAX_LEVEL + MAX_LEVEL

to /usr/src/linux-headers-2.6.32-22-pve/include/linux/idr.h

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
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_nla.o
  CC [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd_sysfs.o
  LD [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/drbd-9.0.0pre5/drbd/drbd.mod.o
  LD [M]  /usr/src/drbd-9.0.0pre5/drbd/drbd.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-pve'
mv .drbd_kernelrelease.new .drbd_kernelrelease
Memorizing module configuration ... done.


Next thing is to try this out; Proxmox 3.0 on top of drbd9


Best Regards
Björn



1 aug 2013 kl. 11:32 skrev Joseph Hauptmann <joseph.hauptmann at digiconcept.net>:

> try this.
> https://bugzilla.openvz.org/show_bug.cgi?id=2689
> worked for drbd8.4.3.
> 
> 
> Am 01.08.2013 11:13, schrieb Bjorn Enroth:
>> Hi,
>> 
>> 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
>> 
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/drbd-user
> 
> 
> -- 
> Joseph Hauptmann
> 
> /digiconcept/ - GmbH.
> 1080 Wien
> Blindengasse 52/1
> 
> Tel. +43 1 218 0 212 - 17
> Fax +43 1 218 0 212 - 10 
> 
> 
> --
> This message was scanned by ESVA and is believed to be clean.
> 




More information about the drbd-user mailing list