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

Bug 660932

Summary: dev-util/qdevicemonitor-1.0.1 : ui/MainWindow.cpp:166:33: error: invalid use of incomplete type const class QTabBar
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Alexander Lopatin <alopatindev>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/9213
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 653646    
Attachments: emerge-info.txt
dev-util:qdevicemonitor-1.0.1:20180711-054644.log
emerge-history.txt
environment
etc.portage.tbz2
qdevicemonitor-1.0.1-qt-5.11.patch
qdevicemonitor-1.0.1-r1

Description Toralf Förster gentoo-dev 2018-07-11 16:48:15 UTC
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -Werror -Wfatal-errors -pedantic-errors -pedantic -Wextra -Wall -O3 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEBUG -DVERSION=\"1.0.1\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o MainWindow.o ui/MainWindow.cpp
ui/MainWindow.cpp: In member function ‘virtual void MainWindow::mouseReleaseEvent(QMouseEvent*)’:
ui/MainWindow.cpp:166:33: error: invalid use of incomplete type ‘const class QTabBar’
         const QPoint mousePos = tabBar.mapFrom(this, event->pos());
                                 ^~~~~~
compilation terminated due to -Wfatal-errors.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_20180706-210011

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.7 (fallback)
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-util/qdevicemonitor
[ebuild  N    ] dev-util/qdevicemonitor-1.0.1
Comment 1 Toralf Förster gentoo-dev 2018-07-11 16:48:18 UTC
Created attachment 539182 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-07-11 16:48:21 UTC
Created attachment 539184 [details]
dev-util:qdevicemonitor-1.0.1:20180711-054644.log
Comment 3 Toralf Förster gentoo-dev 2018-07-11 16:48:24 UTC
Created attachment 539186 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-07-11 16:48:27 UTC
Created attachment 539188 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-07-11 16:48:30 UTC
Created attachment 539190 [details]
etc.portage.tbz2
Comment 6 Alexander Lopatin 2018-07-13 10:14:14 UTC
Created attachment 539360 [details, diff]
qdevicemonitor-1.0.1-qt-5.11.patch
Comment 7 Alexander Lopatin 2018-07-13 10:16:27 UTC
Created attachment 539362 [details]
qdevicemonitor-1.0.1-r1

Thanks for reporting this issue! I've attached a patch and updated ebuild.
Comment 8 Andreas Sturmlechner gentoo-dev 2018-07-13 14:13:12 UTC
Did you submit this change upstream already?
Comment 9 Larry the Git Cow gentoo-dev 2018-07-14 13:13:44 UTC
The bug has been closed via the following commit(s):

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

commit e0c9976e13d4c193d2c849f5fc051ec64f35ca39
Author:     Alexander Lopatin <alopatindev@gmail.com>
AuthorDate: 2018-07-14 11:49:25 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-07-14 13:13:27 +0000

    dev-util/qdevicemonitor: fix Qt 5.11 specific issue and crash
    
    Closes: https://bugs.gentoo.org/660932
    Package-Manager: Portage-2.3.40, Repoman-2.3.9
    Closes: https://github.com/gentoo/gentoo/pull/9213

 ...cemonitor-1.0.1-crash-after-fresh-install.patch | 26 +++++++++++
 .../files/qdevicemonitor-1.0.1-qt-5.11.patch       | 24 ++++++++++
 .../qdevicemonitor/qdevicemonitor-1.0.1-r1.ebuild  | 51 ++++++++++++++++++++++
 3 files changed, 101 insertions(+)