Bug 1087073

Summary: zbar FTBFS with GCC8
Product: [openSUSE] openSUSE Tumbleweed Reporter: Richard Biener <rguenther>
Component: X11 ApplicationsAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aloisio, fvogt, martin.liska
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1084649    

Description Richard Biener 2018-03-27 12:49:10 UTC
in openSUSE:Factory:Staging:Gcc7:DVD zbar FTBFS
Comment 1 Luigi Baldoni 2018-03-27 18:02:44 UTC
From: https://build.opensuse.org/public/build/openSUSE:Factory:Staging:Gcc7:DVD/standard/x86_64/zbar/_log

         /usr/include/qt5/QtGui/qtransform.h: In member function 'QTransform& QTransform::operator=(QTransform&&)':
        /usr/include/qt5/QtGui/qtransform.h:81:46: error: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class QTransform' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
              { memcpy(this, &other, sizeof(QTransform)); return *this; }
                                                       ^
         /usr/include/qt5/QtGui/qtransform.h:57:20: note: 'class QTransform' declared here
          class Q_GUI_EXPORT QTransform
                             ^~~~~~~~~~

Couldn't this be a Qt5 problem?
Comment 2 Fabian Vogt 2018-03-27 18:26:24 UTC
Yup, the headers produce UB to keep the ABI compatible.

They "fixed" it by doing a static cast to void* instead. Yuck.

Oh well, patch applied and submitted to TW.
Comment 3 Swamp Workflow Management 2018-03-27 19:00:10 UTC
This is an autogenerated message for OBS integration:
This bug (1087073) was mentioned in
https://build.opensuse.org/request/show/591726 Factory / libqt5-qtbase