Bug 1603071 - libjson-rpc-cpp: FTBFS in Fedora rawhide (section type conflict)
Summary: libjson-rpc-cpp: FTBFS in Fedora rawhide (section type conflict)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: annobin
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL: http://apps.fedoraproject.org/koschei...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-19 05:59 UTC by Igor Raits
Modified: 2018-07-19 12:44 UTC (History)
4 users (show)

Fixed In Version: annobin-8.14-1.fc29
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-07-19 12:44:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Igor Raits 2018-07-19 05:59:15 UTC
Description of problem:
Package libjson-rpc-cpp fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
1.1.0-5.fc29

Steps to Reproduce:
koji build --scratch f29 libjson-rpc-cpp-1.1.0-5.fc29.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/libjson-rpc-cpp

---

[ 72%] Building CXX object src/test/CMakeFiles/unit_testsuite.dir/main.cpp.o
cd /builddir/build/BUILD/libjson-rpc-cpp-1.1.0/x86_64-redhat-linux-gnu/src/test && /usr/bin/c++  -DFILEDESCRIPTOR_TESTING -DHTTP_TESTING -DREDIS_TESTING -DSTUBGEN_TESTING -I/usr/include/jsoncpp -I/usr/include/catch -I/builddir/build/BUILD/libjson-rpc-cpp-1.1.0/x86_64-redhat-linux-gnu/gen -I/builddir/build/BUILD/libjson-rpc-cpp-1.1.0/x86_64-redhat-linux-gnu/gen/jsonrpccpp/common -I/builddir/build/BUILD/libjson-rpc-cpp-1.1.0/src/test/.. -I/builddir/build/BUILD/libjson-rpc-cpp-1.1.0/x86_64-redhat-linux-gnu  -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=c++11   -o CMakeFiles/unit_testsuite.dir/main.cpp.o -c /builddir/build/BUILD/libjson-rpc-cpp-1.1.0/src/test/main.cpp
In file included from /usr/include/catch/internal/catch_impl.hpp:23,
                 from /usr/include/catch/catch.hpp:77,
                 from /builddir/build/BUILD/libjson-rpc-cpp-1.1.0/src/test/main.cpp:11:
/usr/include/catch/internal/catch_console_colour_impl.hpp: In member function 'virtual void Catch::{anonymous}::PosixColourImpl::use(Catch::Colour::Code)':
/usr/include/catch/internal/catch_console_colour_impl.hpp:121:22: error: 'virtual void Catch::{anonymous}::PosixColourImpl::use(Catch::Colour::Code)' causes a section type conflict with 'static void Catch::FatalConditionHandler::reset()'
         virtual void use( Colour::Code _colourCode ) {
                      ^~~
In file included from /usr/include/catch/internal/catch_run_context.hpp:23,
                 from /usr/include/catch/catch_session.hpp:13,
                 from /usr/include/catch/internal/catch_impl.hpp:19,
                 from /usr/include/catch/catch.hpp:77,
                 from /builddir/build/BUILD/libjson-rpc-cpp-1.1.0/src/test/main.cpp:11:
/usr/include/catch/internal/catch_fatal_condition.hpp:175:21: note: 'static void Catch::FatalConditionHandler::reset()' was declared here
         static void reset() {
                     ^~~~~

---

This seem to happen only on x86_64 after annobin going 8.10-1.fc29 → 8.12-1.fc29.

Comment 1 Yanko Kaneti 2018-07-19 06:40:21 UTC
There seems to be the same problem with vkamark 
https://apps.fedoraproject.org/koschei/package/vkmark?collection=f29
https://koji.fedoraproject.org/koji/taskinfo?taskID=28428919

I tried locally(x86_64) with annobin-8.13-1.fc29.x86_64 and it still fails.
If I remove the  "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" from the CXXFLAGS the build succeeds.

Comment 2 Igor Raits 2018-07-19 06:41:35 UTC
(In reply to Yanko Kaneti from comment #1)
> […]
> If I remove the  "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" from the
> CXXFLAGS the build succeeds.

JFYI, you can use %undefine _annotated_build.

Comment 3 Nick Clifton 2018-07-19 11:36:18 UTC
This should be fixed: annobin-8.14-1.fc29

Comment 4 Yanko Kaneti 2018-07-19 11:52:11 UTC
(In reply to Nick Clifton from comment #3)
> This should be fixed: annobin-8.14-1.fc29

Works for vkmark. Thanks

Comment 5 Igor Raits 2018-07-19 12:44:21 UTC
Works for libjson-rpc-cpp.


Note You need to log in before you can comment on or make changes to this bug.