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 BfvezI03sCua for ; Sun, 6 Jan 2013 11:21:53 +0100 (CET) Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 6 Jan 2013 11:21:53 +0100 (CET) Received: by mail-ea0-f176.google.com with SMTP id d13so7540953eaa.35 for ; Sun, 06 Jan 2013 02:21:53 -0800 (PST) Message-ID: <50E9503D.8090602@gmail.com> Date: Sun, 06 Jan 2013 11:21:49 +0100 From: Milan Broz MIME-Version: 1.0 References: <50E80901.5040103@gmail.com> <50E86965.2070306@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] static libraries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: dm-crypt@saout.de On 01/05/2013 11:15 PM, .. ink .. wrote: > > > > Anyway, if you find some situation when configure script doesn't detect > some missing library, let me know (with proper info mentioned above). > > > i am using version 0.27.1 of pkg-config > > http://pastebin.com/ASBk1X6K That's exactly error I need to see that something is wrong :) ./configure: line 16992: --static: command not found (pkgconfig was not properly initialized in autoconf) > The development package of libgrypt does not ship with libgcrypt.a in > the distribution i am using and this necessitated me to build another > version of libgrcypt to have a static library and i installed it in > "/home/local" because thats where i install personal packages. Gcrypt supports static libraries but not all distros use them. The fun is here it uses own libgcrypt-config script which does not have --static switch to properly detect libraries needed for static compilation. IOW see libgcrypt-config --libs (In fedora for example it reports -lgpg-error.) But cryptsetup autoconf tries to handle that but I do not want workaround for every broken gcrypt install... As you can see here, it tries gpg-error library LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static" AC_CHECK_LIB(gcrypt, gcry_check_version,, AC_MSG_ERROR([Cannot find static gcrypt library.]), [-lgpg-error]) So maybe the error message just should mention gpg-error as well. Milan