[vlc-devel] Fwd: memmove

Rémi Denis-Courmont remi at remlab.net
Sun Apr 10 12:20:05 CEST 2011


FYI, do not compile (VLC) with gcc >= 4.6 and glibc < 2.13.

You were warned.

----------  Forwarded message  ----------
On 2011-04-10 12:18, Török Edwin wrote:
> Marc Glisse wrote:
>> Hello,
>>
>> in the prototype of memmove (taken from glibc bits/string3.h), you will 
>> notice __restrict in front of the arguments. This is not present in more 
>> recent glibc versions and is a likely cause of your trouble.
>>
> 
> Indeed if I remove __restrict the bug is gone, and if I upgrade to libc6
> 2.13-0exp5, VLC's dec.c seems to be compiled correctly too.
> 
> Should gcc-4.6 depend on glibc >= 2.13?
> Or should gcc-4.6 provide a fixed prototype for memmove via fix-includes?

FWIW here are the upstream glibc commits fixing the use of memmove:
http://repo.or.cz/w/glibc.git/commitdiff/4f1972374a080e823c4ead7c0496827dfc013837?hp=eaea92f137762dd754fdf858a2cd600f15005884
http://repo.or.cz/w/glibc.git/commitdiff/42acbb92c861e97a6e1293ea853db88342a1bf53?hp=a5b913e299027a799ae5435d66e3f20e95859654

If those patches are backported to Debian's libc-2.11.2, then gcc-4.6
could be made to depend on libc-2.11.2 >= fixed_version.
Should I clone this bug for libc?

Best regards,
--Edwin



More information about the vlc-devel mailing list