Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2022 18:18:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262067] www/chromium: HAVE_MEMPCPY is undefined in third_party/nasm/include/compiler.h
Message-ID:  <bug-262067-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262067

            Bug ID: 262067
           Summary: www/chromium: HAVE_MEMPCPY is undefined in
                    third_party/nasm/include/compiler.h
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: chromium@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
          Assignee: chromium@FreeBSD.org

This is on 14.0-CURRENT.
HAVE_MEMPCPY is undefined in third_party/nasm/include/compiler.h, resulting=
 in
messages such as:

In file included from ../../third_party/nasm/asm/directbl.c:6:
In file included from ../../third_party/nasm/asm/directiv.h:9:
In file included from ../../third_party/nasm/include/perfhash.h:37:
../../third_party/nasm/include/compiler.h:249:21: error: static declaration=
 of
'mempcpy' follows non-static declaration
static inline void *mempcpy(void *dst, 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.

My crude and simple patch involve commenting out the offending prototype in
third_party/nasm/include/compiler.h. A better patch would be to ensure
HAVE_MEMPCPY is defined all the way.

Log file and patch will be attached soon.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262067-7788>