[DRBD-user] drbd-8.0.11 compilation on Linux 2.6.13-15.10-smp

Ruben del Pozo rpozo at eresa.com
Wed Apr 23 15:26:39 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.


Hi all,

I get the following error compiling drbd-8.0.11. Any idea? 



cluster01:/usr/src/drbd-8.0.11/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
    KDIR=/lib/modules/2.6.13-15.10-smp/build

test -f ../scripts/adjust_drbd_config_h.sh && \
 KDIR=/lib/modules/2.6.13-15.10-smp/build O= /bin/bash
../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.13-15.10-smp/build /usr/src/drbd-8.0.11/drbd
/usr/src/drbd-8.0.11/drbd

  Using unmodified drbd_config.h

make -C /lib/modules/2.6.13-15.10-smp/build SUBDIRS=/usr/src/drbd-8.0.11/drbd
modules
make[1]: Entering directory `/usr/src/linux-2.6.13-15.10-obj/i386/smp'
make -C ../../../linux-2.6.13-15.10 O=../linux-2.6.13-15.10-obj/i386/smp
modules
  CC [M]  /usr/src/drbd-8.0.11/drbd/drbd_buildtag.o
  CC [M]  /usr/src/drbd-8.0.11/drbd/drbd_bitmap.o
  CC [M]  /usr/src/drbd-8.0.11/drbd/drbd_proc.o
  CC [M]  /usr/src/drbd-8.0.11/drbd/drbd_worker.o
  CC [M]  /usr/src/drbd-8.0.11/drbd/drbd_receiver.o
In file included from /usr/src/drbd-8.0.11/drbd/drbd_receiver.c:49:
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:5:
warning: 'struct scatterlist' declared inside parameter list
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:5:
warning: its scope is only this definition or declaration,
which is probably not what you want
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:
In function 'sg_init_one':
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:7:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:9:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:10:
error: dereferencing pointer to incomplete type
/usr/src/linux-2.6.13-15.10/include/linux/scatterlist.h:11:
error: dereferencing pointer to incomplete type
make[4]: *** [/usr/src/drbd-8.0.11/drbd/drbd_receiver.o] Error 1
make[3]: *** [_module_/usr/src/drbd-8.0.11/drbd] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.10-obj/i386/smp'
make: *** [kbuild] Error 2
cluster01:/usr/src/drbd-8.0.11/drbd #

Thank you in advance,

Ruben




More information about the drbd-user mailing list