Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599636 - [qt overlay] >=dev-qt/qtdbus-5.8.0 - src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:83:8: error: ‘QDBusIntrospection’ does not name a type
Summary: [qt overlay] >=dev-qt/qtdbus-5.8.0 - src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 607420 610904 614722 614724 614986 615010 (view as bug list)
Depends on:
Blocks: 625258
  Show dependency tree
 
Reported: 2016-11-13 11:02 UTC by jospezial
Modified: 2017-08-06 14:14 UTC (History)
11 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2016-11-13 11:02:03 UTC
* Running emake in src/tools/qdbusxml2cpp
make -j5 
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -std=c++1z -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp -I. -I../../../include/QtDBus/5.8.0 -I../../../include/QtDBus/5.8.0/QtDBus -I../../../include -I../../../include/QtDBus -isystem /usr/include/qt5/QtCore/5.8.0 -isystem /usr/include/qt5/QtCore/5.8.0/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I.moc -I/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/mkspecs/linux-g++ -o .obj/qdbusxml2cpp.o /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:83:8: error: ‘QDBusIntrospection’ does not name a type
 static QDBusIntrospection::Interfaces readInput()
        ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:29: error: variable or field ‘cleanInterfaces’ declared void
 static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces)
                             ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:29: error: ‘QDBusIntrospection’ has not been declared
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:61: error: ‘interfaces’ was not declared in this scope
 static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces)
                                                             ^~~~~~~~~~
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:60:13: warning: ‘includeMocs’ defined but not used [-Wunused-variable]
 static bool includeMocs;
             ^~~~~~~~~~~
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:59:13: warning: ‘verbose’ defined but not used [-Wunused-variable]
 static bool verbose;
             ^~~~~~~
/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:58:13: warning: ‘skipNamespaces’ defined but not used [-Wunused-variable]
 static bool skipNamespaces;
             ^~~~~~~~~~~~~~
make: *** [Makefile:567: .obj/qdbusxml2cpp.o] Error 1
 * ERROR: dev-qt/qtdbus-5.8.9999::qt failed (compile phase):
 *   emake failed
Comment 1 jospezial 2016-11-13 16:41:07 UTC
No problems with dev-qt/qtdbus-5.7.9999
Comment 2 Davide Pesavento gentoo-dev 2016-11-19 16:36:24 UTC
5.8.9999 and 5.9999 are completely broken, the configure system was completely rewritten, don't even try.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-01-25 19:41:17 UTC
If I understand correctly, src/tools/qdbusxml2cpp qdbusxml2cpp.cpp includes <private/qdbusintrospection_p.h>. That resolves to ../../../include/QtDBus/5.8.0/QtDBus/private/qdbusintrospection_p.h which contains #include "../../../../../src/dbus/qdbusintrospection_p.h" which I guess is valid for src/dbus but not src/tools.
Comment 4 Davide Pesavento gentoo-dev 2017-01-28 00:01:41 UTC
*** Bug 607420 has been marked as a duplicate of this bug. ***
Comment 5 swine 2017-01-28 04:13:01 UTC
Confirm with 5.8.0.
g++ -c -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -std=c++1z -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../include/QtDBus/5.8.0 -I../../../include/QtDBus/5.8.0/QtDBus -I../../../include -I../../../include/QtDBus -isystem /usr/include/qt5/QtCore/5.8.0 -isystem /usr/include/qt5/QtCore/5.8.0/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/qdbusxml2cpp.o qdbusxml2cpp.cpp
qdbusxml2cpp.cpp:83:8: error: ‘QDBusIntrospection’ does not name a type
 static QDBusIntrospection::Interfaces readInput()
        ^
qdbusxml2cpp.cpp:105:29: error: variable or field ‘cleanInterfaces’ declared void
 static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces)
                             ^
qdbusxml2cpp.cpp:105:29: error: ‘QDBusIntrospection’ has not been declared
qdbusxml2cpp.cpp:105:61: error: ‘interfaces’ was not declared in this scope
 static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces)
                                                             ^
