Cannot compile. OS: fedora 36
arun54321 opened this issue · 4 comments
make -f Makefile.Release
make[1]: Entering directory '/home/arun/Videos/qMasterPassword'
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/crypto.o src/crypto.cpp
In file included from src/crypto.cpp:26:
include/crypto_functions.h: In function ‘int secureRandomBytes(unsigned char*, int)’:
include/crypto_functions.h:89:41: warning: ‘int RAND_pseudo_bytes(unsigned char*, int)’ is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
89 | return RAND_pseudo_bytes(buffer, num);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from include/crypto_functions.h:25:
/usr/include/openssl/rand.h:79:29: note: declared here
79 | OSSL_DEPRECATEDIN_1_1_0 int RAND_pseudo_bytes(unsigned char *buf, int num);
| ^~~~~~~~~~~~~~~~~
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/edit_site_widget.o src/edit_site_widget.cpp
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/exception.o src/exception.cpp
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/global.o src/global.cpp
src/global.cpp: In function ‘std::string getDate()’:
src/global.cpp:30:37: warning: ‘%02i’ directive writing between 2 and 11 bytes into a region of size between 0 and 14 [-Wformat-overflow=]
30 | sprintf(timestr, "%02i.%02i.%02i",
| ^~~~
src/global.cpp:30:26: note: directive argument in the range [-2147483648, 2147483547]
30 | sprintf(timestr, "%02i.%02i.%02i",
| ^~~~~~~~~~~~~~~~
src/global.cpp:30:16: note: ‘sprintf’ output between 9 and 36 bytes into a destination of size 20
30 | sprintf(timestr, "%02i.%02i.%02i",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | (int)ptm->tm_mday,
| ~~~~~~~~~~~~~~~~~~
32 | (int)ptm->tm_mon + 1,
| ~~~~~~~~~~~~~~~~~~~~~
33 | (int)ptm->tm_year - 100);
| ~~~~~~~~~~~~~~~~~~~~~~~~
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/import_export.o src/import_export.cpp
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/logging.o src/logging.cpp
src/logging.cpp: In member function ‘void CLog::Log(ELOG, const char*, const char*, int, const char*, ...)’:
src/logging.cpp:57:72: warning: unused parameter ‘line’ [-Wunused-parameter]
57 | void CLog::Log(ELOG level, const char* file, const char* function, int line,
| ~~~~^~~~
src/logging.cpp: In static member function ‘static std::string CLog::getDate()’:
src/logging.cpp:136:37: warning: ‘%02i’ directive writing between 2 and 11 bytes into a region of size between 0 and 14 [-Wformat-overflow=]
136 | sprintf(timestr, "%02i.%02i.%02i",
| ^~~~
src/logging.cpp:136:26: note: directive argument in the range [-2147483648, 2147483547]
136 | sprintf(timestr, "%02i.%02i.%02i",
| ^~~~~~~~~~~~~~~~
src/logging.cpp:136:16: note: ‘sprintf’ output between 9 and 36 bytes into a destination of size 20
136 | sprintf(timestr, "%02i.%02i.%02i",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
137 | (int)ptm->tm_mday,
| ~~~~~~~~~~~~~~~~~~
138 | (int)ptm->tm_mon + 1,
| ~~~~~~~~~~~~~~~~~~~~~
139 | (int)ptm->tm_year - 100);
| ~~~~~~~~~~~~~~~~~~~~~~~~
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/main.o src/main.cpp
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/main_class.o src/main_class.cpp
src/main_class.cpp: In member function ‘void CMain::loadTranslation()’:
src/main_class.cpp:163:55: warning: ‘static QString QLibraryInfo::location(LibraryLocation)’ is deprecated: Use path() [-Wdeprecated-declarations]
163 | QString qt_trans_path = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/QLibraryInfo:1,
from src/main_class.cpp:21:
/usr/include/qt6/QtCore/qlibraryinfo.h:83:20: note: declared here
83 | static QString location(LibraryLocation location)
| ^~~~~~~~
src/main_class.cpp:174:32: warning: ignoring return value of ‘bool QTranslator::load(const QLocale&, const QString&, const QString&, const QString&, const QString&)’, declared with attribute ‘nodiscard’ [-Wunused-result]
174 | m_qt_trans.load(locale, "qt", "_", qt_trans_path);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/QTranslator:1,
from include/main_class.h:18,
from src/main_class.cpp:15:
/usr/include/qt6/QtCore/qtranslator.h:73:24: note: declared here
73 | [[nodiscard]] bool load(const QLocale & locale,
| ^~~~
src/main_class.cpp:176:36: warning: ignoring return value of ‘bool QTranslator::load(const QLocale&, const QString&, const QString&, const QString&, const QString&)’, declared with attribute ‘nodiscard’ [-Wunused-result]
176 | m_qtbase_trans.load(locale, "qtbase", "_", qt_trans_path);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qtranslator.h:73:24: note: declared here
73 | [[nodiscard]] bool load(const QLocale & locale,
| ^~~~
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME=\"qMasterPassword\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/main_window.o src/main_window.cpp
src/main_window.cpp: In constructor ‘MainWindow::MainWindow(QWidget*)’:
src/main_window.cpp:108:54: warning: ‘constexpr QKeyCombination operator+(Qt::Modifier, Qt::Key)’ is deprecated: Use operator| instead [-Wdeprecated-declarations]
108 | QKeySequence(Qt::SHIFT + Qt::Key_P));
| ^~~~~
In file included from /usr/include/qt6/QtCore/qobjectdefs.h:48,
from /usr/include/qt6/QtGui/qwindowdefs.h:44,
from /usr/include/qt6/QtWidgets/qwidget.h:44,
from /usr/include/qt6/QtWidgets/qmainwindow.h:44,
from /usr/include/qt6/QtWidgets/QMainWindow:1,
from include/main_window.h:18,
from src/main_window.cpp:15:
/usr/include/qt6/QtCore/qnamespace.h:1971:27: note: declared here
1971 | constexpr QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key) noexcept
| ^~~~~~~~
src/main_window.cpp: In member function ‘void MainWindow::login()’:
src/main_window.cpp:289:39: error: conversion from ‘int’ to ‘QChar’ is ambiguous
289 | password[i] = 0;
| ^
In file included from /usr/include/qt6/QtCore/qstring.h:50,
from /usr/include/qt6/QtCore/qobject.h:47,
from /usr/include/qt6/QtWidgets/qwidget.h:45:
/usr/include/qt6/QtCore/qchar.h:126:45: note: candidate: ‘constexpr QChar::QChar(char)’
126 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/qt6/QtCore/qchar.h:119:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’
119 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/qt6/QtCore/qchar.h:114:26: note: candidate: ‘constexpr QChar::QChar(short int)’
114 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/qt6/QtCore/qchar.h:112:26: note: candidate: ‘constexpr QChar::QChar(ushort)’
112 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/qt6/QtCore/qchar.h:84:21: note: initializing argument 1 of ‘constexpr QChar& QChar::operator=(QChar&&)’
84 | class Q_CORE_EXPORT QChar {
| ^~~~~
src/main_window.cpp: In member function ‘void MainWindow::selectionChanged(const QItemSelection&, const QItemSelection&)’:
src/main_window.cpp:656:39: warning: unused parameter ‘deselected’ [-Wunused-parameter]
656 | const QItemSelection& deselected) {
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
src/main_window.cpp: In member function ‘void MainWindow::filterTextChanged(QString)’:
src/main_window.cpp:722:24: error: ‘class MySortFilterProxyModel’ has no member named ‘setFilterRegExp’; did you mean ‘setFilterRole’?
722 | m_proxy_model->setFilterRegExp(
| ^~~~~~~~~~~~~~~
| setFilterRole
src/main_window.cpp:723:67: error: ‘QRegExp’ has not been declared
723 | QRegExp(filter_text, Qt::CaseInsensitive, QRegExp::FixedString));
| ^~~~~~~
src/main_window.cpp:723:25: error: ‘QRegExp’ was not declared in this scope
723 | QRegExp(filter_text, Qt::CaseInsensitive, QRegExp::FixedString));
| ^~~~~~~
make[1]: *** [Makefile.Release:500: release/main_window.o] Error 1
Hi
Can you try adding #include <QRegExp>
after https://github.com/bkueng/qMasterPassword/blob/master/src/main_window.cpp#L39=?
#include <QMessageBox>
#include <QSettings>
#include <QDataStream>
#include <QStandardItemModel>
#include <QStandardItem>
#include <QClipboard>
#include <QCloseEvent>
#include <QtGlobal>
#include <QDesktopServices>
#include <QUrl>
#include <QThread>
#include <QRegExp>
#ifdef Q_OS_LINUX
#include <QtDBus/QtDBus>
#endif
DBusAdapter::DBusAdapter(MainWindow* main_window) :
QObject(main_window), m_main_window(main_window) {
make -f Makefile.Release
make[1]: Entering directory '/home/arun/Videos/qMasterPassword'
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DAPP_NAME="qMasterPassword" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -I. -I/usr/include/qt6 -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtDBus -I/usr/include/qt6/QtCore -Irelease -Iui -I/usr/lib64/qt6/mkspecs/linux-g++ -o release/main_window.o src/main_window.cpp
src/main_window.cpp:40:10: fatal error: QRegExp: No such file or directory
40 | #include
| ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile.Release:500: release/main_window.o] Error 1
make[1]: Leaving directory '/home/arun/Videos/qMasterPassword'
make: *** [Makefile:42: release] Error 2
F36 is EOL. This should IMHO be closed.
Package is available on F37 & F38 and soon will be re-appear in F39 & rawhide.