[Bug 271055] graphics/libGLU: fix build with clang 16
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 271055] graphics/libGLU: fix build with clang 16"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 271055] graphics/libGLU: fix build with clang 16"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 271055] graphics/libGLU: fix build with clang 16"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 271055] graphics/libGLU: fix build with clang 16"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 271055] graphics/libGLU: fix build with clang 16"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 271055] graphics/libGLU: fix build with clang 16"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Apr 2023 20:34:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271055
Bug ID: 271055
Summary: graphics/libGLU: fix build with clang 16
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: x11@FreeBSD.org
Reporter: dim@FreeBSD.org
Flags: maintainer-feedback?(x11@FreeBSD.org)
Assignee: x11@FreeBSD.org
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because graphics/libGLU's Makefile does not explicitly set its C++ standard,
this leads to several errors:
../src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow
'register' storage class specifier [-Wregister]
register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
^~~~~~~~~
../src/libnurbs/internals/varray.cc:77:5: error: ISO C++17 does not allow
'register' storage class specifier [-Wregister]
register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
^~~~~~~~~
Upstream already noticed this, and committed
https://gitlab.freedesktop.org/mesa/glu/-/commit/b6c308172993 as a fix,
so add this as an additional patch, until the next version is released.
--
You are receiving this mail because:
You are the assignee for the bug.