[DRBD-user] Compile Problem (kernel 2.6.18-mm3)

Brent Davidson brent at texascountrytitle.com
Tue Nov 7 19:00:10 CET 2006

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

I'm having a problme compiling drbd version 0.7.22 under Centos 4.4 x86_64
using an updated kernel.  Kernel source for 2.6.18 was retrieved from
kernel.org, mm3 patches were replied.  Local kernel version is

I am getting an error in drbd_main.c.  I get the same error with source
retrived from svn and from Tarball.

Here's the output of my build attempt:

[root at localhost drbd]# 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

test -f ../scripts/adjust_drbd_config_h.sh && \
 KDIR=/lib/modules/2.6.18-mm3.x86_64.smp/build /bin/sh

  Using unmodified drbd_config.h

make -C /lib/modules/2.6.18-mm3.x86_64.smp/build
SUBDIRS=/root/drbd/drbd-0.7.22/drbd  modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_sizeof_sanity_check.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_buildtag.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_bitmap.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_fs.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_proc.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_worker.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_receiver.o
/root/drbd/drbd-0.7.22/drbd/drbd_receiver.c: In function `drbd_asender':
/root/drbd/drbd-0.7.22/drbd/drbd_receiver.c:2315: warning: unused variable
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_req.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_actlog.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/lru_cache.o
  CC [M]  /root/drbd/drbd-0.7.22/drbd/drbd_main.o
/root/drbd/drbd-0.7.22/drbd/drbd_main.c: In function `drbd_destroy_mempools':
/root/drbd/drbd-0.7.22/drbd/drbd_main.c:1630: error: void value not
ignored as it ought to be
/root/drbd/drbd-0.7.22/drbd/drbd_main.c:1633: error: void value not
ignored as it ought to be
make[2]: *** [/root/drbd/drbd-0.7.22/drbd/drbd_main.o] Error 1
make[1]: *** [_module_/root/drbd/drbd-0.7.22/drbd] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [kbuild] Error 2
[root at localhost drbd]#

Brent Davidson

More information about the drbd-user mailing list