./configure: line 9178: syntax error near unexpected token `LIBGNUTLS, '

Hans-Christoph Steiner hans at guardianproject.info
Mon Feb 2 19:20:46 CET 2015


I'm getting this while building the latest GnuPG for Android using gnupg 2.1.1:

  checking for NTBTLS - version >= 0.1.0... no
  ./configure: line 9178: syntax error near unexpected token `LIBGNUTLS,'
  ./configure: line 9178: `    PKG_CHECK_MODULES(LIBGNUTLS, gnutls >=
$NEED_GNUTLS_VERSION,'
  make: *** [gnupg/Makefile] Error 2

I'm not really sure the exact trigger for this, but on one Debian/stable
machine, I get this problem reliably, while on another Debian/stable machine,
I do not.  But I think I can see the cause, at line 858 in configure.ac:

  if test x"$try_gnutls" = xyes ; then
    PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= $NEED_GNUTLS_VERSION],
                                   [have_gnutls=yes],
                                   [have_gnutls=no])
  fi

Which looks like this in ./configure:

  if test x"$try_gnutls" = xyes ; then
    PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= $NEED_GNUTLS_VERSION,
                                   have_gnutls=yes,
                                   have_gnutls=no)
  fi

Here, PKG_CHECK_MODULES() is being included as a sh function rather than an
autoconf macro.  As far as I know, it is not valid sh syntax to have a
function call with parens spanning multiple lines.  I attached the
config.log and log of the build itself.  The generic ./configure script is too
big to attach for this list's strict, tiny 40kb limit, so it is here:
https://gist.github.com/eighthave/4212cd6d369c92e4fa7b

.hc





-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81
https://pgp.mit.edu/pks/lookup?op=vindex&search=0x9F0FE587374BBE81

-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log.bz2
Type: application/x-bzip
Size: 4857 bytes
Desc: not available
URL: </pipermail/attachments/20150202/56e88048/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.bz2
Type: application/x-bzip
Size: 10151 bytes
Desc: not available
URL: </pipermail/attachments/20150202/56e88048/attachment-0001.bin>


More information about the Gnupg-devel mailing list