Bug#624036: ekg2: Uses deprecated _set_priority GnuTLS functions
Control: retitle -1 ekg2: Uses deprecated _set_priority GnuTLS functions / broken with GnuTLS 3.4.0
Hello,
With GnuTLS 3.4.0, the build does not abort, but is probably broken
(note the implicit declaration warning).
-------------------
/bin/bash ./libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I./plugins -I. -I. -DSYSCONFDIR=\"/etc\" -DDATADIR=\"/usr/share/ekg2\" -DPLUGINDIR=\"/usr/lib/ekg2/plugins\" -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/p11-kit-1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o plugins_jabber_jabber_la-jabber.lo `test -f 'plugins/jabber/jabber.c' || echo './'`plugins/jabber/jabber.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I./plugins -I. -I. -DSYSCONFDIR=\"/etc\" -DDATADIR=\"/usr/share/ekg2\" -DPLUGINDIR=\"/usr/lib/ekg2/plugins\" -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/p11-kit-1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c plugins/jabber/jabber.c -fPIC -DPIC -o .libs/plugins_jabber_jabber_la-jabber.o
In file included from plugins/jabber/jabber.h:10:0,
from plugins/jabber/jabber.c:55:
plugins/jabber/jabber-ssl.h:22:1: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
static int __attribute__((unused)) SSL_SET_FD(SSL_SESSION session, long int fd) {
^
plugins/jabber/jabber-ssl.h: In function 'SSL_SET_FD':
plugins/jabber/jabber-ssl.h:23:2: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
gnutls_transport_set_ptr(session, (gnutls_transport_ptr)(fd));
^
In file included from plugins/jabber/jabber.c:55:0:
plugins/jabber/jabber.h: At top level:
plugins/jabber/jabber.h:137:2: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
SSL_SESSION ssl_session; /**< SSL session */
^
plugins/jabber/jabber.h:139:2: warning: 'gnutls_certificate_credentials' is deprecated [-Wdeprecated-declarations]
gnutls_certificate_credentials xcred; /**< gnutls credentials (?) */
^
plugins/jabber/jabber.c:896:1: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
static const char *jabber_ssl_cert_verify(const SSL_SESSION ssl) {
^
plugins/jabber/jabber.c: In function 'jabber_handle_connect_ssl':
plugins/jabber/jabber.c:999:3: warning: implicit declaration of function 'gnutls_certificate_type_set_priority' [-Wimplicit-function-declaration]
gnutls_certificate_type_set_priority(j->ssl_session, cert_type_priority);
^
plugins/jabber/jabber.c:1001:3: warning: implicit declaration of function 'gnutls_compression_set_priority' [-Wimplicit-function-declaration]
gnutls_compression_set_priority(j->ssl_session, comp_type_priority);
^
plugins/jabber/jabber.c: In function 'jabber_handle_connect':
plugins/jabber/jabber.c:733:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(fd, req, xstrlen(req));
^
-------------------
These functions were dropped in 3.4.0, see
http://www.gnutls.org/manual/html_node/Upgrading-from-previous-versions.html#Upgrading-from-previous-versions
for information on upgrading.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply to: