Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9933

Installed boost is preferred over bundled version.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5.4
    • None
    • build

    Description

      When building Mesos 1.5.x, I noticed my local build failing with;

      ../../../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) {}
            ^                 ~~~~~
      

      Used setup:

      ../configure --enable-ssl --enable-libevent --disable-optimize --enable-debug --disable-java --disable-python --disable-werror
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tillt Till Toenshoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: