[Bug 257866] security/sssd: Build fails compiling nss_sha512crypt.c: static declaration of 'mempcpy' follows non-static declaration

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 15 Aug 2021 16:54:40 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257866

            Bug ID: 257866
           Summary: security/sssd: Build fails compiling
                    nss_sha512crypt.c: static declaration of 'mempcpy'
                    follows non-static declaration
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs_at_FreeBSD.org
          Reporter: radoslaw_at_ejsmont.net
                CC: lukas.slebodnik_at_intrak.sk
             Flags: maintainer-feedback?(lukas.slebodnik_at_intrak.sk)
                CC: lukas.slebodnik_at_intrak.sk

Hello,

I encountered the following error building security/sssd on arm64:

src/util/crypto/nss/nss_sha512crypt.c:33:1: error: static declaration of
'mempcpy' follows non-static declaration
mempcpy (void *dest, const void *src, size_t n)
^
/usr/include/string.h:70:7: note: previous declaration is here
void    *mempcpy(void * __restrict, const void * __restrict, size_t);
         ^
1 error generated.

Full build log attached.

FreeBSD generic 13.0-STABLE FreeBSD 13.0-STABLE #0
stable/13-n246669-5f27244beb8: Thu Aug  5 03:46:10 UTC 2021    
root_at_releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64

The offending prototype seems to come from /usr/include/string.h

Renaming mempcpy to _sha512_mempcpy in nss_sha512crypt.c appears to fix the
issue (build succeeds).

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sun Aug 15 2021 - 16:54:40 UTC

Original text of this message