Bug 360844

Summary: perlqt fails to build with GCC 6
Product: [Unmaintained] bindings Reporter: Petr Pisar <ppisar>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: chrisburel, rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Fix

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