[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnutls 3.0.10
From: |
Andreas Metzler |
Subject: |
Re: gnutls 3.0.10 |
Date: |
Sat, 18 Feb 2012 19:28:34 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On 2012-02-18 Nikos Mavrogiannopoulos <address@hidden> wrote:
[...]
> ** command line apps: Use gnu autogen (libopts) to parse command
> line arguments and template files.
[...]
Hello,
This seems to be slightly broken:
a) If there is no local installation of autoopts-config/libopts.so
running gnutls' make install gives you /usr/lib/libopts.so.25.11.2 and
the cmdline utilities are linked against it.
b) With a local $libdir/libopts.so and autoopts-config (25.10.0) I get
a build error:
-------------------------------
make[4]: Entering directory `/tmp/GNUTLS/gnutls-3.0.13/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
-I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes
-I./../extra/includes -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -Werror=format-security -Wall -c -o
libcmd_serv_la-serv-args.lo `test -f 'serv-args.c' || echo './'`serv-args.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl
-I./../lib/includes -I./../lib/includes -I./../extra/includes -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -Wall -c serv-args.c -fPIC -DPIC -o
.libs/libcmd_serv_la-serv-args.o
In file included from serv-args.c:49:0:
serv-args.h:62:3: error: #error option template version mismatches
autoopts/options.h header
serv-args.h:63:3: error: unknown type name 'Choke'
serv-args.h:63:11: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '.' token
-------------------------------
I think the correct behavior for a) is to build and link against a
local helper library (noinst_LTLIBRARIES ...) instead of installing
a shared library to $libdir.
OTOH (b) if libopts is locally installed the respective autogenerated
files (serv-args.h) should also be regenerated instead of breaking
compilation.
I will take a look at this tomorrow. (Unless weather permits
snowboarding.)
cu andreas