Page MenuHomeFreeBSD

multimedia/ringrtc: Fix build on recent main
ClosedPublic

Authored by jrm on Jul 20 2024, 10:40 PM.
Tags
None
Referenced Files
F103055039: D46053.diff
Wed, Nov 20, 8:34 AM
F103043050: D46053.diff
Wed, Nov 20, 4:47 AM
Unknown Object (File)
Tue, Nov 19, 7:07 AM
Unknown Object (File)
Tue, Nov 19, 7:06 AM
Unknown Object (File)
Thu, Nov 7, 8:20 PM
Unknown Object (File)
Wed, Nov 6, 1:57 PM
Unknown Object (File)
Sat, Oct 26, 7:26 PM
Unknown Object (File)
Oct 18 2024, 5:13 AM
Subscribers

Details

Summary

After src snapshot 0c47b9c211e, the build began failing with

../../third_party/nasm/include/compiler.h:249:21: error: static

declaration of 'mempcpy' follows non-static declaration
249 | static inline void *mempcpy(void *dst, const void *src, size_t n)
    |                     ^

/usr/include/string.h:71:8: note: previous declaration is here

71 | void    *(mempcpy)(void * __restrict,
               const void * __restrict, size_t);

Fix the build by restoring a default definition of HAVE_MEMPCPY since
we have had mempcpy() since 13.1.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 58746
Build 55634: arc lint + arc unit

Event Timeline

jrm requested review of this revision.Jul 20 2024, 10:40 PM
jrm created this revision.

All supported releases have mempcpy, so it's not clear why this was needed in the first place. I suspect something similar is needed in www/qt6-webengine as well; similar breakage was observed in print/qt6-pdf by @netchild

This revision is now accepted and ready to land.Jul 21 2024, 3:38 AM
This revision was automatically updated to reflect the committed changes.