gnutls 3.0.10
Andreas Metzler
ametzler at downhill.at.eu.org
Sat Feb 18 19:28:34 CET 2012
On 2012-02-18 Nikos Mavrogiannopoulos <nmav at gnutls.org> 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
More information about the Gnutls-devel
mailing list