[DRBD-user] DKMS for drbd-9 fails

Thomas Roth t.roth at gsi.de
Tue Jun 30 16:50:06 CEST 2015

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



On 06/30/2015 02:23 PM, Roland Kammerer wrote:
> On Tue, Jun 30, 2015 at 01:56:19PM +0200, Thomas Roth wrote:
>> Hi all,
>>
>> I have just pulled  git.drbd.org/drbd-9.0.git and created the Debian package for dkms.
>> Works, but installing it aka compiling the module fails with
>>
>> make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
>>   CHK     /var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/compat.h
>> /bin/bash: FORCE: No such file or directory
>>   UPD     /var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/compat.h
>> mv: cannot stat ‘/var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/compat.h.tmp’: No such file or directory
>> /var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/Kbuild:74: recipe for target
>> '/var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/compat.h' failed
>> make[4]: *** [/var/lib/dkms/drbd/9.0.0-1~gsi8+1/build/src/drbd/compat.h] Error 1
>>
>>
>> Is this missing compat.h a msiconfiguration of mine, or is there indeed something missing?
>>
> 
> Hi,
> 
> Submodules got fetched? (clone --recursive or git submodule update)?
> Does it otherwise compile (make)
> Does the directory dkms complains about exist? Does it help if you stop
> messing around with the name ("~gsi8+1")?
> 
> Otherwise: works for me (same kernel, debuild -i -us -uc -b && dpkg -i)
> 
> Regards, rck
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 

O.k, thanks, the submodules were definitely missing.

Because now I got a new error.

debuild gave me drbd-dkms_9.0.0-1_all.deb (the added version number shouldn't really matter).
Installing this package results in

...
  GEN     /var/lib/dkms/drbd/9.0.0-1/build/src/drbd/drbd_buildtag.c
Your DRBD source tree is broken. Unpack again.
/var/lib/dkms/drbd/9.0.0-1/build/src/drbd/Kbuild:113: recipe for target
'/var/lib/dkms/drbd/9.0.0-1/build/src/drbd/drbd_buildtag.c' failed
make[4]: *** [/var/lib/dkms/drbd/9.0.0-1/build/src/drbd/drbd_buildtag.c] Error 1
...

/var/lib/dkms/drbd/9.0.0-1/build/src/drbd/drbd_buildtag.c.new does exist, but is empty.

Cheers,
Thomas



More information about the drbd-user mailing list