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

Build error on gcc-4.4.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.0
    • 0.20.0
    • None
    • None

    Description

      ../../../mesos/src/master/http.cpp: In member function 'process::Future<process::http::Response> mesos::internal::master::Master::Http::shutdown(const process::http::Request&)':../../../mesos/src/master/http.cpp:677: error: no matching function for call to 'process::Future<bool>::th
      en(process::Deferred<process::Future<process::http::Response>(bool)>)'
      ...
      In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/functional:56,
                       from ../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/lambda.hpp:28,
                       from ../../../mesos/3rdparty/libprocess/include/process/event.hpp:9,
                       from ../../../mesos/3rdparty/libprocess/include/process/process.hpp:11,
                       from ../../../mesos/3rdparty/libprocess/include/process/timeout.hpp:4,
                       from ../../../mesos/3rdparty/libprocess/include/process/timer.hpp:7,
                       from ../../../mesos/3rdparty/libprocess/include/process/future.hpp:25,
                       from ../../../mesos/3rdparty/libprocess/include/process/help.hpp:8,
                       from ../../../mesos/src/master/http.cpp:27:
      /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional: In static member function 'static _Res std::tr1::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::tr1::_Any_data&, _ArgTypes ...) [with _Res = process::Future<process::http::Response>, _Functor = std::tr1::_Bind<void (*(process::UPID, std::tr1::function<process::Future<process::http::Response>(bool)>, std::tr1::_Placeholder<1>))(const process::UPID&, const std::tr1::function<void(bool)>&, bool)>, _ArgTypes = bool]':
      /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:2005:   instantiated from 'std::tr1::function<_Res(_ArgTypes ...)>::function(_Functor, typename __gnu_cxx::__enable_if<(! std::tr1::is_integral::value), std::tr1::function<_Res(_ArgTypes ...)>::_Useless>::__type) [with _Functor = std::tr1::_Bind<void (*(process::UPID, std::tr1::function<process::Future<process::http::Response>(bool)>, std::tr1::_Placeholder<1>))(const process::UPID&, const std::tr1::function<void(bool)>&, bool)>, _Res = process::Future<process::http::Response>, _ArgTypes = bool]'
      ../../../mesos/3rdparty/libprocess/include/process/defer.hpp:472:   instantiated from 'process::Deferred<process::Future<X>(A0)> process::defer(const process::UPID&, const std::tr1::function<process::Future<X>(A0)>&) [with R = process::http::Response, A0 = bool, F = void()]'
      ../../../mesos/src/master/http.cpp:677:   instantiated from here
      /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:1654: error: conversion from 'void' to non-scalar type 'process::Future<process::http::Response>' requested
      

      Attachments

        Activity

          People

            benjaminhindman Benjamin Hindman
            jieyu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: