[mod_gnutls-devel] GNUTLS 3.5.9 break mod_gnutls 0.8.2

Thomas Klute thomas2.klute at uni-dortmund.de
Sun Feb 19 19:23:28 CET 2017


I have added "-Wno-error=deprecated-declarations" to the compiler
options used in strict mode for now to avoid this build failure (commit
61353933986460ea2d7bcbc57531ecd066795f0d on master). This should be very
easy to apply to 0.8.2.

In the mid to long term I intend to remove OpenPGP support, ideally
together with other larger changes. I'm not sure if an intermediate
patch to make it optional is worth the effort, but if someone provides
one I'll be happy to merge it.

Regards,
Thomas

Am 18.02.2017 um 05:34 schrieb Julien Wilk:
> Got it:
> 
> ./configure --disable-strict
> make
> make install
> 
> All good now.
> 
> Julien
> 
> On Fri, Feb 17, 2017 at 6:37 PM, Julien Wilk <generikz at gmail.com> wrote:
> 
>> Hello everyone,
>>
>> I had a hard time trying to log in to enter a ticket (Google login broken,
>> Yahoo login broken, etc.).
>>
>> Just wanted to point out that the most recent GNUTLS release (3.5.9)
>> obsoleted openpgp functions as follows:
>>
>>
>>
>>
>> *** libgnutls: Removed any references to OpenPGP functionality in
>> documentation,   and marked all functions in openpgp.h as deprecated. That
>> functionality   is considered deprecated and should not be used for other
>> reason than   backwards compatibility.*
>>
>>
>> I was trying to upgrade and compile the most recent GNUTLS/mod_gnutls
>> versions.
>>
>> Current is 3.5.8 / 0.8.2 => OK
>> Intended is 3.5.9 / 0.8.2 => KO
>>
>> his break mod_gnutls here:
>>
>> his break mod_gnutls here:
>>
>> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -Wall
>> -I/usr/local/include -I/usr/local/include/p11-kit-1 -DENABLE_SRP=1
>> -I/usr/include/apr-1.0 -I/usr/include -pipe -g -O2 -fstack-protector-strong
>> -Wformat -Werror=format-security -pthread -DLINUX -D_REENTRANT
>> -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0
>> -I/usr/include/apr-1.0 -I/usr/include -Wall -Werror -Wextra -g -O2 -MT
>> mod_gnutls_la-gnutls_config.lo -MD -MP -MF .deps/mod_gnutls_la-gnutls_config.Tpo
>> -c gnutls_config.c  -fPIC -DPIC -o .libs/mod_gnutls_la-gnutls_config.o
>> gnutls_config.c: In function 'mgs_pool_free_credentials':
>> gnutls_config.c:156:9: error: 'gnutls_openpgp_crt_deinit' is deprecated
>> (declared at /usr/local/include/gnutls/openpgp.h:65)
>> [-Werror=deprecated-declarations]
>>          gnutls_openpgp_crt_deinit(sc->cert_crt_pgp[0]);
>>          ^
>> gnutls_config.c:172:9: error: 'gnutls_openpgp_keyring_deinit' is
>> deprecated (declared at /usr/local/include/gnutls/openpgp.h:270)
>> [-Werror=deprecated-declarations]
>>          gnutls_openpgp_keyring_deinit(sc->pgp_list);
>>          ^
>> gnutls_config.c: In function 'mgs_load_files':
>> gnutls_config.c:490:9: error: 'gnutls_openpgp_crt_init' is deprecated
>> (declared at /usr/local/include/gnutls/openpgp.h:63)
>> [-Werror=deprecated-declarations]
>>          ret = gnutls_openpgp_crt_init(&sc->cert_crt_pgp[0]);
>>          ^
>> gnutls_config.c:500:9: error: 'gnutls_openpgp_crt_import' is deprecated
>> (declared at /usr/local/include/gnutls/openpgp.h:67)
>> [-Werror=deprecated-declarations]
>>          ret = gnutls_openpgp_crt_import(sc->cert_crt_pgp[0], &data,
>>          ^
>> gnutls_config.c:611:9: error: 'gnutls_openpgp_keyring_init' is deprecated
>> (declared at /usr/local/include/gnutls/openpgp.h:269)
>> [-Werror=deprecated-declarations]
>>          ret = gnutls_openpgp_keyring_init(&sc->pgp_list);
>>          ^
>> gnutls_config.c:620:9: error: 'gnutls_openpgp_keyring_import' is
>> deprecated (declared at /usr/local/include/gnutls/openpgp.h:272)
>> [-Werror=deprecated-declarations]
>>          ret = gnutls_openpgp_keyring_import(sc->pgp_list, &data,
>>          ^
>> cc1: all warnings being treated as errors
>> Makefile:539: recipe for target 'mod_gnutls_la-gnutls_config.lo' failed
>>
>>
>> Is there a way to compile mod_gnutls without the PGP functions?
>>
>> Julien
>>
> 
> 
> 
> _______________________________________________
> mod_gnutls-devel mailing list
> mod_gnutls-devel at lists.gnutls.org
> http://lists.gnupg.org/mailman/listinfo/mod_gnutls-devel
> 

-- 
Dipl.-Ing. Thomas Klute

E-Mail: thomas2.klute at uni-dortmund.de
Tel.: +49 231 58680474



More information about the mod_gnutls-devel mailing list