[pkg-lxqt-devel] Bug#978214: lxqt-sudo: FTBFS: passworddialog.cpp:50:60: error: ‘QString::QString?=(const char*)=?UTF-8?Q?’ is private within this context

Lucas Nussbaum lucas at debian.org
Sat Dec 26 21:32:45 GMT 2020


Source: lxqt-sudo
Version: 0.14.1-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> /usr/bin/c++ -DLXQTSUDO=\"lxqt-sudo\" -DLXQTSUDO_LXSU=\"lxsu\" -DLXQTSUDO_LXSUDO=\"lxsudo\" -DLXQTSUDO_SU=\"su\" -DLXQTSUDO_SUDO=\"sudo\" -DLXQT_DATA_DIR=\"/usr/share\" -DLXQT_ETC_XDG_DIR=\"/etc/xdg\" -DLXQT_GRAPHICS_DIR=\"/usr/share/lxqt/graphics\" -DLXQT_MAJOR_VERSION=\"0\" -DLXQT_MINOR_VERSION=\"14\" -DLXQT_PATCH_VERSION=\"1\" -DLXQT_RELATIVE_SHARE_DIR=\"lxqt\" -DLXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=\"lxqt/translations\" -DLXQT_SHARE_DIR=\"/usr/share/lxqt\" -DLXQT_SHARE_TRANSLATIONS_DIR=\"/usr/share/lxqt/translations\" -DLXQT_VERSION=\"0.14.1\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_URL_CAST_FROM_STRING -DQT_SVG_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_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/lxqt -isystem /usr/include/lxqt/LXQt -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/qt5xdg -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/qt5xdgiconloader -isystem /usr/include/qt5xdgiconloader/3.4.0 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-exceptions -Wall -Wextra -Wchar-subscripts -Wno-long-long -Wpointer-arith -Wundef -Wformat-security -Wnon-virtual-dtor -Woverloaded-virtual -Wpedantic -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++14 -o CMakeFiles/lxqt-sudo.dir/main.cpp.o -c /<<PKGBUILDDIR>>/main.cpp
> In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/EWIEGA46WW/moc_passworddialog.cpp:10,
>                  from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/mocs_compilation.cpp:2:
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/EWIEGA46WW/../../../passworddialog.h:45:35: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
>    45 |             , Qt::WindowFlags f = 0);
>       |                                   ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
>                  from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/EWIEGA46WW/../../../passworddialog.h:31,
>                  from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/EWIEGA46WW/moc_passworddialog.cpp:10,
>                  from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_autogen/mocs_compilation.cpp:2:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here
>   123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
>       |                                                                                ^~~~~~
> In file included from /<<PKGBUILDDIR>>/passworddialog.cpp:28:
> /<<PKGBUILDDIR>>/passworddialog.h:45:35: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
>    45 |             , Qt::WindowFlags f = 0);
>       |                                   ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
>                  from /<<PKGBUILDDIR>>/passworddialog.h:31,
>                  from /<<PKGBUILDDIR>>/passworddialog.cpp:28:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here
>   123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
>       |                                                                                ^~~~~~
> In file included from /<<PKGBUILDDIR>>/sudo.cpp:29:
> /<<PKGBUILDDIR>>/passworddialog.h:45:35: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
>    45 |             , Qt::WindowFlags f = 0);
>       |                                   ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QObject:1,
>                  from /<<PKGBUILDDIR>>/sudo.h:31,
>                  from /<<PKGBUILDDIR>>/sudo.cpp:28:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here
>   123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
>       |                                                                                ^~~~~~
> /<<PKGBUILDDIR>>/passworddialog.cpp: In constructor ‘PasswordDialog::PasswordDialog(const QString&, const QString&, QWidget*, Qt::WindowFlags)’:
> /<<PKGBUILDDIR>>/passworddialog.cpp:50:60: error: ‘QString::QString(const char*)’ is private within this context
>    50 |     ui->iconL->setPixmap(QIcon::fromTheme("dialog-password").pixmap(64, 64));
>       |                                                            ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
>                  from /<<PKGBUILDDIR>>/passworddialog.h:31,
>                  from /<<PKGBUILDDIR>>/passworddialog.cpp:28:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> /<<PKGBUILDDIR>>/passworddialog.cpp:51:51: error: ‘QString::QString(const char*)’ is private within this context
>    51 |     setWindowIcon(QIcon::fromTheme("security-high"));
>       |                                                   ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
>                  from /<<PKGBUILDDIR>>/passworddialog.h:31,
>                  from /<<PKGBUILDDIR>>/passworddialog.cpp:28:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> [ 97%] Building CXX object CMakeFiles/lxqt-sudo.dir/LXQtAppTranslationLoader.cpp.o
> /usr/bin/c++ -DLXQTSUDO=\"lxqt-sudo\" -DLXQTSUDO_LXSU=\"lxsu\" -DLXQTSUDO_LXSUDO=\"lxsudo\" -DLXQTSUDO_SU=\"su\" -DLXQTSUDO_SUDO=\"sudo\" -DLXQT_DATA_DIR=\"/usr/share\" -DLXQT_ETC_XDG_DIR=\"/etc/xdg\" -DLXQT_GRAPHICS_DIR=\"/usr/share/lxqt/graphics\" -DLXQT_MAJOR_VERSION=\"0\" -DLXQT_MINOR_VERSION=\"14\" -DLXQT_PATCH_VERSION=\"1\" -DLXQT_RELATIVE_SHARE_DIR=\"lxqt\" -DLXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=\"lxqt/translations\" -DLXQT_SHARE_DIR=\"/usr/share/lxqt\" -DLXQT_SHARE_TRANSLATIONS_DIR=\"/usr/share/lxqt/translations\" -DLXQT_VERSION=\"0.14.1\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_URL_CAST_FROM_STRING -DQT_SVG_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lxqt-sudo_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/lxqt -isystem /usr/include/lxqt/LXQt -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/qt5xdg -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/qt5xdgiconloader -isystem /usr/include/qt5xdgiconloader/3.4.0 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-exceptions -Wall -Wextra -Wchar-subscripts -Wno-long-long -Wpointer-arith -Wundef -Wformat-security -Wnon-virtual-dtor -Woverloaded-virtual -Wpedantic -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++14 -o CMakeFiles/lxqt-sudo.dir/LXQtAppTranslationLoader.cpp.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/LXQtAppTranslationLoader.cpp
> make[3]: *** [CMakeFiles/lxqt-sudo.dir/build.make:210: CMakeFiles/lxqt-sudo.dir/passworddialog.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/lxqt-sudo_0.14.1-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-lxqt-devel mailing list