DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Building error
@ 2012-08-08  9:10 demo demo
  2012-08-08  9:39 ` Milan Broz
  0 siblings, 1 reply; 7+ messages in thread
From: demo demo @ 2012-08-08  9:10 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3835 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [dm-crypt] Building error
@ 2012-08-08  9:29 demo demo
  0 siblings, 0 replies; 7+ messages in thread
From: demo demo @ 2012-08-08  9:29 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

ok, I have commented line 85:

params.data_device = NULL;

to

//params.data_device = NULL;

now if I run make it get compiled without errors.

But, is it right or something get broken?

[-- Attachment #2: Type: text/html, Size: 310 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-16 11:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08  9:10 [dm-crypt] Building error demo demo
2012-08-08  9:39 ` Milan Broz
     [not found]   ` <CACgeVjKhPvSXjqt0CR2w2KCV3vut8cK3P=AnsM7qqjAEZQUZxw@mail.gmail.com>
2012-08-16  6:43     ` demo demo
2012-08-16 10:52       ` Milan Broz
2012-08-16 11:13         ` demo demo
2012-08-16 10:29   ` demo demo
  -- strict thread matches above, loose matches on Subject: below --
2012-08-08  9:29 demo demo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox