[DRBD-user] Compile 8.2.6 against kernel 2.6.26.6

Adrian Chapela achapela.rexistros at gmail.com
Fri Oct 24 09:45:47 CEST 2008

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


Hello!

I have installed this kernel on my test machine and I am trying to 
compile drbd 8.2.6 against this kernel and it fails with next output:

make clean all
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*

Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/lib/modules/2.6.26.6/build

test -f ../scripts/adjust_drbd_config_h.sh && \
KDIR=/lib/modules/2.6.26.6/build O= /bin/bash 
../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.26.6/build /usr/src/drbd-8.2.6/drbd
/usr/src/drbd-8.2.6/drbd

Using unmodified drbd_config.h

make -C /lib/modules/2.6.26.6/build SUBDIRS=/usr/src/drbd-8.2.6/drbd modules
make[1]: se ingresa al directorio `/usr/src/linux-2.6.26.6'
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_buildtag.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_bitmap.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_proc.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_worker.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_receiver.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_req.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_actlog.o
CC [M] /usr/src/drbd-8.2.6/drbd/lru_cache.o
CC [M] /usr/src/drbd-8.2.6/drbd/drbd_main.o
/usr/src/drbd-8.2.6/drbd/drbd_main.c: In function ‘drbd_cleanup’:
/usr/src/drbd-8.2.6/drbd/drbd_main.c:2567: error: ‘proc_root’ undeclared 
(first use in this function)
/usr/src/drbd-8.2.6/drbd/drbd_main.c:2567: error: (Each undeclared 
identifier is reported only once
/usr/src/drbd-8.2.6/drbd/drbd_main.c:2567: error: for each function it 
appears in.)
/usr/src/drbd-8.2.6/drbd/drbd_main.c: In function ‘drbd_init’:
/usr/src/drbd-8.2.6/drbd/drbd_main.c:2789: error: ‘proc_root’ undeclared 
(first use in this function)
make[2]: *** [/usr/src/drbd-8.2.6/drbd/drbd_main.o] Error 1
make[1]: *** [_module_/usr/src/drbd-8.2.6/drbd] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.26.6'
make: *** [kbuild] Error 2

Have you a solution ?

I found a solution in this web: http://winux.tistory.com/tag/DRBD . I 
have changed the lines in the code and drbd compilation works well.

Thank you!



More information about the drbd-user mailing list