You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Neil Conway (JIRA)" <ji...@apache.org> on 2015/11/14 18:09:11 UTC
[jira] [Commented] (MESOS-3799) Compilation warning with Ubuntu
wily: auto_ptr is deprecated
[ https://issues.apache.org/jira/browse/MESOS-3799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15005487#comment-15005487 ]
Neil Conway commented on MESOS-3799:
------------------------------------
Checking with Boost 1.59, the warning is still printed. AFAICS there are two options:
* Add -Wno-deprecated-declarations to CXXFLAGS. This kinda sucks, because there is at least some value in identifying unintentional use of deprecated constructs.
* Define BOOST_NO_AUTO_PTR, which disables the auto_ptr-related code in Boost. I'll double-check that this works, but it seems better (auto_ptr is going away soon anyway, so it makes us a bit more future-proof).
I'll look into doing #2 shortly.
> Compilation warning with Ubuntu wily: auto_ptr is deprecated
> ------------------------------------------------------------
>
> Key: MESOS-3799
> URL: https://issues.apache.org/jira/browse/MESOS-3799
> Project: Mesos
> Issue Type: Bug
> Reporter: Neil Conway
> Priority: Minor
> Labels: mesosphere
>
> Variants of this message are printed many times during compilation (Wily on AMD64):
> {noformat}
> CXX libprocess_la-pid.lo
> CXX libprocess_la-poll_socket.lo
> CXX libprocess_la-profiler.lo
> In file included from /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp:23:0,
> from /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/stringify.hpp:26,
> from /mesos/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp:59,
> from /mesos/3rdparty/libprocess/include/process/address.hpp:34,
> from /mesos/3rdparty/libprocess/include/process/pid.hpp:26,
> from /mesos/3rdparty/libprocess/src/pid.cpp:28:
> 3rdparty/boost-1.53.0/boost/get_pointer.hpp:27:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
> template<class T> T * get_pointer(std::auto_ptr<T> const& p)
> ^
> In file included from /usr/include/c++/5/memory:81:0,
> from 3rdparty/boost-1.53.0/boost/functional/hash/extensions.hpp:32,
> from 3rdparty/boost-1.53.0/boost/functional/hash/hash.hpp:529,
> from 3rdparty/boost-1.53.0/boost/functional/hash.hpp:6,
> from /mesos/3rdparty/libprocess/include/process/pid.hpp:24,
> from /mesos/3rdparty/libprocess/src/pid.cpp:28:
> /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)