Jie Yu created MESOS-1692:
-----------------------------
Summary: Build error on gcc-4.4.
Key: MESOS-1692
URL: https://issues.apache.org/jira/browse/MESOS-1692
Project: Mesos
Issue Type: Bug
Reporter: Jie Yu
{noformat}
../../../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
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)