From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: libgcrypt Date: Wed, 6 Feb 2013 23:35:21 +0100 Message-ID: <201302062335.21194.andreas@enge.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_pqtERX68g31goy6" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3DaV-0002x8-49 for bug-guix@gnu.org; Wed, 06 Feb 2013 17:35:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3DaQ-00007F-Oc for bug-guix@gnu.org; Wed, 06 Feb 2013 17:35:31 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:61629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3DaQ-00006g-Dy for bug-guix@gnu.org; Wed, 06 Feb 2013 17:35:26 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-01=_pqtERX68g31goy6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I am now trying to configure and build guix with the packages built by guix. So I installed autoconf, automake, binutils, glibc, gcc and ld- wrapper; added export GUIX_LD_WRAPPER_ALLOW_IMPURITIES=yes to my .bashrc as well as PATH, LIBRARY_PATH, CPATH, MANPATH and PKG_CONFIG_PATH. As discussed before, I also added export ACLOCAL="aclocal -I $HOME/.guix-profile/share/aclocal" . Now configure gives the error: checking for libgcrypt shared library name... libgcrypt checking for guile... (cached) /home/privat/.guix-profile/bin/guile checking for guile-config... /home/privat/.guix-profile/bin/guile-config checking for guile-tools... /home/privat/.guix-profile/bin/guile-tools checking whether libgcrypt can be dynamically loaded... no configure: error: GNU libgcrypt does not appear to be usable; see `--with- libgcrypt-prefix' and `README'. The file config.log ends with the following lines: configure:7038: checking for libgcrypt shared library name configure:7040: result: libgcrypt configure:7047: checking for guile configure:7077: result: /home/privat/.guix-profile/bin/guile configure:7091: checking for guile-config configure:7109: found /home/privat/.guix-profile/bin/guile-config configure:7121: result: /home/privat/.guix-profile/bin/guile-config configure:7135: checking for guile-tools configure:7153: found /home/privat/.guix-profile/bin/guile-tools configure:7165: result: /home/privat/.guix-profile/bin/guile-tools configure:7175: checking whether libgcrypt can be dynamically loaded configure:7190: result: no configure:7194: error: GNU libgcrypt does not appear to be usable; see `-- with-libgcrypt-prefix' and `README'. Do you see why and how to solve it? Andreas --Boundary-01=_pqtERX68g31goy6 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Hello,

 

I am now trying to configure and build guix with the packages built by guix. So I installed autoconf, automake, binutils, glibc, gcc and ld-wrapper; added

export GUIX_LD_WRAPPER_ALLOW_IMPURITIES=yes

to my .bashrc as well as PATH, LIBRARY_PATH, CPATH, MANPATH and PKG_CONFIG_PATH.

 

As discussed before, I also added

export ACLOCAL="aclocal -I $HOME/.guix-profile/share/aclocal" .

 

Now configure gives the error:

checking for libgcrypt shared library name... libgcrypt

checking for guile... (cached) /home/privat/.guix-profile/bin/guile

checking for guile-config... /home/privat/.guix-profile/bin/guile-config

checking for guile-tools... /home/privat/.guix-profile/bin/guile-tools

checking whether libgcrypt can be dynamically loaded... no

configure: error: GNU libgcrypt does not appear to be usable; see `--with-libgcrypt-prefix' and `README'.

 

The file config.log ends with the following lines:

configure:7038: checking for libgcrypt shared library name

configure:7040: result: libgcrypt

configure:7047: checking for guile

configure:7077: result: /home/privat/.guix-profile/bin/guile

configure:7091: checking for guile-config

configure:7109: found /home/privat/.guix-profile/bin/guile-config

configure:7121: result: /home/privat/.guix-profile/bin/guile-config

configure:7135: checking for guile-tools

configure:7153: found /home/privat/.guix-profile/bin/guile-tools

configure:7165: result: /home/privat/.guix-profile/bin/guile-tools

configure:7175: checking whether libgcrypt can be dynamically loaded

configure:7190: result: no

configure:7194: error: GNU libgcrypt does not appear to be usable; see `--with-libgcrypt-prefix' and `README'.

 

Do you see why and how to solve it?

 

Andreas

 

