Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hand compile issues with QT on Rocky Linux 8.6 #303

Open
LinuxETC opened this issue Aug 29, 2022 · 1 comment
Open

Hand compile issues with QT on Rocky Linux 8.6 #303

LinuxETC opened this issue Aug 29, 2022 · 1 comment

Comments

@LinuxETC
Copy link

While trying to hand compile scap-workbench v1.2.1 for Rocky Linux v8.6 I am receiving the following error message during the make call.

/home/openscap-service/Downloads/scap-workbench-1.2.1/src/SaveAsRPMDialog.cpp: In member function ‘void SaveAsRPMDialog::slotFinished(int)’:
/home/openscap-service/Downloads/scap-workbench-1.2.1/src/SaveAsRPMDialog.cpp:89:42: error: ‘QList<T> QSet<T>::toList() const [with T = QString]’ is deprecated: Use values() instead. [-Werror=deprecated-declarations]
     closureOrdered.append(closure.toList());
                                          ^
In file included from /usr/include/qt5/QtCore/QSet:1,
                 from /home/openscap-service/Downloads/scap-workbench-1.2.1/include/ScanningSession.h:28,
                 from /home/openscap-service/Downloads/scap-workbench-1.2.1/src/SaveAsRPMDialog.cpp:24:
/usr/include/qt5/QtCore/qset.h:265:14: note: declared here
     QList<T> toList() const { return values(); }
              ^~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/scap-workbench.dir/build.make:398: CMakeFiles/scap-workbench.dir/src/SaveAsRPMDialog.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/scap-workbench.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Granted, I know that scap-workbench has v1.2.0 available via Rocky's package repositories. However, I wanted to test this while "breaking in" Rocky as well.

From what I am reading it seems that there are some deprecated QT calls while compiling which errors out make.

Questions and/or feedback are welcomed. Thanks for everyone's time and assistance in advance.

@ggbecker
Copy link
Member

It looks like this is only a deprecation warning that is being treated as an error:

cc1plus: all warnings being treated as errors

If you manage to switch how the warnings are handled, you will probably be able to build it normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants