[Bug 292168] graphics/opendx: make it build with clang 19 and higher

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Jan 2026 23:27:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292168

            Bug ID: 292168
           Summary: graphics/opendx: make it build with clang 19 and
                    higher
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: stephen@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(stephen@FreeBSD.org)
          Assignee: stephen@FreeBSD.org

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.

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