Compilation problem with gnupg 1.9.1
Alex Willmer
alex at moreati.org.uk
Tue Nov 4 01:04:25 CET 2003
On Monday 03 Nov 2003 8:14 am, Werner Koch wrote:
> Hmmm. you should first make sure that gpg-error-config is found by the
> configure script. Look at config.log to see why it was not found and
> try to fix that.
>
> GPG_ERROR_CONFIG=~/gnupg-1.9/bin/gpg-error-config ./configure ....
>
> might be the easiest way to accomplish that.
Hmmm indeed, and also ahem.
After much blind stabbing I found my error to be using 'configure
--with-libgpg-error-prefix= ...' rather than 'configure --with-gpg-error'.
However I's like to redeem myself, because once I spotted that I still got
errors with the script.
There are 2 lines in acinclude.m4 that appear to pass the wrong argument to
{libgcrypt,gpg-error}-config in their respective test. Appended is a patch
that should fix this and bring the gpg-error test in sync with that of
libgcrypt's version. with this the configure script completes.
Sincerely
Alex Willmer
Index: acinclude.m4
===================================================================
RCS file: /cvs/gnupg/gnupg/acinclude.m4,v
retrieving revision 1.34.4.4
diff -r1.34.4.4 acinclude.m4
381d380
< libgcrypt_config_args="$libgcrypt_config_args
--prefix=$libgcrypt_config_prefix"
649d647
< gpg_error_config_args="$gpg_error_config_args
--prefix=$gpg_error_config_prefix"
665,676c663,676
< major=`echo $gpg_error_config_version | \
< sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
< minor=`echo $gpg_error_config_version | \
< sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
< if test "$major" -gt "$req_major"; then
< ok=yes
< else
< if test "$major" -eq "$req_major"; then
< if test "$minor" -ge "$req_minor"; then
< ok=yes
< fi
< fi
---
> if test "$gpg_error_config_version"; then
> major=`echo $gpg_error_config_version | \
> sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
> minor=`echo $gpg_error_config_version | \
> sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
> if test "$major" -gt "$req_major"; then
> ok=yes
> else
> if test "$major" -eq "$req_major"; then
> if test "$minor" -ge "$req_minor"; then
> ok=yes
> fi
> fi
> fi
More information about the Gnupg-devel
mailing list