As in summary, this is sad that such careless bumps not checked for upstream requirements. 1.1.8 will need mysql-connector-c-6.1.8 or newer: "You must use either a General Availability version of MySQL 5.7 (5.7.9 or higher) or Connector/C 6.1.8 or higher. Set the MYSQL_DIR CMake option appropriately at configuration time as necessary." Reproducible: Always Actual Results: c++-1.1.8_build/cppconn -I/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8/cppconn -I/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8_build/driver/nativeapi -DNDEBUG -march=native -O2 -pipe -fno-strict-aliasing -Wall -fPIC -Woverloaded-virtual -DNDEBUG -march=native -O2 -pipe -fno-strict-aliasing -o CMakeFiles/mysqlcppconn-static.dir/mysql_resultset.cpp.o -c /var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8/driver/mysql_resultset.cpp [01m[K/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8/driver/mysql_resultbind.cpp:[m[K In function ‘[01m[Ksql::mysql::st_buffer_size_type sql::mysql::allocate_buffer_for_field(const MYSQL_FIELD*)[m[K’: [01m[K/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8/driver/mysql_resultbind.cpp:90:10:[m[K [01;31m[Kerror: [m[K‘[01m[KMYSQL_TYPE_JSON[m[K’ was not declared in this scope case MYSQL_TYPE_JSON: [01;32m[K ^[m[K driver/CMakeFiles/mysqlcppconn-static.dir/build.make:302: recipe for target 'driver/CMakeFiles/mysqlcppconn-static.dir/mysql_resultbind.cpp.o' failed make[2]: *** [driver/CMakeFiles/mysqlcppconn-static.dir/mysql_resultbind.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8_build' CMakeFiles/Makefile2:142: recipe for target 'driver/CMakeFiles/mysqlcppconn-static.dir/all' failed make[1]: *** [driver/CMakeFiles/mysqlcppconn-static.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8_build' Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 [31;01m*[0m ERROR: dev-db/mysql-connector-c++-1.1.8::gentoo failed (compile phase): [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=dev-db/mysql-connector-c++-1.1.8::gentoo'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-db/mysql-connector-c++-1.1.8::gentoo'`. [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8_build' [31;01m*[0m S: '/var/tmp/portage/dev-db/mysql-connector-c++-1.1.8/work/mysql-connector-c++-1.1.8' https://bugs.mysql.com/bug.php?id=80539 https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source-prerequisites.html
Restricted version of mysql-connector-c which fails to compile under a certain version. MariaDB and MySQL 5.6 were patched to work and compile fine
This is not properly fixed, mysql-connector-c-1.1.8 is still not in the tree and instead of a build failure we now are greeted with a unresolvable blocker. The proper solution was to also mask mysql-connector-c++-1.1.8 until the equivalent C connector version was added.
(In reply to Sander Sweers from comment #2) > This is not properly fixed, mysql-connector-c-1.1.8 is still not in the tree > and instead of a build failure we now are greeted with a unresolvable > blocker. The proper solution was to also mask mysql-connector-c++-1.1.8 > until the equivalent C connector version was added. I'll try to add this new version soon.