Follow-up Comment #3, bug #17573 (project wesnoth):

This is because of a change to glibc's memcpy() function that occurred late
last year. The old implementation allowed programs to call memcpy() on
overlapping regions. The new implementation copies memory in  reverse, which
broke any code that relied on the old implementation. The assumption that
memcpy() works between overlapping regions of memory is illegal under ANSI C.
There is a fairly lengthy bug report at the Fedora Linux bug tracker about
this where Linus Torvalds commented on the issue:

https://bugzilla.redhat.com/show_bug.cgi?id=638477

There is an upstream bug report with a patch for this issue:

http://bugzilla.libsdl.org/show_bug.cgi?id=1090

Anyone running Gentoo Linux affected by this is likely running the unstable
tree. They can fix this by running the following commands as root:

ebuild $(equery which media-libs/libsdl-1.2.14-r5) prepare
cd /var/tmp/portage/media-libs/libsdl-1.2.14-r5/work/SDL-1.2.14
wget -O - http://bugzilla.libsdl.org/attachment.cgi?id=574 | patch -p1
ebuild $(equery which media-libs/libsdl-1.2.14-r5) merge

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17573>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to