mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 06:30:29 -04:00
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 == __y.first && __x.second == __y.second; | ~~~~~~~~~ ^ ~~~~~~~~~ /usr/include/c++/v1/__algorithm/find.h:34:41: note: in instantiation of function template specialization 'std::__1::operator==<const Auth_id, Auth_id, MYSQL_LEX_CSTRING, MYSQL_LEX_CSTRING>' requested here 34 | if (std::__invoke(__proj, *__first) == __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)); | ^ /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<std::__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) == 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. PR: 274464 Approved by: joneum (maintainer) MFH: 2023Q4 |
||
---|---|---|
.. | ||
extra-patch-scripts_CMakeLists.txt | ||
my.cnf.sample.in | ||
mysql-server.in | ||
patch-client_CMakeLists.txt | ||
patch-cmake_install_layout.cmake | ||
patch-cmake_os_DragonFly.cmake | ||
patch-cmake_os_FreeBSD.cmake | ||
patch-cmake_plugin.cmake | ||
patch-cmake_ssl.cmake | ||
patch-CMakeLists.txt | ||
patch-include_my__compare.h | ||
patch-include_my__stacktrace.h | ||
patch-include_my__thread__os__id.h | ||
patch-include_myisam.h | ||
patch-libmysql_CMakeLists.txt | ||
patch-libservices_CMakeLists.txt | ||
patch-man_CMakeLists.txt | ||
patch-mysys_my__default.cc | ||
patch-mysys_my__kdf.cc | ||
patch-plugin_password__validation_validate__password.cc | ||
patch-plugin_x_client_authentication_sha256__scramble__generator.cc | ||
patch-plugin_x_CMakeLists.txt | ||
patch-plugin_x_configure.cmake | ||
patch-router_src_harness_include_mysql_harness_net__ts_internet.h | ||
patch-router_src_harness_include_mysql_harness_net_ts_impl_kqueue_io_service.h | ||
patch-router_src_harness_src_CMakeLists.txt | ||
patch-router_src_harness_src_tls__client__context.cc | ||
patch-router_src_harness_src_tls__context.cc | ||
patch-router_src_harness_src_tls__server__context.cc | ||
patch-router_src_http_src_CMakeLists.txt | ||
patch-router_src_io_src_CMakeLists.txt | ||
patch-router_src_router_src_CMakeLists.txt | ||
patch-scripts_CMakeLists.txt | ||
patch-scripts_mysqld__safe.sh | ||
patch-sql_auth_sha2__password__common.cc | ||
patch-sql_auth_sql__authorization.cc | ||
patch-sql_conn__handler_socket__connection.cc | ||
patch-sql_mysqld.cc | ||
patch-sql_ssl__init__callback.cc | ||
patch-sql_sys__vars.cc | ||
patch-storage_innobase_include_srv0mon.h | ||
patch-storage_innobase_ut_crc32.cc | ||
patch-storage_myisam_mi__dynrec.cc | ||
patch-storage_temptable_include_temptable_lock_free_type.h | ||
patch-support-files_CMakeLists.txt | ||
patch-utilities_CMakeLists.txt | ||
patch-vio_viossl.cc | ||
patch-vio_viosslfactories.cc | ||
pkg-message.in |