Bug 1542888

Summary: qpid-cpp-1.37.0-5.fc28 FTBFS: qpid-cpp-1.37.0/src/qpid/sys/posix/SocketAddress.cpp:208:18: error: catching polymorphic type 'class qpid::Exception' by value [-Werror=catch-value=]
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: qpid-cppAssignee: Irina Boverman <iboverma>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: iboverma, jose.p.oliveira.oss, kgiusti, nsantos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://apps.fedoraproject.org/koschei/build/4096770
Whiteboard:
Fixed In Version: qpid-cpp-1.37.0-6.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-30 12:54:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2018-02-07 09:45:21 UTC
qpid-cpp-1.37.0-5.fc28 fails to build in F28:

cd /builddir/build/BUILD/qpid-cpp-1.37.0/src && /usr/bin/c++  -DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP -Dqpidcommon_EXPORTS -I/builddir/build/BUILD/qpid-cpp-1.37.0/src -I/builddir/build/BUILD/qpid-cpp-1.37.0/src/../include -isystem /usr/include/nss3 -isystem /usr/include/nspr4  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fstack-clash-protection -std=c++11 -Wno-error=maybe-uninitialized  -fvisibility-inlines-hidden -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-deprecated-declarations -Wno-implicit-fallthrough -O2 -g -DNDEBUG -fPIC   -pthread -o CMakeFiles/qpidcommon.dir/qpid/sys/posix/SocketAddress.cpp.o -c /builddir/build/BUILD/qpid-cpp-1.37.0/src/qpid/sys/posix/SocketAddress.cpp
[...]
/builddir/build/BUILD/qpid-cpp-1.37.0/src/qpid/sys/posix/SocketAddress.cpp: In member function 'bool qpid::sys::SocketAddress::isComparable(const qpid::sys::SocketAddress&) const':
/builddir/build/BUILD/qpid-cpp-1.37.0/src/qpid/sys/posix/SocketAddress.cpp:208:18: error: catching polymorphic type 'class qpid::Exception' by value [-Werror=catch-value=]
         } catch (Exception) {
                  ^~~~~~~~~

A difference between passing and failing build root is at <https://apps.fedoraproject.org/koschei/build/4096770>. This issue is probably triggered by upgrading GCC to 8 version.

Comment 1 Fedora End Of Life 2018-02-20 15:38:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Fedora Update System 2018-03-14 16:02:01 UTC
qpid-cpp-1.37.0-6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-3da8a2c52b

Comment 3 Fedora Update System 2018-03-15 13:30:21 UTC
qpid-cpp-1.37.0-6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-3da8a2c52b

Comment 4 Fedora Update System 2018-03-30 12:54:08 UTC
qpid-cpp-1.37.0-6.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.