You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Vinod Kone (JIRA)" <ji...@apache.org> on 2014/03/26 20:05:15 UTC

[jira] [Updated] (MESOS-1030) Mesos compile errors on Ubuntu 13.10 with Clang 3.5: const & ..., header guard

     [ https://issues.apache.org/jira/browse/MESOS-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kone updated MESOS-1030:
------------------------------

    Fix Version/s:     (was: 0.19.0)
                   0.18.0

> 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.18.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.2#6252)