[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code
From: |
Dmitry Antipov |
Subject: |
Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code |
Date: |
Wed, 24 Dec 2014 10:07:56 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 12/24/2014 12:26 AM, Paul Eggert wrote:
I guess I'm not fully understanding the problem they're trying to fix.
IIUC the problem is:
1) On ELF/GCC-compatible systems, GnuTLS author(s) wants to initialize the
library
with gnutls_global_init called from __attribute__((constructor)) function.
Since gnutls_global_init uses memory allocation functions, any call to
gnutls_global_set_mem_functions from an application is just too late.
2) Emacs' GnuTLS code doesn't care about GNUTLS_E_MEMORY_ERROR too much because
we assume that the library can call our xmalloc and friends, where we
actually
handle errors in Emacs-specific way.
IMO the best approach is to review/fix src/gnutls.c to handle
GNUTLS_E_MEMORY_ERROR
among other errors and don't interfere in the library itself in any way.
Dmitry
- --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Dmitry Antipov, 2014/12/12
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Eli Zaretskii, 2014/12/12
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/12
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Dmitry Antipov, 2014/12/23
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Eli Zaretskii, 2014/12/23
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/23
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code,
Dmitry Antipov <=
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/25
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Lars Ingebrigtsen, 2014/12/25
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Eli Zaretskii, 2014/12/26
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/26
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Eli Zaretskii, 2014/12/27
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/28
- Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Eli Zaretskii, 2014/12/28
Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code, Paul Eggert, 2014/12/12