--Boundary-01=_pqtERX68g31goy6-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libgcrypt Date: Wed, 06 Feb 2013 23:41:04 +0100 Message-ID: <87y5f1awvz.fsf@gnu.org> References: <201302062335.21194.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Dg0-0004k7-By for bug-guix@gnu.org; Wed, 06 Feb 2013 17:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3Dfy-0001q4-OZ for bug-guix@gnu.org; Wed, 06 Feb 2013 17:41:12 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:24662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Dfy-0001pq-I7 for bug-guix@gnu.org; Wed, 06 Feb 2013 17:41:10 -0500 In-Reply-To: <201302062335.21194.andreas@enge.fr> (Andreas Enge's message of "Wed, 6 Feb 2013 23:35:21 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > checking whether libgcrypt can be dynamically loaded... no > configure: error: GNU libgcrypt does not appear to be usable; see `--with- > libgcrypt-prefix' and `README'. Just pass --with-libgcrypt-prefix=3D$HOME/.guix-profile/lib. The code corresponding to the check above is simple-minded (it=E2=80=99s in m4/guix.m4). All it does is: guile -c "(dynamic-func \"gcry_md_hash_buffer\" (dynamic-link \"$LIBGCRYP= T\"))" and checks its return code. Passing --with-libgcrypt-prefix allows it to work with non-standard prefixes. Perhaps README should be augmented? Ludo=E2=80=99. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: libgcrypt Date: Thu, 7 Feb 2013 10:33:24 +0100 Message-ID: <201302071033.24745.andreas@enge.fr> References: <201302062335.21194.andreas@enge.fr> <87y5f1awvz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_kT3ERn3zlXSD7ed" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3NrI-0005iA-PZ for bug-guix@gnu.org; Thu, 07 Feb 2013 04:33:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3NrG-0007Q3-3o for bug-guix@gnu.org; Thu, 07 Feb 2013 04:33:32 -0500 In-Reply-To: <87y5f1awvz.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_kT3ERn3zlXSD7ed Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Mittwoch, 6. Februar 2013 schrieb Ludovic Court=C3=A8s: > Andreas Enge skribis: > > checking whether libgcrypt can be dynamically loaded... no > > configure: error: GNU libgcrypt does not appear to be usable; see > > `--with- libgcrypt-prefix' and `README'. > Just pass --with-libgcrypt-prefix=3D$HOME/.guix-profile/lib. Yes, that should work, but... > The code corresponding to the check above is simple-minded (it=E2=80=99s = in > m4/guix.m4). All it does is: > guile -c "(dynamic-func \"gcry_md_hash_buffer\" (dynamic-link > \"$LIBGCRYPT\"))" > and checks its return code. > Passing --with-libgcrypt-prefix allows it to work with non-standard > prefixes. =2E.. under guix, $HOME/.guix-profile/{lib,...} is the standard prefix ;-) So would it be possible to modify the test so that it takes LIBRARY_PATH=20 into account? (If it were C, the AC macros would do that automatically.) Or= =20 could one simply use AC_CHECK_LIB? If not, a possible work-around would be to check explicitly with the=20 $HOME/.guix-profile/lib prefix. Andreas --Boundary-01=_kT3ERn3zlXSD7ed Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Mittwoch= , 6. Februar 2013 schrieb Ludovic Court=C3=A8s:

> Andrea= s Enge <andreas@enge.fr> skribis:

> > c= hecking whether libgcrypt can be dynamically loaded... no

> > c= onfigure: error: GNU libgcrypt does not appear to be usable; see

> > `= =2D-with- libgcrypt-prefix' and `README'.

> Just p= ass --with-libgcrypt-prefix=3D$HOME/.guix-profile/lib.

&nb= sp;

Yes, that s= hould work, but...

&nb= sp;

> The co= de corresponding to the check above is simple-minded (it=E2=80=99s in

> m4/gui= x.m4). All it does is:

> guil= e -c "(dynamic-func \"gcry_md_hash_buffer\" (dynamic-link

> \"= ;$LIBGCRYPT\"))"

> and ch= ecks its return code.

> Passin= g --with-libgcrypt-prefix allows it to work with non-standard

> prefix= es.

&nb= sp;

... under g= uix, $HOME/.guix-profile/{lib,...} is the standard prefix ;-)

&nb= sp;

So would it= be possible to modify the test so that it takes LIBRARY_PATH into account?= (If it were C, the AC macros would do that automatically.) Or could one si= mply use AC_CHECK_LIB?

&nb= sp;

If not, a p= ossible work-around would be to check explicitly with the $HOME/.guix-profi= le/lib prefix.

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_kT3ERn3zlXSD7ed-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libgcrypt Date: Thu, 07 Feb 2013 12:08:15 +0100 Message-ID: <8738x8js9s.fsf@gnu.org> References: <201302062335.21194.andreas@enge.fr> <87y5f1awvz.fsf@gnu.org> <201302071033.24745.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3PL2-0004Sg-4g for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3PKz-0003Om-50 for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:20 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:54435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3PKy-0003Of-To for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:17 -0500 In-Reply-To: <201302071033.24745.andreas@enge.fr> (Andreas Enge's message of "Thu, 7 Feb 2013 10:33:24 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Am Mittwoch, 6. Februar 2013 schrieb Ludovic Court=C3=A8s: [...] >> Passing --with-libgcrypt-prefix allows it to work with non-standard >> prefixes. > > ... under guix, $HOME/.guix-profile/{lib,...} is the standard prefix ;-) Yes, but it remains =E2=80=9Cnon-standard=E2=80=9D to ld.so, ld, etc. > So would it be possible to modify the test so that it takes LIBRARY_PATH= =20 > into account? (If it were C, the AC macros would do that automatically.) = Or=20 > could one simply use AC_CHECK_LIB? No, because we precisely want to check that Guile=E2=80=99s =E2=80=98dynami= c-link=E2=80=99 finds it, because that=E2=80=99s what is used in guix/utils.scm (in turn, =E2=80=98dynamic-link=E2=80=99 uses lt_dlopenext, which uses dlopen.) Thus the influential environment variables are LTDL_LIBRARY_PATH and LD_LIBRARY_PATH. When we have a full-blown distro, all those *PATH variables will be initialized by /etc/profile, so that everything is transparent. In the meantime, one has to set them in their own ~/.bashrc. > If not, a possible work-around would be to check explicitly with the=20 > $HOME/.guix-profile/lib prefix. I=E2=80=99d rather let users do one of the above than add something specifi= c. Ludo=E2=80=99.