[pkg-lxqt-devel] Bug#941648: nm-tray FTBFS: error: invalid use of incomplete type ‘class QMetaEnum’

Helmut Grohne helmut at subdivi.de
Thu Oct 3 09:53:42 BST 2019


Source: nm-tray
Version: 0.4.3-1
Severity: serious
Tags: ftbfs

nm-tray fails to build from source in unstable using sbuild on amd64. A
build log ends with:

| [ 64%] Building CXX object CMakeFiles/nm-tray.dir/src/nmmodel.cpp.o
| /usr/bin/c++  -DNM_TRAY_VERSION=\"0.4.2\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_WIDGETS_LIB -DQT_XML_LIB -DTRANSLATION_DIR=\"/usr/share/nm-tray\" -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/nm-tray_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/NetworkManagerQt -isystem /usr/include/libnm -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/KF5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/KF5/ModemManagerQt -isystem /usr/include/ModemManager -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -O2 -g -DNDEBUG   -fPIC -std=gnu++11 -o CMakeFiles/nm-tray.dir/src/nmmodel.cpp.o -c /<<PKGBUILDDIR>>/src/nmmodel.cpp
| /<<PKGBUILDDIR>>/src/nmmodel.cpp: In member function ‘QVariant NmModel::dataRole(const QModelIndex&) const [with int role = 265]’:
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1041:141: error: invalid use of incomplete type ‘class QMetaEnum’
|  1041 |         auto m_enum = NetworkManager::Device::staticMetaObject.enumerator(NetworkManager::Device::staticMetaObject.indexOfEnumerator("Type"));
|       |                                                                                                                                             ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:49,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:46,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:43,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QAbstractItemModel:1,
|                  from /<<PKGBUILDDIR>>/src/nmmodel.h:26,
|                  from /<<PKGBUILDDIR>>/src/nmmodel.cpp:23:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:284:7: note: forward declaration of ‘class QMetaEnum’
|   284 | class QMetaEnum;
|       |       ^~~~~~~~~
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘Ppp’ not handled in switch [-Wswitch]
|  1046 |         switch (dev->type())
|       |                ^
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘OvsInterface’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘OvsPort’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘OvsBridge’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘Wpan’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘Lowpan’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘WireGuard’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1046:16: warning: enumeration value ‘WifiP2P’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp: In member function ‘void NmModel::activateConnection(const QModelIndex&)’:
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1527:28: warning: enumeration value ‘StaticWep’ not handled in switch [-Wswitch]
|  1527 |                     switch (sec_type)
|       |                            ^
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1527:28: warning: enumeration value ‘DynamicWep’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1527:28: warning: enumeration value ‘Leap’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1527:28: warning: enumeration value ‘WpaEap’ not handled in switch [-Wswitch]
| /<<PKGBUILDDIR>>/src/nmmodel.cpp:1527:28: warning: enumeration value ‘Wpa2Eap’ not handled in switch [-Wswitch]
| make[3]: *** [CMakeFiles/nm-tray.dir/build.make:167: CMakeFiles/nm-tray.dir/src/nmmodel.cpp.o] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[2]: *** [CMakeFiles/Makefile2:108: CMakeFiles/nm-tray.dir/all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[1]: *** [Makefile:133: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| dh_auto_build: cd obj-x86_64-linux-gnu && make -j1 "INSTALL=install --strip-program=true" returned exit code 2
| make: *** [debian/rules:9: build] Error 255
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Helmut



More information about the pkg-lxqt-devel mailing list