Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 2023 14:01:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 274464] databases/mysql80-server: fix build with clang/libc++ 17
Message-ID:  <bug-274464-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 274464
           Summary: databases/mysql80-server: fix build with clang/libc++
                    17
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

Building databases/mysql80-server with clang and libc++ 17 results in
the following errors:

  In file included from
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.33/sql/auth/sql_=
authorization.cc:23:
  In file included from
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.33/sql/auth/sql_=
authorization.h:26:
  In file included from /usr/include/c++/v1/functional:515:
  In file included from /usr/include/c++/v1/__algorithm/search.h:23:
  /usr/include/c++/v1/__utility/pair.h:613:22: error: invalid operands to
binary expression ('const Auth_id' and 'const MYSQL_LEX_CSTRING')
    613 |     return __x.first =3D=3D __y.first && __x.second =3D=3D __y.se=
cond;
        |            ~~~~~~~~~ ^  ~~~~~~~~~
  /usr/include/c++/v1/__algorithm/find.h:34:41: note: in instantiation of
function template specialization 'std::__1::operator=3D=3D<const Auth_id, A=
uth_id,
MYSQL_LEX_CSTRING, MYSQL_LEX_CSTRING>' requested here
     34 |     if (std::__invoke(__proj, *__first) =3D=3D __value)
        |                                         ^
  /usr/include/c++/v1/__algorithm/find.h:72:21: note: in instantiation of
function template specialization
'std::__find_impl<std::__hash_map_iterator<std::__hash_iterator<std::__hash=
_node<std::__hash_value_type<Auth_id,
Auth_id>, void *> *>>,
std::__hash_map_iterator<std::__hash_iterator<std::__hash_node<std::__hash_=
value_type<Auth_id,
Auth_id>, void *> *>>, std::pair<MYSQL_LEX_CSTRING, MYSQL_LEX_CSTRING>,
std::__identity>' requested here
     72 |       __first, std::__find_impl(std::__unwrap_iter(__first),
std::__unwrap_iter(__last), __value, __proj));
        |                     ^
=20
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.33/sql/auth/sql_=
authorization.cc:6591:11:
note: in instantiation of function template specialization
'std::find<std::__hash_map_iterator<std::__hash_iterator<std::__hash_node<s=
td::__hash_value_type<Auth_id,
Auth_id>, void *> *>>, std::pair<MYSQL_LEX_CSTRING, MYSQL_LEX_CSTRING>>'
requested here
   6591 |       if (find(role_it, role_end, *it) =3D=3D role_end) {
        |           ^
  [... long list of candidates elided ...]

This is because an equality operator for Role_id and LEX_CSTRING is
missing. Add such an operator to work around the problem.

--=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-274464-7788>