https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127914
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The latest C standard replaced the standard memchr function with a generic one that accepts either void* or const void*, and returns the same type. It looks like FreeBSD have applied the same change to the non-standard memrchr. The prototype in libiberty no longer matches how it's declared in the libc headers.
