[DRBD-user] drbd does not compile against 2.6.19.1 of kernel.org

Achim Stumpf newgrp at gmx.de
Thu Jan 11 12:36:34 CET 2007

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


Hi list,

I have downloaded the original Kernel of kernel.org (2.6.19.1). I 
compiled it, installed it, and my system is running fine with the new 
Kernel.

After that i tried to compile drbd as module against the new kernel.

At first it stopped because of a missing ./include/linux/config.h

So I created a new one as i found that in another thread:

config.h:
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
/* This file is no longer in use and kept only for backward compatibility.
 * autoconf.h is now included via -imacros on the commandline
 */
#warning Including config.h is deprecated.
#include <linux/autoconf.h>
#endif


After that i tried it again:
# make clean
# make all
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/usr/src/drbd-0.7.22/drbd'
make[1]: Leaving directory `/usr/src/drbd-0.7.22/drbd'
make[1]: Entering directory `/usr/src/drbd-0.7.22/user'
gcc -c -Wall -I../drbd   -c -o drbdsetup.o drbdsetup.c
gcc -c -Wall -I../drbd   -c -o ../drbd/drbd_buildtag.o 
../drbd/drbd_buildtag.c
gcc -o drbdsetup drbdsetup.o ../drbd/drbd_buildtag.o
bison -d -o drbdadm_parser.c drbdadm_parser.y
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -c -Wall -I../drbd   -c -o drbdadm_scanner.o drbdadm_scanner.c
gcc -c -Wall -I../drbd   -c -o drbdadm_parser.o drbdadm_parser.c
gcc -c -Wall -I../drbd   -c -o drbdadm_main.o drbdadm_main.c
gcc -c -Wall -I../drbd   -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o 
drbdadm_adjust.o ../drbd/drbd_buildtag.o
make[1]: Leaving directory `/usr/src/drbd-0.7.22/user'
make[1]: Entering directory `/usr/src/drbd-0.7.22/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/drbd-0.7.22/scripts'
make[1]: Entering directory `/usr/src/drbd-0.7.22/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory `/usr/src/drbd-0.7.22/documentation'
make[1]: Entering directory `/usr/src/drbd-0.7.22/drbd'

    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/lib/modules/2.6.19.1.drbd.mod-1.0/build

test -f ../scripts/adjust_drbd_config_h.sh && \
 KDIR=/lib/modules/2.6.19.1.drbd.mod-1.0/build /bin/sh 
../scripts/adjust_drbd_config_h.sh

  Using unmodified drbd_config.h

make -C /lib/modules/2.6.19.1.drbd.mod-1.0/build 
SUBDIRS=/usr/src/drbd-0.7.22/drbd  modules
make[2]: Entering directory `/usr/src/linux-2.6.19.1'
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_sizeof_sanity_check.o
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_buildtag.o
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_bitmap.o
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_fs.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_fs.c:31:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_proc.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_proc.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_worker.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_worker.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_receiver.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_receiver.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
/usr/src/drbd-0.7.22/drbd/drbd_receiver.c: In function 'drbd_asender':
/usr/src/drbd-0.7.22/drbd/drbd_receiver.c:2315: warning: unused variable 
'empty'
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_req.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_req.c:28:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_actlog.o
  CC [M]  /usr/src/drbd-0.7.22/drbd/lru_cache.o
  CC [M]  /usr/src/drbd-0.7.22/drbd/drbd_main.o
In file included from /usr/src/drbd-0.7.22/drbd/drbd_main.c:34:
include/linux/config.h:6:2: warning: #warning Including config.h is 
deprecated.
/usr/src/drbd-0.7.22/drbd/drbd_main.c: In function 'drbd_destroy_mempools':
/usr/src/drbd-0.7.22/drbd/drbd_main.c:1630: error: void value not 
ignored as it ought to be
/usr/src/drbd-0.7.22/drbd/drbd_main.c:1633: error: void value not 
ignored as it ought to be
make[3]: *** [/usr/src/drbd-0.7.22/drbd/drbd_main.o] Error 1
make[2]: *** [_module_/usr/src/drbd-0.7.22/drbd] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.19.1'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/usr/src/drbd-0.7.22/drbd'
make: *** [all] Error 2

Do you have any advice?

Thanks,

Achim





More information about the drbd-user mailing list