| Bug #81317 | MySQL 5.7.12 does not compile under GCC 6.1.0 | ||
|---|---|---|---|
| Submitted: | 5 May 2016 2:30 | Modified: | 5 May 2016 15:11 |
| Reporter: | Joel Bion | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
| Version: | 5.7.12 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
[5 May 2016 5:34]
MySQL Verification Team
https://bugs.mysql.com/bug.php?id=80996
[5 May 2016 15:11]
MySQL Verification Team
Thank you for the bug report. Duplicate of bug pointed by Shane.

Description: The failure is in client/auth_utils.cc I believe your problem is trying to add explicit typing to a call to make_pair - often one lets make_pair figure out the typing. The patch I used to get past the issue is simple and included in the 'suggested fix' section: How to repeat: Compile MySQL with GCC 6.1.0 Suggested fix: diff -Naur oldclient/auth_utils.cc client/auth_utils.cc --- oldclient/auth_utils.cc 2016-03-28 11:06:12.000000000 -0700 +++ client/auth_utils.cc 2016-05-04 17:36:41.775946563 -0700 @@ -61,7 +61,7 @@ getline(sin, option_value); trim(&option_value); if (option_name.length() > 0) - options->insert(make_pair<string, string >(option_name, option_value)); + options->insert(make_pair(option_name, option_value)); } return ALL_OK; } catch(...)