Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610904 - [qt overlay] dev-qt/qdbus-5.8.0: error: ‘Q_DBUS_EXPORT’ does not name a type
Summary: [qt overlay] dev-qt/qdbus-5.8.0: error: ‘Q_DBUS_EXPORT’ does not name a type
Status: RESOLVED DUPLICATE of bug 599636
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:
Depends on:
Blocks:
 
Reported: 2017-02-25 17:45 UTC by Vasco Gervasi
Modified: 2017-04-06 04:52 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,33.77 KB, text/x-log)
2017-02-25 17:45 UTC, Vasco Gervasi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasco Gervasi 2017-02-25 17:45:38 UTC
Created attachment 465126 [details]
build.log

Hi all,
I am trying to update qdbus to 5.8.0 but I get a series of errors:

qdbus.cpp: At global scope:
qdbus.cpp:403:26: error: ‘QDBusConnectionInterface’ was not declared in this scope
 static bool globServices(QDBusConnectionInterface *bus, const QString &glob)
                          ^~~~~~~~~~~~~~~~~~~~~~~~
qdbus.cpp:403:52: error: ‘bus’ was not declared in this scope
 static bool globServices(QDBusConnectionInterface *bus, const QString &glob)
                                                    ^~~
qdbus.cpp:403:57: error: expected primary-expression before ‘const’
 static bool globServices(QDBusConnectionInterface *bus, const QString &glob)
                                                         ^~~~~
qdbus.cpp:403:76: error: expression list treated as compound expression in initializer [-fpermissive]
 static bool globServices(QDBusConnectionInterface *bus, const QString &glob)
                                                                            ^
qdbus.cpp:418:30: error: variable or field ‘printAllServices’ declared void
 static void printAllServices(QDBusConnectionInterface *bus)
                              ^~~~~~~~~~~~~~~~~~~~~~~~
qdbus.cpp:418:30: error: ‘QDBusConnectionInterface’ was not declared in this scope
qdbus.cpp:418:56: error: ‘bus’ was not declared in this scope
 static void printAllServices(QDBusConnectionInterface *bus)
                                                        ^~~
qdbus.cpp:403:13: warning: ‘globServices’ defined but not used [-Wunused-variable]
 static bool globServices(QDBusConnectionInterface *bus, const QString &glob)
             ^~~~~~~~~~~~
qdbus.cpp:201:13: warning: ‘void listAllInterfaces(const QString&, const QString&)’ defined but not used [-Wunused-function]
 static void listAllInterfaces(const QString &service, const QString &path)
             ^~~~~~~~~~~~~~~~~
qdbus.cpp:53:13: warning: ‘void showUsage()’ defined but not used [-Wunused-function]
 static void showUsage()
             ^~~~~~~~~
make: *** [Makefile:549: .obj/qdbus.o] Error 1

Maybe is releated to https://bugs.gentoo.org/show_bug.cgi?id=599636?

Thanks
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-02-25 22:17:12 UTC
What's the latest commit your overlay has?
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-02-25 22:26:03 UTC
(In reply to Michael Palimaka (kensington) from comment #1)
> What's the latest commit your overlay has?

Oops, ignore that, I misread the package this bug is filed against. I can reproduce.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-02-25 23:13:05 UTC
This (and the other bug) is caused because /usr/include/qt5/QtCore/qconfig.h contains: #define QT_NO_DBUS.
Comment 4 Stefan Böhmann 2017-02-27 18:26:38 UTC
I can confirm this bug.
Also that the problem can be solved by removing the QT_NO_DBUS entry from the qconfig.h file.
Comment 5 jospezial 2017-03-02 12:06:33 UTC
Duplicate of bug 599636
Comment 6 Vasco Gervasi 2017-03-03 18:43:11 UTC
Even with the latest update to qtdbus, I got same error.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2017-03-03 22:51:54 UTC
(In reply to Vasco Gervasi from comment #6)
> Even with the latest update to qtdbus, I got same error.

Could you please add which commit your overlay is at and attach /usr/include/qt5/QtCore/qconfig.h ?
Comment 8 Vasco Gervasi 2017-03-04 07:32:40 UTC
I just added the qt overlay and update all packages, so I should be on commit c337a21c46bcf100bcec37876aff54d3663c2236.

# cat /usr/include/qt5/QtCore/qconfig.h
#include <Gentoo/gentoo-qconfig.h>

#define QT_FEATURE_framework -1
#define QT_FEATURE_rpath -1
#define QT_FEATURE_accessibility 1
#define QT_FEATURE_shared 1
#define QT_COMPILER_SUPPORTS_SSE2 1
#define QT_FEATURE_debug_and_release -1
#define QT_FEATURE_simulator_and_device -1
#define QT_FEATURE_build_all -1
#define QT_FEATURE_c__11 1
#define QT_FEATURE_c__14 1
#define QT_FEATURE_c__1z 1
#define QT_FEATURE_concurrent 1
#define QT_NO_DBUS 
#define QT_FEATURE_force_asserts -1
#define QT_FEATURE_pkg_config 1
#define QT_LARGEFILE_SUPPORT 64
#define QT_VISIBILITY_AVAILABLE true
#define QT_REDUCE_RELOCATIONS true
#define QT_FEATURE_separate_debug_info -1
#define QT_FEATURE_static -1
#define QT_VERSION_STR "5.8.0"
#define QT_VERSION_MAJOR 5
#define QT_VERSION_MINOR 8
#define QT_VERSION_PATCH 0
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2017-04-06 04:52:56 UTC

*** This bug has been marked as a duplicate of bug 599636 ***