Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 634514

Summary: dev-db/mysql-5.6.37 with sys-devel/gcc-7.2.0 - .../work/mysql/sql-common/client_authentication.cc:87:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Product: Gentoo Linux Reporter: Christian Strahl <c.a.strahl>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: Adrian.Bassett, hydrapolic, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=618054
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617524    
Attachments: build.log
mysql-5.6.37-gcc7.patch

Description Christian Strahl 2017-10-17 07:28:03 UTC
dev-db/mysql-5.6.37 fails to build with gcc-7.2.0

work/mysql/sql-common/client_authentication.cc:87:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
       mysql->options.extension->server_public_key_path != '\0')
                                                           ^~~~


Reproducible: Always
Comment 1 Christian Strahl 2017-10-17 07:31:49 UTC
Created attachment 498942 [details]
build.log
Comment 2 Christian Strahl 2017-10-17 07:33:58 UTC
Created attachment 498944 [details, diff]
mysql-5.6.37-gcc7.patch

the attached patch fixes this bug, please add it to the ebuild
Comment 3 Christian Strahl 2017-10-17 07:37:50 UTC
This is the same bug as in #618054, but for a different package.

The attached patch works for both packages, because the codebase seems to be the same.
Comment 4 Piotr Stachura 2017-10-20 05:54:16 UTC
Issue and fix confirmed on dev-db/mysql-5.6.38
Comment 5 Brian Evans (RETIRED) gentoo-dev 2017-11-20 21:04:00 UTC
*** Bug 638256 has been marked as a duplicate of this bug. ***
Comment 6 Larry the Git Cow gentoo-dev 2017-11-21 15:27:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6a3a38050e112302534fa1392dc5649ca3d4f36

commit c6a3a38050e112302534fa1392dc5649ca3d4f36
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2017-11-21 15:26:43 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2017-11-21 15:26:43 +0000

    dev-db/mysql: Fix building 5.6.38 on gcc 7
    
    Closes: https://bugs.gentoo.org/634514
    Package-Manager: Portage-2.3.15, Repoman-2.3.6

 dev-db/mysql/Manifest            | 1 +
 dev-db/mysql/mysql-5.6.38.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)