[pkg-lxqt-devel] Bug#978168: obconf-qt: FTBFS: maindialog.cpp:36:51: error: ‘QString::QString?=(const char*)=?UTF-8?Q?’ is private within this context

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


Source: obconf-qt
Version: 0.14.1-1
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):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DOBCONFQT_VERSION=\"0.14.1\" -DPACKAGE_DATA_DIR=\"/usr/share/obconf-qt\" -DPIXMAPS_DIR=\"/usr/share/pixmaps\" -DQT_CORE_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_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DTHEME_DIR=\"/usr/share/openbox/themes\" -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/obconf-qt_autogen/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/openbox/3.6 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -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/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 -DQT_NO_KEYWORDS -O2 -g -DNDEBUG -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++14 -o CMakeFiles/obconf-qt.dir/appearance.cpp.o -c /<<PKGBUILDDIR>>/src/appearance.cpp
> /<<PKGBUILDDIR>>/src/maindialog.cpp: In constructor ‘Obconf::MainDialog::MainDialog()’:
> /<<PKGBUILDDIR>>/src/maindialog.cpp:36:51: error: ‘QString::QString(const char*)’ is private within this context
>    36 |   setWindowIcon(QIcon(PIXMAPS_DIR "/obconf-qt.png"));
>       |                                                   ^
> 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>>/src/maindialog.h:24,
>                  from /<<PKGBUILDDIR>>/src/maindialog.cpp:24:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> /<<PKGBUILDDIR>>/src/maindialog.cpp: In destructor ‘virtual Obconf::MainDialog::~MainDialog()’:
> /<<PKGBUILDDIR>>/src/maindialog.cpp:59:28: warning: cast between incompatible function types from ‘void (*)(gpointer)’ {aka ‘void (*)(void*)’} to ‘GFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
>    59 |     g_list_foreach(themes, (GFunc)g_free, NULL);
>       |                            ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/appearance.cpp: In member function ‘void Obconf::MainDialog::appearance_setup_tab()’:
> /<<PKGBUILDDIR>>/src/appearance.cpp:43:34: error: ‘QString::QString(const char*)’ is private within this context
>    43 |   ui.title_layout->setText(layout);
>       |                                  ^
> 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>>/src/maindialog.h:24,
>                  from /<<PKGBUILDDIR>>/src/appearance.cpp:23:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> /<<PKGBUILDDIR>>/src/appearance.cpp: In function ‘RrFont* read_font(Fm::FontButton*, const gchar*, gboolean)’:
> /<<PKGBUILDDIR>>/src/appearance.cpp:170:23: error: ‘QString::QString(const char*)’ is private within this context
>   170 |   qfont.setFamily(name);
>       |                       ^
> 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>>/src/maindialog.h:24,
>                  from /<<PKGBUILDDIR>>/src/appearance.cpp:23:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> /<<PKGBUILDDIR>>/src/appearance.cpp: In function ‘RrFont* write_font(Fm::FontButton*, const gchar*)’:
> /<<PKGBUILDDIR>>/src/appearance.cpp:200:30: error: ‘QString::QString(const char*)’ is private within this context
>   200 |   QString size = QString("%1").arg(qfont.pointSize());
>       |                              ^
> 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>>/src/maindialog.h:24,
>                  from /<<PKGBUILDDIR>>/src/appearance.cpp:23:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:973:5: note: declared private here
>   973 |     QString(const char *ch);
>       |     ^~~~~~~
> make[3]: *** [src/CMakeFiles/obconf-qt.dir/build.make:236: src/CMakeFiles/obconf-qt.dir/maindialog.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/obconf-qt_0.14.1-1_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