[dm-crypt] Building error

demo demo demodemodx at gmail.com
Wed Aug 8 11:10:31 CEST 2012


Hi,

My goal is to manage crypted devices using own C program which should
include and use Cryptsetup API.

In order to start I'm first trying to build the example files but I got the
following error:

# make
gcc -O0 -g -Wall -D_GNU_SOURCE   -c -o crypt_luks_usage.o crypt_luks_usage.c
crypt_luks_usage.c: In function ‘format_and_add_keyslots’:
crypt_luks_usage.c:85: error: ‘struct crypt_params_luks1’ has no member
named ‘data_device’
make: *** [crypt_luks_usage.o] Error 1


It's on CentOS 6.2, cryptsetup 1.2.0

# rpm -qa | grep crypt
libgcrypt-1.4.5-9.el6_2.2.i686
cryptsetup-luks-libs-1.2.0-7.el6.i686
cryptsetup-luks-1.2.0-7.el6.i686
cryptsetup-luks-devel-1.2.0-7.el6.i686
libgcrypt-devel-1.4.5-9.el6_2.2.i686

Is something missing?

---
max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20120808/b8c666db/attachment.html>


More information about the dm-crypt mailing list