Till Toenshoff created MESOS-9933:
-------------------------------------

             Summary: Installed boost is preferred over bundled version.
                 Key: MESOS-9933
                 URL: https://issues.apache.org/jira/browse/MESOS-9933
             Project: Mesos
          Issue Type: Bug
          Components: build
    Affects Versions: 1.5.4
            Reporter: Till Toenshoff


When building Mesos 1.5.x, I noticed my local build failing with;
{noformat}
../../../3rdparty/libprocess/../stout/include/stout/json.hpp:270:7: error: no 
matching constructor for initialization of 'internal::Variant' (aka 
'variant<boost::recursive_wrapper<Null>, boost::recursive_wrapper<String>, 
boost::recursive_wrapper<Number>, boost::recursive_wrapper<Object>, 
boost::recursive_wrapper<Array>, boost::recursive_wrapper<Boolean> >')
    : internal::Variant(value) {}
      ^                 ~~~~~
{noformat}

It turned out that I had a more recent boost version installed on my system and 
instead of using the bundled variant, the autotools build preferred my 
installed version, leading to the above error. The installed version was in 
{{/usr/local/include}}. After removing the installed variant, the build 
continued, avoiding the error.
We should try to make sure bundled dependencies are generally preferred over 
installed variants.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to