[sheepdog-users] Build SBD

Valerio Pachera sirio81 at gmail.com
Wed Jun 11 11:17:32 CEST 2014

In my debian wheezy I had to edit sheepdog/sbd/sbd.h as suggested by Yuan
to avoid the below error.

change line
  #include "sheepdog_proto.h"
  #include "../include/sheepdog_proto.h"

The I was able to build the module

make -C /lib/modules/`uname -r`/build M=$PWD modules
make[1]: Entering directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'
  CC [M]  /usr/src/sheepdog/sbd/sheep_block_device.o
  CC [M]  /usr/src/sheepdog/sbd/sheep.o
  LD [M]  /usr/src/sheepdog/sbd/sbd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/sheepdog/sbd/sbd.mod.o
  LD [M]  /usr/src/sheepdog/sbd/sbd.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'

2014-06-10 14:59 GMT+02:00 Valerio Pachera <sirio81 at gmail.com>:

> root at valerio:/tmp/sheepdog/sbd# make
> make -C /lib/modules/`uname -r`/build M=$PWD modules
> make[1]: Entering directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'
>   CC [M]  /tmp/sheepdog/sbd/sheep_block_device.o
> In file included from /tmp/sheepdog/sbd/sheep_block_device.c:48:0:
> /tmp/sheepdog/sbd/sbd.h:20:28: fatal error: sheepdog_proto.h: File or
> directory not found
> compilation terminated.
> make[4]: *** [/tmp/sheepdog/sbd/sheep_block_device.o] Error 1
> make[3]: *** [_module_/tmp/sheepdog/sbd] Error 2
> make[2]: *** [sub-make] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-3.12-0.bpo.1-amd64'
> make: *** [default] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20140611/915cfdde/attachment-0005.html>

More information about the sheepdog-users mailing list