[Top][All Lists]

[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 
   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 
   handle errors in Emacs-specific way.

IMO the best approach is to review/fix src/gnutls.c to handle 
among other errors and don't interfere in the library itself in any way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]