You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2013/12/03 14:02:35 UTC

[jira] [Commented] (MESOS-860) Get mesos' libprocess dependency glog to compile with clang and libc++

    [ https://issues.apache.org/jira/browse/MESOS-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837651#comment-13837651 ] 

Till Toenshoff commented on MESOS-860:
--------------------------------------

Partial Remedy:
Get latest revision from google-glog SVN repository:
> svn checkout http://google-glog.googlecode.com/svn/trunk/google-glog-read-only 
Checked out revision 139.  


> ./configure CPPFLAGS=-DGLOG_STL_LOGGING_FOR_UNORDERED 


That fixes the above error but leaves the glog unit-tests broken.


Failure:
In file included from src/stl_logging_unittest.cc:42:
./src/glog/stl_logging.h:68:11: fatal error: 'tr1/unordered_map' file not found
# include <tr1/unordered_map>
          ^
1 error generated.
make: *** [stl_logging_unittest-stl_logging_unittest.o] Error 1


Remedy:
Check issue #121 on google-glog:https://code.google.com/p/google-glog/issues/detail?id=121&q=libc%2B%2B

Download libc++.diff (737 bytes): https://code.google.com/p/google-glog/issues/attachmentText?id=121&aid=1210003000&name=libc%2B%2B.diff  

Copy libc++.diff into the glog root folder and apply.
>  patch -p0 <libc++.diff

> configure
> make
> make install


> Get mesos' libprocess dependency glog to compile with clang and libc++
> ----------------------------------------------------------------------
>
>                 Key: MESOS-860
>                 URL: https://issues.apache.org/jira/browse/MESOS-860
>             Project: Mesos
>          Issue Type: Improvement
>          Components: build, libprocess
>    Affects Versions: 0.14.2
>         Environment: OS X 10.9 (Mavericks), Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>            Reporter: Till Toenshoff
>            Priority: Minor
>              Labels: build
>
> [mesos/build/3rdparty/libprocess/3rdparty/glog-0.3.3(master) ] 
> Failure:
> In file included from src/stl_logging_unittest.cc:34:
> ./src/glog/stl_logging.h:56:11: fatal error: 'ext/slist' file not found
> # include <ext/slist>
>           ^
> 2 warnings and 1 error generated.
> make[7]: *** [stl_logging_unittest-stl_logging_unittest.o] Error 1 



--
This message was sent by Atlassian JIRA
(v6.1#6144)