[
https://issues.apache.org/jira/browse/MESOS-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914811#comment-13914811
]
Dominic Hamon commented on MESOS-1030:
--------------------------------------
This also affects clang 3.4 installed on Debian testing
> Mesos compile errors on Ubuntu 13.10 with Clang 3.5: const & ..., header guard
> ------------------------------------------------------------------------------
>
> Key: MESOS-1030
> URL: https://issues.apache.org/jira/browse/MESOS-1030
> Project: Mesos
> Issue Type: Bug
> Components: framework, master, slave
> Environment: Ubuntu 13.10
> Clang 3.5
> Reporter: Bernd Mathiske
> Assignee: Bernd Mathiske
> Priority: Minor
> Labels: build, newbie
> Fix For: 0.19.0
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Depends on MESOS-1009 and MESOS-1029.
> ../../src/messages/state.hpp:19:9: error: '__MESSAGE_STATE_HPP__' is used as
> a header guard here, followed by #define
> of a different macro [-Werror,-Wheader-guard]
> #ifndef __MESSAGE_STATE_HPP__
> ^~~~~~~~~~~~~~~~~~~~~
> ../../src/messages/state.hpp:20:9: note: '__MESSAGES_STATE_HPP__' is defined
> here; did you mean
> '__MESSAGE_STATE_HPP__'?
> #define __MESSAGES_STATE_HPP__
> ^~~~~~~~~~~~~~~~~~~~~~
> __MESSAGE_STATE_HPP__
> n file included from ../../src/java/jni/convert.cpp:32:
> ../../src/jvm/jvm.hpp:473:18: error: 'va_start' has undefined behavior with
> reference types [-Werror,-Wvarargs]
> va_start(args, method);
> ^
> /root/clang/build/Release/bin/../lib/clang/3.5/include/stdarg.h:33:52: note:
> expanded from macro 'va_start'
> #define va_start(ap, param) __builtin_va_start(ap, param)
> ^
> ../../src/jvm/jvm.hpp:470:53: note: parameter of type 'const Jvm::Method &'
> is declared here
> T Jvm::invoke(const jobject receiver, const Method& method, ...)
> ^
> ../../src/jvm/jvm.hpp:488:18: error: 'va_start' has undefined behavior with
> reference types [-Werror,-Wvarargs]
> va_start(args, method);
> ^
> /root/clang/build/Release/bin/../lib/clang/3.5/include/stdarg.h:33:52: note:
> expanded from macro 'va_start'
> #define va_start(ap, param) __builtin_va_start(ap, param)
> ^
> ../../src/jvm/jvm.hpp:485:35: note: parameter of type 'const Jvm::Method &'
> is declared here
> T Jvm::invokeStatic(const Method& method, ...)
> ^
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)