From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dGp9ierdKtJ9 for ; Wed, 8 Aug 2012 11:40:00 +0200 (CEST) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 8 Aug 2012 11:40:00 +0200 (CEST) Received: by wibhm11 with SMTP id hm11so3668841wib.1 for ; Wed, 08 Aug 2012 02:39:59 -0700 (PDT) Message-ID: <502233EC.1030701@gmail.com> Date: Wed, 08 Aug 2012 11:39:56 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] Building error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: demo demo Cc: dm-crypt@saout.de On 08/08/2012 11:10 AM, demo demo wrote: > Hi, >=20 > My goal is to manage crypted devices using own C program which should inc= lude and use Cryptsetup API. >=20 > In order to start I'm first trying to build the example files but I got t= he following error: >=20 > # make > gcc -O0 -g -Wall -D_GNU_SOURCE -c -o crypt_luks_usage.o crypt_luks_usag= e.c > crypt_luks_usage.c: In function =91format_and_add_keyslots=92: > crypt_luks_usage.c:85: error: =91struct crypt_params_luks1=92 has no memb= er named =91data_device=92 > make: *** [crypt_luks_usage.o] Error 1 >=20 >=20 > It's on CentOS 6.2, cryptsetup 1.2.0 The example is taken from more recent version of cryptsetup source (data_de= vice was introduced later). Whatever, in this example just comment out this line setting data_device to= NULL and it will work even int RHEL6. (I will perhaps remove it upstream as well so the basic example compiles ev= en on older versions of library.) Milan