[Bug 257866] security/sssd: Build fails compiling nss_sha512crypt.c: static declaration of 'mempcpy' follows non-static declaration
Date: Wed, 13 Oct 2021 20:41:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257866 Mikhail Teterin <mi@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mi@FreeBSD.org Attachment #228679| |maintainer-approval? Flags| | --- Comment #3 from Mikhail Teterin <mi@FreeBSD.org> --- Created attachment 228679 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228679&action=edit Check for mempcpy The root cause of the problem is that FreeBSD-13.0 has mempcpy(3) in libc -- and declared in <string.h>, whereas the earlier versions did not. There are several other ports affected -- chromium among them (Bug #257352). The earlier solutions simply grep-ed /usr/include/string.h for mempcpy. Here I'm offering a different approach -- test for the function's using configure. It has the advantage of being (potentially) acceptable upstream. -- You are receiving this mail because: You are the assignee for the bug.