[gnutls-devel] gnutls-3.3.17: compilation error due to autoopts

mancha mancha1 at zoho.com
Fri Aug 14 06:55:25 CEST 2015

On Mon, Aug 10, 2015 at 03:53:52PM +0200, Thomas Klausner wrote:
> Hi!
> I just tried compiling gnutls-3.3.17 on NetBSD-7.99.20/amd64.
> It failed with
> In file included from certtool-args.c:43:0: certtool-args.h:61:3:
> error: #error option template version mismatches autoopts/options.h
> header # error option template version mismatches autoopts/options.h
> header ^ certtool-args.h:62:3: error: unknown type name 'Choke' Choke
> Me.  ^ certtool-args.h:62:11: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '.' token Choke Me.

Hi. The issue is the bundled autogen'd files (src/*.bak) were generated
using autogen-5.18.5 while the bundled autoopts is from autogen-5.18.4.

Nikos, this problem is happening often (I recently had to fix the same
thing on 3.1.28). It might be easiest to bundle the same libopts version
in all releases and make sure the autogen where you build the .bak files

Thomas, as for a fix, you can install autogen 5.18.5 and have GnuTLS
3.3.17 use that to autogen some of its files instead of using the
bundled .bak files or you might get away with:

sed -i -e 's|#define AO_TEMPLATE_VERSION 167937|#define AO_TEMPLATE_VERSION 167936|' certtool-args.h.bak cli-args.h.bak cli-debug-args.h.bak danetool-args.h.bak ocsptool-args.h.bak p11tool-args.h.bak psktool-args.h.bak serv-args.h.bak srptool-args.h.bak tpmtool-args.h.bak

--mancha (https://twitter.com/mancha140)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: </pipermail/attachments/20150814/818f550b/attachment-0001.sig>

More information about the Gnutls-devel mailing list