[Bug 283492] Please rename the "mb" macro in /usr/include/machine/atomic.h on arm7 to prevent collisions with mb variables in various projects
[email protected] Thu, 16 Jul 2026 14:17:23 +0000
| Newsgroups | gmane.os.freebsd.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283492 --- Comment #13 from [email protected] --- A commit in branch 2026Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=75d72a7f27c1cd1ac34e2f567c73c022fae30b73 commit 75d72a7f27c1cd1ac34e2f567c73c022fae30b73 Author: Robert Clausecker <[email protected]> AuthorDate: 2026-07-15 09:48:16 +0000 Commit: Robert Clausecker <[email protected]> CommitDate: 2026-07-16 14:16:37 +0000 audio/libopenshot-audio: patch armv7 build issue properly juce_BasicNativeHeaders.h pulls in <sys/user.h> which in turn pulls in <machine/atomic.h> transitively, which then defines a mb macro polluting the name space. <sys/user.h> is only needed for struct kproc_info, which is only needed in juce_SystemStats_linux.cpp to check for P_TRACED. Remove <sys/user.h> from juce_BasicNativeHeaders.h and only include it in juce_SystemStats_linux.cpp to avoid namespace pollution issues. I'll try to tackle the other ports using or bundling JUCE in a future commit. As always, please try to unbundle dependencies if possible. Approved by: portmgr (build fix blanket) MFH: 2026Q3 PR: 283492 (cherry picked from commit 3a7ad3ed54851dd27d5ed8a65c8aa77b246c5472) ...LibraryCode_modules_juce__core_juce__core.cpp (gone) | 14 -------------- ...s_juce__core_native_juce__BasicNativeHeaders.h (new) | 10 ++++++++++ ...dules_juce__core_native_juce__SystemStats__linux.cpp | 17 ++++++++++++++--- 3 files changed, 24 insertions(+), 17 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.