[DRBD-user] New Kernel - Can Not Compile DRBD

ha at buglecreek.com ha at buglecreek.com
Wed Dec 3 23:26:05 CET 2008

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 running drbd-8.0.8 and was forced to install a new kernel on a
fedora 8 machine (local security policy).  Before I booted off the new
kernel, I am trying to
compile and install the new drbd.ko module.  

The following kernel packages are installed:
kernel-devel-2.6.26.6-49.fc8
kernel-2.6.23.8-63.fc8
kernel-devel-2.6.23.8-63.fc8
kernel-2.6.26.6-49.fc8
kernel-headers-2.6.26.6-49.fc8

I am running the 2.6.23.8-63.fc8 kernel right now.

I do the following:

cd drbd-8.0.8/drbd/
make clean
make KDIR=/usr/src/kernels/2.6.26.6-49.fc8-i686 (see output errors
below)

Doing make KDIR=/usr/src/kernels/2.6.23.8-63.fc8-i686 works fine and
creates the drdb.ko.

Any help would be great.  I've done this on a redhat box with two
kernels
like above and it works fine also.  By the way, The first error related
to Docbook does not seem to be an issue, I get this on other systems
also.  I'm not sure where to go with this, I have a short lead time and
would like to stick to the same drbd version so I don't have to rebuild
the tools.


OUTPUT OF MAKE:

    Calling toplevel makefile of kernel source tree, which I believe is
    in
    KDIR=/usr/src/kernels/2.6.26.6-49.fc8-i686

test -f ../scripts/adjust_drbd_config_h.sh && \
         KDIR=/usr/src/kernels/2.6.26.6-49.fc8-i686 O= /bin/bash
         ../scripts/adjust_drbd_config_h.sh
/usr/src/kernels/2.6.26.6-49.fc8-i686 /usr/local/src/drbd-8.0.8/drbd
make[2]:
/usr/src/kernels/2.6.26.6-49.fc8-i686/Documentation/DocBook/Makefile: No
such file or directory
make[2]: *** No rule to make target
`/usr/src/kernels/2.6.26.6-49.fc8-i686/Documentation/DocBook/Makefile'.
Stop.
make[1]: *** [help] Error 2
/usr/local/src/drbd-8.0.8/drbd

  Using unmodified drbd_config.h

make -C /usr/src/kernels/2.6.26.6-49.fc8-i686
SUBDIRS=/usr/local/src/drbd-8.0.8/drbd  modules
make[1]: Entering directory `/usr/src/kernels/2.6.26.6-49.fc8-i686'
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_buildtag.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_bitmap.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_proc.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_worker.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_receiver.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_req.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_actlog.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/lru_cache.o
  CC [M]  /usr/local/src/drbd-8.0.8/drbd/drbd_main.o
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c: In function ‘drbd_cleanup’:
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c:2248: error: ‘proc_root’
undeclared (first use in this function)
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c:2248: error: (Each undeclared
identifier is reported only once
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c:2248: error: for each
function it appears in.)
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c: In function ‘drbd_init’:
/usr/local/src/drbd-8.0.8/drbd/drbd_main.c:2485: error: ‘proc_root’
undeclared (first use in this function)
make[2]: *** [/usr/local/src/drbd-8.0.8/drbd/drbd_main.o] Error 1
make[1]: *** [_module_/usr/local/src/drbd-8.0.8/drbd] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.26.6-49.fc8-i686'
make: *** [kbuild] Error 2



More information about the drbd-user mailing list