Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607442 - >=dev-db/mysql-connector-c++-1.1.8 compiles only with >=dev-db/mysql-connector-c-6.1.8 (not in portage tree)
Summary: >=dev-db/mysql-connector-c++-1.1.8 compiles only with >=dev-db/mysql-connect...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-28 05:26 UTC by Oleh
Modified: 2017-01-29 19:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2017-01-28 05:26:10 UTC
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
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-01-28 23:26:31 UTC
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
Comment 2 Sander Sweers 2017-01-29 16:03:25 UTC
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.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2017-01-29 19:35:53 UTC
(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.