<div dir="ltr"><br><div class="gmail_extra">In my debian wheezy I had to edit sheepdog/sbd/sbd.h as suggested by Yuan to avoid the below error.<br><br>change line<br> #include "sheepdog_proto.h"<br>in<br> #include "../include/sheepdog_proto.h"<br>
<br></div><div class="gmail_extra">The I was able to build the module<br><br>make -C /lib/modules/`uname -r`/build M=$PWD modules<br>make[1]: Entering directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'<br> CC [M] /usr/src/sheepdog/sbd/sheep_block_device.o<br>
CC [M] /usr/src/sheepdog/sbd/sheep.o<br> LD [M] /usr/src/sheepdog/sbd/sbd.o<br> Building modules, stage 2.<br> MODPOST 1 modules<br> CC /usr/src/sheepdog/sbd/sbd.mod.o<br> LD [M] /usr/src/sheepdog/sbd/sbd.ko<br>
make[1]: Leaving directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-06-10 14:59 GMT+02:00 Valerio Pachera <span dir="ltr"><<a href="mailto:sirio81@gmail.com" target="_blank">sirio81@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>root@valerio:/tmp/sheepdog/sbd# make <br>make -C /lib/modules/`uname -r`/build M=$PWD modules<br>
make[1]: Entering directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'<br> CC [M] /tmp/sheepdog/sbd/sheep_block_device.o<br>
In file included from /tmp/sheepdog/sbd/sheep_block_device.c:48:0:<br>/tmp/sheepdog/sbd/sbd.h:20:28: fatal error: sheepdog_proto.h: File or directory not found<br>compilation terminated.<br>make[4]: *** [/tmp/sheepdog/sbd/sheep_block_device.o] Error 1<br>
make[3]: *** [_module_/tmp/sheepdog/sbd] Error 2<br>make[2]: *** [sub-make] Error 2<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'<br>make: *** [default] Error 2<br>
</div></blockquote></div></div></div>