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

Benjamin Hindman commented on MESOS-1232:
-----------------------------------------

Can these be fixed by adding 'using log::Replica' and 'using log::Log' at the 
top of the file? I did this recently for the registrar tests: 
https://reviews.apache.org/r/20374.

> Build failures from state tests.
> --------------------------------
>
>                 Key: MESOS-1232
>                 URL: https://issues.apache.org/jira/browse/MESOS-1232
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Jie Yu
>
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)
> {noformat}
> ../../../mesos/src/tests/state_tests.cpp:513: error: reference to ‘log’ is 
> ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log(double)
> ./messages/log.pb.h:32: error:                 namespace mesos::internal::log 
> { }
> ../../../mesos/src/tests/state_tests.cpp:513: error: ISO C++ forbids 
> declaration of ‘Replica’ with no type
> ../../../mesos/src/tests/state_tests.cpp:513: error: expected ‘;’ before ‘*’ 
> token
> ../../../mesos/src/tests/state_tests.cpp:514: error: reference to ‘log’ is 
> ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log(double)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to