[Debian-med-packaging] C++ help needed (Was: Bug#777922: jellyfish: ftbfs with GCC-5)
Jakub Wilk
jwilk at debian.org
Fri Jul 3 11:05:59 UTC 2015
* Andreas Tille <andreas at an3as.eu>, 2015-07-03, 06:10:
>> CXX unit_tests/bin_test_all-test_main.o
>>In file included from ./unit_tests/gtest/gtest.h:308:0,
>> from unit_tests/test_main.cc:20:
>>/usr/include/c++/5/sstream:335:7: error: 'struct std::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs' redeclared with different access
>> struct __xfer_bufptrs
>> ^
>>make[3]: *** [unit_tests/bin_test_all-test_main.o] Error 1
Unfortunately, the build system hides compiler flags, and they are
crucial for understanding what happened here.
Apparently tests are compiled with "private" redefined as "public":
bin_test_all_CPPFLAGS = -Dprotected=public -Dprivate=public -DJSON_IS_AMALGAMATION=1
This breaks the <sstream> header:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65899
--
Jakub Wilk
More information about the Debian-med-packaging
mailing list