Qi Cui created MESOS-4352:
-----------------------------

             Summary: cmake build failed on Linux
                 Key: MESOS-4352
                 URL: https://issues.apache.org/jira/browse/MESOS-4352
             Project: Mesos
          Issue Type: Bug
          Components: cmake
    Affects Versions: 0.26.0
         Environment: ubuntu@test:~/src/mesos$ c++ --version
c++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ubuntu@test:~/src/mesos$ uname -a
Linux test 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 
x86_64 x86_64 GNU/Linux
ubuntu@test:~/src/mesos$ 

ubuntu@test:~/src/mesos$ git show
commit c2329163d36167ac8a457067ed86212ab0875136
Author: Kevin Klues <[email protected]>
Date:   Mon Jan 11 17:23:52 2016 -0800

    Fixed a pointer ownership bug in Master::removeFramework.
            Reporter: Qi Cui


make[2]: Leaving directory `/home/ubuntu/src/mesos'
make -f src/CMakeFiles/mesos-0.27.0.dir/build.make 
src/CMakeFiles/mesos-0.27.0.dir/build
make[2]: Entering directory `/home/ubuntu/src/mesos'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/src/mesos/CMakeFiles 
[ 46%] Building CXX object src/CMakeFiles/mesos-0.27.0.dir/uri/fetcher.cpp.o
cd /home/ubuntu/src/mesos/src && /usr/bin/c++   
-DLIBDIR=\"/usr/local/libmesos\" -DPICOJSON_USE_INT64 
-DPKGDATADIR=\"/usr/local/share/mesos\" 
-DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" -DVERSION=\"0.27.0\" 
-D__STDC_FORMAT_MACROS -std=c++11 -g -I/home/ubuntu/src/mesos/include 
-I/home/ubuntu/src/mesos/include/mesos -I/home/ubuntu/src/mesos/src 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/../include 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/stout/include 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/boost-1.53.0/src/boost-1.53.0
 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/picojson-1.3.0/src/picojson-1.3.0
 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/include
 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/http_parser-1c3624a/src/http_parser-1c3624a
 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/libev-4.15/src/libev-4.15 
-I/home/ubuntu/src/mesos/3rdparty/libprocess/3rdparty/protobuf-2.5.0/src/protobuf-2.5.0-lib/lib/include
 
-I/home/ubuntu/src/mesos/3rdparty/zookeeper-3.4.5/src/zookeeper-3.4.5-lib/lib/include/zookeeper
    -o CMakeFiles/mesos-0.27.0.dir/uri/fetcher.cpp.o -c 
/home/ubuntu/src/mesos/src/uri/fetcher.cpp
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:35:41: error: 'Flags' was not 
declared in this scope
 Try<Owned<Fetcher>> create(const Option<Flags>& _flags)
                                         ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:35:46: error: template argument 1 is 
invalid
 Try<Owned<Fetcher>> create(const Option<Flags>& _flags)
                                              ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp: In function 
'Try<process::Owned<mesos::uri::Fetcher> > mesos::uri::fetcher::create(const 
int&)':
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:38:3: error: 'Flags' was not 
declared in this scope
   Flags flags;
   ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:38:9: error: expected ';' before 
'flags'
   Flags flags;
         ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:39:14: error: request for member 
'isSome' in '_flags', which is of non-class type 'const int'
   if (_flags.isSome()) {
              ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:40:5: error: 'flags' was not 
declared in this scope
     flags = _flags.get();
     ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:40:20: error: request for member 
'get' in '_flags', which is of non-class type 'const int'
     flags = _flags.get();
                    ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:47:38: error: 'CurlFetcherPlugin' 
has not been declared
   creators.put("curl", lambda::bind(&CurlFetcherPlugin::create, flags));
                                      ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:47:65: error: 'flags' was not 
declared in this scope
   creators.put("curl", lambda::bind(&CurlFetcherPlugin::create, flags));
                                                                 ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:48:40: error: 'HadoopFetcherPlugin' 
has not been declared
   creators.put("hadoop", lambda::bind(&HadoopFetcherPlugin::create, flags));
                                        ^
/home/ubuntu/src/mesos/src/uri/fetcher.cpp:49:40: error: 'DockerFetcherPlugin' 
has not been declared
   creators.put("docker", lambda::bind(&DockerFetcherPlugin::create, flags));
                                        ^
make[2]: *** [src/CMakeFiles/mesos-0.27.0.dir/uri/fetcher.cpp.o] Error 1
make[2]: Leaving directory `/home/ubuntu/src/mesos'
make[1]: *** [src/CMakeFiles/mesos-0.27.0.dir/all] Error 2
make[1]: Leaving directory `/home/ubuntu/src/mesos'
make: *** [all] Error 2





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to