[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ help needed (Was: Bug#777922: jellyfish: ftbfs with GCC-5)



* Andreas Tille <andreas@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


Reply to: