Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2023 19:32:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271034] textproc/groff: fix build with clang 16
Message-ID:  <bug-271034-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271034

            Bug ID: 271034
           Summary: textproc/groff: 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: bapt@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(bapt@FreeBSD.org)
          Assignee: bapt@FreeBSD.org

Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/groff's Makefile does not explicitly set its C++
standard, this leads to several errors:

  src/preproc/grn/hdb.cpp:38:15: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
  int DBGetType(register char *s);
                ^~~~~~~~~
  src/preproc/grn/hdb.cpp:64:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
    register ELT *temp;
    ^~~~~~~~~
  src/preproc/grn/hdb.cpp:83:8: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
  DBRead(register FILE *file)
         ^~~~~~~~~
  src/preproc/grn/hdb.cpp:85:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
    register int i;
    ^~~~~~~~~
  src/preproc/grn/hdb.cpp:86:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
    register int done;            /* flag for input exhausted */
    ^~~~~~~~~
  src/preproc/grn/hdb.cpp:87:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
    register double nx;           /* x holder so x is not set before orient=
ing
*/
    ^~~~~~~~~
  src/preproc/grn/hdb.cpp:212:11: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
  DBGetType(register char *s)
            ^~~~~~~~~

Add USE_CXXSTD=3Dgnu++98 to avoid these errors.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271034-7788>