GNU bug report logs - #77476
[PATCH] Rename various hash functions to avoid clashing with GnuTLS.

Previous Next

Package: emacs;

Reported by: "Greg A. Woods" <woods <at> robohack.ca>

Date: Thu, 3 Apr 2025 03:47:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77476 <at> debbugs.gnu.org, woods <at> robohack.ca
Subject: bug#77476: [PATCH] Rename various hash functions to avoid clashing with GnuTLS.
Date: Sun, 20 Apr 2025 13:25:07 -0700
On 2025-04-20 01:04, Eli Zaretskii wrote:
>> GnuTLS incorrectly exports some Gnulib functions to the outside world,
>> and this breaks programs that use these function names for their own
>> purposes.
> Ah, okay.  So this is a clash of Gnulib with itself, due to incorrect
> visibility specs applied by GnuTLS...

The clash was not of Gnulib with itself, since the part of Gnulib that 
defines these symbols is not present in the Emacs tarball. Instead, the 
clash was between Emacs's hash_lookup and hash_string (defined in 
emacs/src/fns.c) and Gnulib's hash_lookup and hash_string (defined in 
gnulib/lib/hash.c) incorrectly exported by GnuTLS's x509 implementation, 
which is used by emacs/src/gnutls.c.




This bug report was last modified 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.