Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731648 - media-radio/wsjtx-2.2.0 : cc1plus: all warnings being treated as errors
Summary: media-radio/wsjtx-2.2.0 : cc1plus: all warnings being treated as errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-07 21:18 UTC by Daniel M. Weeks
Modified: 2020-07-09 11:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2020-07-07 21:18:28 UTC
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
Comment 1 Thomas Beierlein gentoo-dev 2020-07-08 17:58:10 UTC
Thanks for the report. Upstream has already done some patching. I will try to back port.
Comment 2 Thomas Beierlein gentoo-dev 2020-07-09 11:10:27 UTC
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