[
https://issues.apache.org/jira/browse/QPID-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Daněk updated QPID-7765:
-----------------------------
Summary: [qpid-cpp] Problem building on Fedora rawhide
(-Werror=maybe-uninitialized, and std::auto_ptr gives deprecated-declarations
warning) (was: Problem building on Fedora rawhide)
> [qpid-cpp] Problem building on Fedora rawhide (-Werror=maybe-uninitialized,
> and std::auto_ptr gives deprecated-declarations warning)
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-7765
> URL: https://issues.apache.org/jira/browse/QPID-7765
> Project: Qpid
> Issue Type: Bug
> Components: C++ Build
> Affects Versions: qpid-cpp-1.36.0
> Environment: Fedora rawhide x86_64
> Reporter: Irina Boverman
> Priority: Major
>
> [ 57%] Building CXX object
> src/CMakeFiles/qpidbroker.dir/qpid/broker/TxAccept.cpp.o
> cd /builddir/build/BUILD/qpid-cpp-1.36.0/src && /usr/bin/c++
> -DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP -Dqpidbroker_EXPORTS
> -I/builddir/build/BUILD/qpid-cpp-1.36.0/src
> -I/builddir/build/BUILD/qpid-cpp-1.36.0/src/../include -I/usr/include/nss3
> -I/usr/include/nspr4 -std=c++11 -Wno-implicit-fallthrough -O2 -g -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic
> -fvisibility-inlines-hidden -Werror -pedantic -Wall -Wextra -Wno-shadow
> -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
> -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
> -Woverloaded-virtual -Wno-error=deprecated-declarations -O2 -g -DNDEBUG -fPIC
> -pthread -o CMakeFiles/qpidbroker.dir/qpid/broker/TxAccept.cpp.o -c
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/TxAccept.cpp
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxBuffer.h:25:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxManager.h:24,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:30,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:23:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/TxBuffer.h:76:10:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> std::auto_ptr<TransactionContext> txContext;
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/Array.h:28,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/AMQP_ServerProxy.h:31,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Bridge.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.h:27,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:21:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxManager.h:25:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:30,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:23:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxWorkRecord.h:59:10:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> std::auto_ptr<TPCTransactionContext> txn;
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/Array.h:28,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/AMQP_ServerProxy.h:31,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Bridge.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.h:27,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:21:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxManager.h:25:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:30,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:23:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxWorkRecord.h:73:23:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> void recover(std::auto_ptr<TPCTransactionContext> txn,
> boost::intrusive_ptr<DtxBuffer> ops);
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/Array.h:28,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/AMQP_ServerProxy.h:31,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Bridge.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.h:27,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/LinkRegistry.cpp:21:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/SelectorToken.cpp:22:0:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/SelectorToken.h: In
> member function 'const qpid::broker::Token&
> qpid::broker::Tokeniser::nextToken()':
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/SelectorToken.h:67:8:
> error: '<anonymous>.qpid::broker::Token::type' may be used uninitialized in
> this function [-Werror=maybe-uninitialized]
> struct Token {
> ^~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:30:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:24:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/DtxManager.h:56:47:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> void recover(const std::string& xid,
> std::auto_ptr<TPCTransactionContext> txn, boost::intrusive_ptr<DtxBuffer>
> work);
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:22:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/MessageStoreModule.h:25:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/MessageStoreModule.cpp:22:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Queue.h:183:10:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> std::auto_ptr<Messages> messages;
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/Array.h:28,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/amqp_types_full.h:33,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/../include/qpid/framing/DeliveryProperties.h:32,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/AMQHeaderBody.h:27,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/AMQFrame.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/framing/amqp_framing.h:22,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/PersistableMessage.h:32,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/MessageStore.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/MessageStoreModule.h:24,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/MessageStoreModule.cpp:22:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> cc1plus: all warnings being treated as errors
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:36:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:24:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/SessionManager.h:54:10:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> std::auto_ptr<SessionState> attach(SessionHandler& h, const SessionId&
> id, bool/*force*/);
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:22:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> In file included from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Broker.h:36:0,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:24:
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/SessionManager.h:57:22:
> warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> void detach(std::auto_ptr<SessionState>);
> ^~~~~~~~
> In file included from /usr/include/c++/7/memory:80:0,
> from /usr/include/boost/config/no_tr1/memory.hpp:21,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.h:25,
> from
> /builddir/build/BUILD/qpid-cpp-1.36.0/src/qpid/broker/Link.cpp:22:
> /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
> make[2]: *** [src/CMakeFiles/qpidbroker.dir/build.make:3282:
> src/CMakeFiles/qpidbroker.dir/qpid/broker/SelectorToken.cpp.o] Error 1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]