[Boost-bugs] [Boost C++ Libraries] #13625: Boost.test fail to compile with -Werror=missing-declarations on some architectures

Subject: [Boost-bugs] [Boost C++ Libraries] #13625: Boost.test fail to compile with -Werror=missing-declarations on some architectures
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-07-04 21:14:32


#13625: Boost.test fail to compile with -Werror=missing-declarations on some
architectures
-----------------------------------------------+---------------------------
 Reporter: Martin Quinson <martin.quinson@…> | Owner: Gennadiy
                                               | Rozental
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.67.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+---------------------------
 Hello,

 here is the error code we get:
 {{{
 18:07:49 In file included from
 /opt/boost/include/boost/test/unit_test.hpp:19:0,
 18:07:49 from /builds/workspace/SimGrid-
 Multi/build_mode/ModelChecker/node/simgrid-
 centos7-x64/build/SimGrid-3.20.90/src/mc/sosp/PageStore_test.cpp:8:
 18:07:49 /opt/boost/include/boost/test/unit_test_suite.hpp: In function
 'bool init_unit_test()':
 18:07:49 /opt/boost/include/boost/test/unit_test_suite.hpp:375:6: error:
 no previous declaration for 'bool init_unit_test()' [-Werror=missing-
 declarations]
 18:07:49 bool init_unit_test() {
 18:07:49 ^~~~~~~~~~~~~~
 18:07:49 cc1plus: all warnings being treated as errors

 }}}

 * System::
     Centos7 with Boost 1.67 compiled from sources in /opt.
 * Full logs::
     https://ci.inria.fr/simgrid/job/SimGrid-
 Multi/build_mode=ModelChecker,node=simgrid-centos7-x64/5662/consoleFull
 * Workaround::
    simply add `bool init_unit_test();` before including
 boost/test/unit_test.hpp

 The weird thing is that the exact same code is compiling like a charm on
 many other platforms that we test. We saw another instance of this bug
 back in May 2017, on NetBSD systems where we compiled Boost.test from the
 sources. At that time, we simply added the workaround described above
 without too much thinking.

 Thanks for this great libraries,
 Mt

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13625>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-07-04 21:19:58 UTC