failure to build gnutls-3.0.16

Bruno Haible bruno at clisp.org
Sat Mar 17 01:26:22 CET 2012


Hi,

Trying to build gnutls-3.0.16 (from ftp.gnu.org) on MacOS X 10.7, I get this
compilation error:

Making all in libopts
  CC     libopts_la-libopts.lo
  CCLD   libopts.la
libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries
  CC     libcmd_serv_la-serv-args.lo
In file included from serv-args.c:43:
serv-args.h:62:3: error: #error option template version mismatches autoopts/options.h header
In file included from serv-args.c:43:
serv-args.h:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Me'
serv-args.h:105: warning: data definition has no type or storage class
serv-args.h:105: warning: type defaults to 'int' in declaration of 'teOptIndex'
serv-args.c:901: error: 'INDEX_OPT_VERSION' undeclared here (not in a function)
serv-args.c:915: error: 'INDEX_OPT_HELP' undeclared here (not in a function)
serv-args.c:927: error: 'INDEX_OPT_MORE_HELP' undeclared here (not in a function)
make[3]: *** [libcmd_serv_la-serv-args.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

And indeed src/serv-args.h contains this code:

#define AO_TEMPLATE_VERSION 147460
#if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
 || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
# error option template version mismatches autoopts/options.h header
  Choke Me.
#endif

whereas src/libopts/autoopts/options.h contains this code:

#define OPTIONS_STRUCT_VERSION      147459
#define OPTIONS_VERSION_STRING      "36:3:11"
#define OPTIONS_MINIMUM_VERSION     102400
#define OPTIONS_MIN_VER_STRING      "25:0:0"

And yes, 147460 is larger than 147459.

Why did I run into this? What's the fix?

The previous version, gnutls-3.0.15, works fine.

Bruno





More information about the Gnutls-devel mailing list