Bug 360844 - perlqt fails to build with GCC 6
Summary: perlqt fails to build with GCC 6
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-22 10:36 UTC by Petr Pisar
Modified: 2016-10-03 17:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Fix (1.24 KB, patch)
2016-03-22 10:37 UTC, Petr Pisar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2016-03-22 10:36:40 UTC
I encountered a build failure with GCC. Both git master code and Qt-0.96.0 on CPAN suffers from this problem:

/builddir/build/BUILD/Qt-0.96.0/qtcore/src/util.cpp:2248:59: error: cannot convert 'bool' to 'void*' in initialization
         static smokeperl_object nothis = { 0, 0, 0, false };
                                                           ^

This is because GCC 6 defaults to newer C++ standard that is stricter. Attached patch fixes it.

Reproducible: Always
Comment 1 Petr Pisar 2016-03-22 10:37:18 UTC
Created attachment 98020 [details]
Fix
Comment 2 Chris Burel 2016-10-03 17:54:41 UTC
I applied the patch from Petr in 4d05f40d.

http://commits.kde.org/perlqt/4d05f40d7e33b8becb57e309bec916e1caa58c45