GNU bug report logs - #30654
[PATCH 1/1] gnu: giflib: Make "reallocarray" private, solve glibc@2.26 conflict.

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Wed, 28 Feb 2018 20:13:02 UTC

Severity: normal

Tags: patch

Done: Gábor Boskovits <boskovits <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 30654 <at> debbugs.gnu.org
Subject: [bug#30654] giflib / khtml build failures
Date: Wed, 28 Feb 2018 22:57:42 +0100
Hi Harmut,

I would prefer to remove reallocarray from giflib entirely.

As it is now, it's anyone's guess which of the functions is taken after ld.so is
done with setting up your program-using-glibc-and-giflib (I'm sure there's
a resolution mechanism but let's not tempt it to fail please).

I'd just empty giflib's lib/openbsd-reallocarray.c and remove the prototype
from the header file entirely.

/gnu/store$ objdump -t ywvngg36v2cdidcclvk0k14mxmmn73wp-giflib-5.1.4/lib/libgif.so.7 |grep reallocarray
0000000000005970 g     F .text  0000000000000056              reallocarray

That means giflib and glibc both define the same function with mutually
incompatible signatures (here only slightly incompatible).

Note that this is only a problem for C++ since C doesn't have exceptions.




This bug report was last modified 7 years and 29 days ago.

Previous Next


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