On an unstable system w/ qt 5.15. I'm not very familiar with Qt but it seems that deprecated function warnings should not be treated as flat out errors. It looks like upstream set -Werror... :( FAILED: CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -DBIGSYM=1 -DCMAKE_BUILD -DQT5 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DUDP_STATIC_DEFINE -DUNIX -I. -I/tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx -Iwsjtx_udp-static_autogen/include -I/tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/boost -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -mavx -mxsave -mpclmul -Werror -Wall -Wextra -fexceptions -frtti -Wno-pragmas -fopenmp --std=gnu++11 -pthread -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o -MF CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o.d -o CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o -c /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp: In constructor ‘MessageServer::impl::impl(MessageServer*, const QString&, const QString&)’: /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp:42:75: error: ‘void QAbstractSocket::error(QAbstractSocket::SocketError)’ is deprecated: Use QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead [-Werror=deprecated-declarations] 42 | connect (this, static_cast<void (impl::*) (SocketError)> (&impl::error) | ^ In file included from /usr/include/qt5/QtNetwork/qhostaddress.h:48, from /usr/include/qt5/QtNetwork/QHostAddress:1, from /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.hpp:7, from /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp:1: /usr/include/qt5/QtNetwork/qabstractsocket.h:211:10: note: declared here 211 | void error(QAbstractSocket::SocketError); | ^~~~~ /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp:42:75: error: ‘void QAbstractSocket::error(QAbstractSocket::SocketError)’ is deprecated: Use QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead [-Werror=deprecated-declarations] 42 | connect (this, static_cast<void (impl::*) (SocketError)> (&impl::error) | ^ In file included from /usr/include/qt5/QtNetwork/qhostaddress.h:48, from /usr/include/qt5/QtNetwork/QHostAddress:1, from /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.hpp:7, from /tmp/portage/media-radio/wsjtx-2.2.0/work/wsjtx/UDPExamples/MessageServer.cpp:1: /usr/include/qt5/QtNetwork/qabstractsocket.h:211:10: note: declared here 211 | void error(QAbstractSocket::SocketError); | ^~~~~ cc1plus: all warnings being treated as errors Reproducible: Always
Thanks for the report. Upstream has already done some patching. I will try to back port.
The bug got closed by the following commit: media-radio/wsjtx: Fix build error on unstable system Drop '-Werror' flag which aborts build due to reported 'deprecated' functions in >= qt5.15