Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449362 - app-admin/keepassx - In member function ‘void KeepassMainWindow::OnShutdown(QSessionManager&)’: mainwindow.cpp:1424:13: error: invalid use of incomplete type ‘struct QSessionManager’
Summary: app-admin/keepassx - In member function ‘void KeepassMainWindow::OnShutdown(Q...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 404325 413789 435594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-30 22:47 UTC by gentoobugs
Modified: 2013-01-02 01:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info output + build log + make.conf (keepassx.txt,13.89 KB, text/plain)
2012-12-30 22:47 UTC, gentoobugs
Details
qt-gui-qconfig.pri (qt-gui-qconfig.pri,190 bytes, text/plain)
2013-01-01 14:54 UTC, gentoobugs
Details
/usr/share/qt4/mkspecs/qconfig.pri (qconfig.pri,731 bytes, text/plain)
2013-01-02 00:34 UTC, gentoobugs
Details
/usr/share/qt4/mkspecs/gentoo/qconfig.pri (qconfig2.pri,695 bytes, text/plain)
2013-01-02 00:34 UTC, gentoobugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoobugs 2012-12-30 22:47:39 UTC
Created attachment 333806 [details]
emerge info output + build log + make.conf

KeePassX doesn't compile for some reason.

qt-gui compiled with dbus flag as advised in thread: http://forums.gentoo.org/viewtopic-p-7181782.html


[ebuild  N     ] app-admin/keepassx-0.4.3  USE="-debug -pch"
[ebuild   R    ] x11-libs/qt-gui-4.8.4:4  USE="accessibility cups dbus exceptions gif glib xv (-aqua) -c++0x -debug -egl -gtkstyle -mng -nas -nis -pch -qt3support -tiff -trace -xinerama"


mainwindow.cpp: In member function ‘void KeepassMainWindow::OnShutdown(QSessionManager&)’:
mainwindow.cpp:1424:13: error: invalid use of incomplete type ‘struct QSessionManager’
/usr/include/qt4/QtGui/qapplication.h:72:7: error: forward declaration of ‘struct QSessionManager’
x86_64-pc-linux-gnu-g++ -c -march=core2 -O2 -pipe -include keepassx.h -Wall -W -Wno-sign-compare -D_REENTRANT -DAUTOTY$
make[1]: *** [../build/mainwindow.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/app-admin/keepassx-0.4.3/work/keepassx-0.4.3/src'
make: *** [sub-src-make_default] Error 2
 * ERROR: app-admin/keepassx-0.4.3 failed (compile phase):
 *   emake failed
Comment 1 Davide Pesavento gentoo-dev 2012-12-31 21:32:01 UTC
Please post the output of:
  grep -r "QT_CONFIG.*+=.*x11sm" /usr/share/qt4/mkspecs
Comment 2 gentoobugs 2012-12-31 22:48:10 UTC
grep -r "QT_CONFIG.*+=.*x11sm" /usr/share/qt4/mkspecs

outputs nothing. There's simply no output.
Comment 3 Davide Pesavento gentoo-dev 2013-01-01 09:49:41 UTC
Thanks.
Now please attach your /usr/share/qt4/mkspecs/gentoo/qt-gui-qconfig.pri
Comment 4 gentoobugs 2013-01-01 14:54:53 UTC
Created attachment 333944 [details]
qt-gui-qconfig.pri
Comment 5 Davide Pesavento gentoo-dev 2013-01-02 00:23:30 UTC
Please attach also /usr/share/qt4/mkspecs/gentoo/qconfig.pri
and /usr/share/qt4/mkspecs/qconfig.pri
Comment 6 gentoobugs 2013-01-02 00:34:26 UTC
Created attachment 334002 [details]
/usr/share/qt4/mkspecs/qconfig.pri
Comment 7 gentoobugs 2013-01-02 00:34:50 UTC
Created attachment 334004 [details]
/usr/share/qt4/mkspecs/gentoo/qconfig.pri
Comment 8 Davide Pesavento gentoo-dev 2013-01-02 01:01:11 UTC
Ok, found the bug.
In qt-gui-4.7.4-r1 we added a definition of pkg_postinst() in the ebuild but we forgot to call the eclass function qt4-build_pkg_postinst(), as a consequence generate_qconfigs() isn't executed and qconfig.pri doesn't get properly updated.
Comment 9 gentoobugs 2013-01-02 01:09:12 UTC
Nice to hear it. When can we expect a patch/fix?
Comment 10 Davide Pesavento gentoo-dev 2013-01-02 01:19:31 UTC
Now fixed in cvs. Please sync in a couple of hours and rebuild qt-gui.
Thanks a lot for your help debugging the issue!
Comment 11 Davide Pesavento gentoo-dev 2013-01-02 01:20:35 UTC
*** Bug 404325 has been marked as a duplicate of this bug. ***
Comment 12 Davide Pesavento gentoo-dev 2013-01-02 01:20:58 UTC
*** Bug 435594 has been marked as a duplicate of this bug. ***
Comment 13 Davide Pesavento gentoo-dev 2013-01-02 01:25:40 UTC
*** Bug 413789 has been marked as a duplicate of this bug. ***