[DRBD-user] Compile Error Against RackSpace Cloud Linux Kernel

Sean Carey sean at densone.com
Tue Nov 23 07:44:13 CET 2010

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


Folks,
I am trying to compile the drbd kernel module against the rackspace cloud
linux kernel and am getting the following error. I followed the online doc
and I can get the build to work against generic headers, just not RS Cloud.
Any help would be greatly appreciated.


The Error:

test -f ../scripts/adjust_drbd_config_h.sh && \
 KDIR=/lib/modules/2.6.35.4-rscloud/build O= /bin/bash
../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.35.4-rscloud/build /usr/src/drbd-8.3.7/drbd
/usr/src/drbd-8.3.7/drbd

  Using unmodified drbd_config.h

make -C /lib/modules/2.6.35.4-rscloud/build
SUBDIRS=/usr/src/drbd-8.3.7/drbd  modules
make[2]: Entering directory `/usr/src/2.6.35.4-rscloud'

  WARNING: Symbol version dump /usr/src/2.6.35.4-rscloud/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/drbd-8.3.7/drbd/drbd_buildtag.o
  CC [M]  /usr/src/drbd-8.3.7/drbd/drbd_bitmap.o
In file included from /usr/src/drbd-8.3.7/drbd/drbd_int.h:1508,
                 from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:
/usr/src/drbd-8.3.7/drbd/drbd_wrappers.h:628: error: redefinition of typedef
'gfp_t'
include/linux/types.h:179: note: previous declaration of 'gfp_t' was here
/usr/src/drbd-8.3.7/drbd/drbd_wrappers.h:655: error: conflicting types for
'proc_create'
include/linux/proc_fs.h:152: note: previous definition of 'proc_create' was
here
In file included from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:
/usr/src/drbd-8.3.7/drbd/drbd_int.h:1732:5: warning:
"DRBD_DEBUG_STATE_CHANGES" is not defined
In file included from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:
/usr/src/drbd-8.3.7/drbd/drbd_int.h: In function 'drbd_md_flush':
/usr/src/drbd-8.3.7/drbd/drbd_int.h:2431: warning: passing argument 2 of
'blkdev_issue_flush' makes integer from pointer without a cast
include/linux/blkdev.h:1012: note: expected 'gfp_t' but argument is of type
'void *'
/usr/src/drbd-8.3.7/drbd/drbd_int.h:2431: error: too few arguments to
function 'blkdev_issue_flush'
/usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:946:5: warning: "DUMP_MD" is not
defined
/usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:1335:5: warning: "DUMP_MD" is not
defined
make[3]: *** [/usr/src/drbd-8.3.7/drbd/drbd_bitmap.o] Error 1
make[2]: *** [_module_/usr/src/drbd-8.3.7/drbd] Error 2
make[2]: Leaving directory `/usr/src/2.6.35.4-rscloud'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/usr/src/drbd-8.3.7/drbd'
make: *** [module] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20101123/45812707/attachment.htm>


More information about the drbd-user mailing list