Folks,
<div>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. </div>
<div><br></div><div><br></div><div>The Error: </div><div><br></div><div><div>test -f ../scripts/adjust_drbd_config_h.sh && \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> KDIR=/lib/modules/2.6.35.4-rscloud/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh</div>
<div>/lib/modules/2.6.35.4-rscloud/build /usr/src/drbd-8.3.7/drbd</div><div>/usr/src/drbd-8.3.7/drbd</div><div><br></div><div> Using unmodified drbd_config.h</div><div><br></div><div>make -C /lib/modules/2.6.35.4-rscloud/build SUBDIRS=/usr/src/drbd-8.3.7/drbd modules</div>
<div>make[2]: Entering directory `/usr/src/2.6.35.4-rscloud'</div><div><br></div><div> WARNING: Symbol version dump /usr/src/2.6.35.4-rscloud/Module.symvers</div><div> is missing; modules will have no dependencies and modversions.</div>
<div><br></div><div> CC [M] /usr/src/drbd-8.3.7/drbd/drbd_buildtag.o</div><div> CC [M] /usr/src/drbd-8.3.7/drbd/drbd_bitmap.o</div><div>In file included from /usr/src/drbd-8.3.7/drbd/drbd_int.h:1508,</div><div> from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:</div>
<div>/usr/src/drbd-8.3.7/drbd/drbd_wrappers.h:628: error: redefinition of typedef 'gfp_t'</div><div>include/linux/types.h:179: note: previous declaration of 'gfp_t' was here</div><div>/usr/src/drbd-8.3.7/drbd/drbd_wrappers.h:655: error: conflicting types for 'proc_create'</div>
<div>include/linux/proc_fs.h:152: note: previous definition of 'proc_create' was here</div><div>In file included from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:</div><div>/usr/src/drbd-8.3.7/drbd/drbd_int.h:1732:5: warning: "DRBD_DEBUG_STATE_CHANGES" is not defined</div>
<div>In file included from /usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:30:</div><div>/usr/src/drbd-8.3.7/drbd/drbd_int.h: In function 'drbd_md_flush':</div><div>/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</div>
<div>include/linux/blkdev.h:1012: note: expected 'gfp_t' but argument is of type 'void *'</div><div>/usr/src/drbd-8.3.7/drbd/drbd_int.h:2431: error: too few arguments to function 'blkdev_issue_flush'</div>
<div>/usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:946:5: warning: "DUMP_MD" is not defined</div><div>/usr/src/drbd-8.3.7/drbd/drbd_bitmap.c:1335:5: warning: "DUMP_MD" is not defined</div><div>make[3]: *** [/usr/src/drbd-8.3.7/drbd/drbd_bitmap.o] Error 1</div>
<div>make[2]: *** [_module_/usr/src/drbd-8.3.7/drbd] Error 2</div><div>make[2]: Leaving directory `/usr/src/2.6.35.4-rscloud'</div><div>make[1]: *** [kbuild] Error 2</div><div>make[1]: Leaving directory `/usr/src/drbd-8.3.7/drbd'</div>
<div>make: *** [module] Error 2</div></div><div><br></div>