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

Installed boost is preferred over bundled version.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • Component/s: build
    • Labels:

      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

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

              Dates

              • Created:
                Updated: