[Bug 271030] devel/gperf: fix build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Apr 2023 18:44:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271030
Bug ID: 271030
Summary: devel/gperf: 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: dinoex@FreeBSD.org
Reporter: dim@FreeBSD.org
Assignee: dinoex@FreeBSD.org
Flags: maintainer-feedback?(dinoex@FreeBSD.org)
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because devel/gperf's Makefile does not explicitly set its C++ standard,
this leads to an error:
c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I. -c
./getline.cc
./getline.cc:58:7: error: ISO C++17 does not allow 'register' storage class
specifier [-Wregister]
register int c = getc (stream);
^~~~~~~~~
Add USE_CXXSTD=gnu++89 to avoid this error.
--
You are receiving this mail because:
You are the assignee for the bug.