Setting Up A Highly Available NFS Server

Discussion in 'HOWTO-Related Questions' started by jarlie, Oct 18, 2007.

  1. jarlie

    jarlie New Member

    Hi,

    I'm having problems with compiling the DRBD module.

    I get the following error when I run make in /usr/src/modules/drdb/drdb

    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/lib/modules/2.6.20.1-1-686/build

    test -f ../scripts/adjust_drbd_config_h.sh && \
    KDIR=/lib/modules/2.6.20.1-1-686/build /bin/sh ../scripts/adjust_drbd_config_h.sh

    Using unmodified drbd_config.h

    make -C /lib/modules/2.6.20.1-1-686/build SUBDIRS=/usr/src/modules/drbd/drbd modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.20.1-1-686'
    CC [M] /usr/src/modules/drbd/drbd/drbd_receiver.o
    In file included from /usr/src/modules/drbd/drbd/drbd_receiver.c:53:
    /usr/src/modules/drbd/drbd/drbd_int.h:1026: warning: `kmem_cache_t' is deprecated (declared at include/linux/slab.h:17)
    /usr/src/modules/drbd/drbd/drbd_int.h:1027: warning: `kmem_cache_t' is deprecated (declared at include/linux/slab.h:17)
    In file included from /usr/src/modules/drbd/drbd/drbd_receiver.c:53:
    /usr/src/modules/drbd/drbd/drbd_int.h:1104:5: warning: "USE_RW_WAIT_QUEUE_SPINLOCK" is not defined
    /usr/src/modules/drbd/drbd/drbd_receiver.c: In function `drbd_accept':
    /usr/src/modules/drbd/drbd/drbd_receiver.c:496: error: `IPPROTO_TCP' undeclared (first use in this function)
    /usr/src/modules/drbd/drbd/drbd_receiver.c:496: error: (Each undeclared identifier is reported only once
    /usr/src/modules/drbd/drbd/drbd_receiver.c:496: error: for each function it appears in.)
    make[2]: *** [/usr/src/modules/drbd/drbd/drbd_receiver.o] Error 1
    make[1]: *** [_module_/usr/src/modules/drbd/drbd] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.20.1-1-686'
    make: *** [kbuild] Error 2

    Is this something anyone has seen before or can shed any light on?

    Any help would be really greatly appreciated.

    Thanks,

    Jarlath
     
  2. falko

    falko Super Moderator ISPConfig Developer

Share This Page