Linker errors
I am getting build/linker errors when building KIO as follows:
[ 51%] Building CXX object autotests/CMakeFiles/favicontest.dir/favicontest.cpp.o
[ 51%] Generating ui_checksumswidget.h
[ 51%] Generating ui_kfilepropspluginwidget.h
[ 51%] Generating ui_kpropertiesdesktopadvbase.h
[ 51%] Generating ui_kpropertiesdesktopbase.h
[ 51%] Generating fileundomanager_adaptor.moc
[ 51%] Generating kuiserver_interface.moc
[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/KF5KIOWidgets_autogen/mocs_compilation.cpp.o
/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13' /usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to
std::condition_variable::wait(std::unique_lockstd::mutex&)@GLIBCXX_3.4.30'
/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' /usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to
std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'
collect2: error: ld returned 1 exit status
gmake[2]: *** [autotests/http/CMakeFiles/httpauthenticationtest.dir/build.make:113: bin/httpauthenticationtest] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7959: autotests/http/CMakeFiles/httpauthenticationtest.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kacleditwidget.cpp.o
/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13' /usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to
std::condition_variable::wait(std::unique_lockstd::mutex&)@GLIBCXX_3.4.30'
/usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Test.so.5.15.5: undefined reference to std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' /usr/bin/ld: /home/rkanagy/kde/qt5/lib/libQt5Core.so.5.15.5: undefined reference to
std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'
collect2: error: ld returned 1 exit status
gmake[2]: *** [autotests/http/CMakeFiles/httpobjecttest.dir/build.make:161: bin/httpobjecttest] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7987: autotests/http/CMakeFiles/httpobjecttest.dir/all] Error 2
[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kurlrequesterdialog.cpp.o
[ 51%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kurlcombobox.cpp.o
[ 52%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/kfileitemactions.cpp.o
[ 52%] Building CXX object src/widgets/CMakeFiles/KF5KIOWidgets.dir/imagefilter.cpp.o
[ 52%] Linking CXX executable ../bin/favicontest
[ 52%] Built target favicontest
I have provided some context to show where in the process these errors are occurring. This seems to be a glibc++ problem, maybe I'm not using the correct version of the GNU C++ compiler, but I'm not sure.
My linux environment is as follows: Ubuntu/Kubuntu 22.04 GNU C++ g++ 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
What do I need to do to resolve these linker errors?
Thanks, Ron Kanagy