In ports 0df8d006f641b ("Fix build on 14"), graphics/opendx was tied to clang 15. Inspecting the configure script a bit, it turns out that failures were due to clang 19 defaulting to -std=gnu++17 for C++ sources. (The configure script tries to define a macro 'byte' which is a reserved identifier in the C++17 standard library). Use USE_CXXSTD=gnu++11 to make it compile with base clang (19) on all currently supported branches. Remove setting of CPPFLAGS, since that will not work with C sources, if -std=gnu++11 is added to CXXFLAGS.
Created attachment 266793 [details] graphics/opendx: make it build with clang 19 and higher
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=42e21c547c888199ab318786c40d3838dc6d012d commit 42e21c547c888199ab318786c40d3838dc6d012d Author: Stephen Montgomery-Smith <stephen@FreeBSD.org> AuthorDate: 2026-01-04 03:39:38 +0000 Commit: Stephen Montgomery-Smith <stephen@FreeBSD.org> CommitDate: 2026-01-04 03:39:38 +0000 graphics/opendx: Make it build with clang 19 - Make it build with clang 19 and higher. - bump portrevision. PR: 292168 Reported by: dim@FreeBSD.org graphics/opendx/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
Committed. Thank you for this great PR.