qdbusxml2cpp.cpp:58:13: warning: ‘skipNamespaces’ defined but not used [-Wunused-variable]
 static bool skipNamespaces;
             ^
qdbusxml2cpp.cpp:59:13: warning: ‘verbose’ defined but not used [-Wunused-variable]
 static bool verbose;
             ^
qdbusxml2cpp.cpp:60:13: warning: ‘includeMocs’ defined but not used [-Wunused-variable]
 static bool includeMocs;
             ^
make: *** [Makefile:571: .obj/qdbusxml2cpp.o] Error 1
Comment 6 Eugene Shalygin 2017-01-31 08:23:03 UTC
Since there is no Qt 5.8 tracker bug, my two cents and maybe this saves you a minute: to build qtsql we need a patch from QTBUG-58532. SSE/AVX tests were failing in my build until compiler flags were passed to configure via QMAKE_CXXFLAGS command line arg (QTBUG-58511). One needs an updated patch for webengine and ICU (I took the one from Arch). And qtwebengine was using headers from already installed instance, so had to uninstall it to compile the new version.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2017-02-25 10:42:42 UTC
I've added a terrible hack to make this build again. I've spent a lot of time reducing this hack as much as possible to minimise impact on the build and to assist in finding a proper solution later.

https://gitweb.gentoo.org/proj/qt.git/commit/?id=0339b82dc658d36fe2a50dde050e11d530a075bd
Comment 8 Michael Palimaka (kensington) gentoo-dev 2017-02-25 23:17:02 UTC
This (and the other bug) is caused because /usr/include/qt5/QtCore/qconfig.h contains: #define QT_NO_DBUS.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-02-25 23:30:18 UTC
This used to work fine because /usr/include/qt5/QtCore/qconfig.h used to look like this:

> #if defined(QT_NO_DBUS) && defined(QT_DBUS)
> # undef QT_NO_DBUS
> #elif !defined(QT_NO_DBUS) && !defined(QT_DBUS)
> # define QT_NO_DBUS
> #endif

and now it records the defines unconditionally.
Comment 10 Michael Palimaka (kensington) gentoo-dev 2017-02-26 00:16:04 UTC
pesa, any thoughts about how we might solve this? I've thought of a couple of potential options, like restoring the conditional defines in QtCore/qconfig.h, or making qt5_regenerate_global_qconfigs allow for additive gentoo-qconfig.h like qconfig.pri.
Comment 11 Davide Pesavento gentoo-dev 2017-04-06 04:51:25 UTC
*** Bug 614724 has been marked as a duplicate of this bug. ***
Comment 12 Davide Pesavento gentoo-dev 2017-04-06 04:51:59 UTC
*** Bug 614722 has been marked as a duplicate of this bug. ***
Comment 13 Davide Pesavento gentoo-dev 2017-04-06 04:52:56 UTC
*** Bug 610904 has been marked as a duplicate of this bug. ***
Comment 14 Andreas Sturmlechner gentoo-dev 2017-04-08 11:32:35 UTC
*** Bug 614986 has been marked as a duplicate of this bug. ***
Comment 15 Andreas Sturmlechner gentoo-dev 2017-04-08 18:54:16 UTC
*** Bug 615010 has been marked as a duplicate of this bug. ***
Comment 16 Davide Pesavento gentoo-dev 2017-04-24 01:06:10 UTC
I just merged a better workaround for this issue. Let me know if it works as expected.

https://github.com/gentoo/qt/commit/65a3a886f9bb48643053af1c4ce282d154f159ae
Comment 17 Vasco Gervasi 2017-04-24 18:28:07 UTC
Thank you very much.

Latest commit make it emerge.
Comment 18 josef.95 2017-04-25 01:39:13 UTC
(In reply to Davide Pesavento from comment #16)
> I just merged a better workaround for this issue. Let me know if it works as
> expected.
> 
> https://github.com/gentoo/qt/commit/65a3a886f9bb48643053af1c4ce282d154f159ae

Yes, builds and works fine for me,
tested with 5.8.9999 and 5.9.9999

Thanks! :)