Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2023 20:29:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271054] devel/kyua: fix build with clang 16
Message-ID:  <bug-271054-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 271054
           Summary: devel/kyua: 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: jmmv@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: jmmv@FreeBSD.org
             Flags: maintainer-feedback?(jmmv@FreeBSD.org)

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

  In file included from cli/cmd_about.cpp:29:
  In file included from ./cli/cmd_about.hpp:35:
  ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace
'std'
  typedef std::auto_ptr< cli_command > cli_command_ptr;
          ~~~~~^
  In file included from cli/cmd_db_exec.cpp:29:
  In file included from ./cli/cmd_db_exec.hpp:37:
  ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace
'std'
  typedef std::auto_ptr< cli_command > cli_command_ptr;
          ~~~~~^
  In file included from cli/cmd_db_migrate.cpp:29:
  In file included from ./cli/cmd_db_migrate.hpp:35:
  ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace
'std'
  typedef std::auto_ptr< cli_command > cli_command_ptr;
          ~~~~~^
  In file included from cli/cmd_config.cpp:29:
  In file included from ./cli/cmd_config.hpp:35:
  ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace
'std'
  typedef std::auto_ptr< cli_command > cli_command_ptr;
          ~~~~~^

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-271054-7788>