[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:16:18 +0000
| Newsgroups | gmane.os.freebsd.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283492 --- Comment #9 from [email protected] --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a28798f49247eefdcee26258cf40071a8e0b8a8d commit a28798f49247eefdcee26258cf40071a8e0b8a8d Author: Robert Clausecker <[email protected]> AuthorDate: 2026-07-15 11:41:02 +0000 Commit: Robert Clausecker <[email protected]> CommitDate: 2026-07-16 14:15:14 +0000 devel/juce{,706}: fix build on armv7 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 devel/juce/Makefile | 1 - ...dules_juce__core_native_juce__BasicNativeHeaders.h (new) | 10 ++++++++++ ...les_juce__core_native_juce__SystemStats__linux.cpp (new) | 13 +++++++++++++ ...dules_juce__core_native_juce__BasicNativeHeaders.h (new) | 10 ++++++++++ ...les_juce__core_native_juce__SystemStats__linux.cpp (new) | 13 +++++++++++++ 5 files changed, 46 insertions(+), 1 deletion(-) -- You are receiving this mail because: You are the assignee for the bug.