Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8495

Cannot build Qpid C++ 1.39

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • qpid-cpp-1.39.0
    • None
    • C++ Build
    • None
    • Linux Mint 20, gcc 9.3.0, boost 1.75

    Description

      I am trying to build qpid 1.39.0 on Linux Mint 20 with gcc 9.3.0 and boost 1.75. The build fails with the following error:

      faycal@fek-alienware:~/Projects/qpid-cpp-1.39.0/build$ make
      /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
      warnings.warn(msg)
      running build
      running build_py
      running build_scripts
      [ 0%] Built target management_python_build
      [ 0%] Building CXX object src/CMakeFiles/qpidtypes.dir/qpid/types/Exception.cpp.o
      [ 0%] Building CXX object src/CMakeFiles/qpidtypes.dir/qpid/types/Uuid.cpp.o
      [ 0%] Building CXX object src/CMakeFiles/qpidtypes.dir/qpid/types/Variant.cpp.o
      [ 0%] Linking CXX shared library libqpidtypes.so
      [ 0%] Built target qpidtypes
      [ 1%] Building CXX object src/CMakeFiles/qpidcommon.dir/qpid/framing/MethodBodyDefaultVisitor.cpp.o
      In file included from /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/AMQMethodBody.h:26,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/ConnectionStartBody.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/all_method_bodies.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/MethodBodyDefaultVisitor.cpp:29:
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/ProtocolVersion.h: In member function ‘bool qpid::framing::ProtocolVersion::operator!=(qpid::framing::ProtocolVersion) const’:
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/ProtocolVersion.h:56:93: error: implicitly-declared ‘constexpr qpid::framing::ProtocolVersion::ProtocolVersion(const qpid::framing::ProtocolVersion&)’ is deprecated [-Werror=deprecated-copy]
      56 | QPID_COMMON_INLINE_EXTERN bool operator!=(ProtocolVersion p) const { return ! (*this == p); }
      | ^
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/ProtocolVersion.h:53:41: note: because ‘qpid::framing::ProtocolVersion’ has user-provided ‘qpid::framing::ProtocolVersion& qpid::framing::ProtocolVersion::operator=(qpid::framing::ProtocolVersion)’
      53 | QPID_COMMON_EXTERN ProtocolVersion& operator=(ProtocolVersion p);

      ^~~~~~~~
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/ProtocolVersion.h:55:56: note: initializing argument 1 of ‘bool qpid::framing::ProtocolVersion::operator==(qpid::framing::ProtocolVersion) const’
      55
      QPID_COMMON_EXTERN bool operator==(ProtocolVersion p) const;
      ~~~~~~~~~~~~~~~~^
      In file included from /usr/local/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
      from /usr/local/include/boost/smart_ptr/detail/yield_k.hpp:23,
      from /usr/local/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
      from /usr/local/include/boost/smart_ptr/detail/spinlock.hpp:42,
      from /usr/local/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
      from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:29,
      from /usr/local/include/boost/shared_ptr.hpp:17,
      from /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/AMQMethodBody.h:29,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/ConnectionStartBody.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/all_method_bodies.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/MethodBodyDefaultVisitor.cpp:29:
      /usr/local/include/boost/bind.hpp: At global scope:
      /usr/local/include/boost/bind.hpp:36:1: note: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
      36
      BOOST_PRAGMA_MESSAGE(
      ^~~~~~~~~~~~~~~~~~~~
      In file included from /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/RangeSet.h:25,
      from /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/SequenceSet.h:25,
      from /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/framing/amqp_types_full.h:35,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/../include/qpid/framing/Header.h:32,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/../include/qpid/framing/amqp_structs.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/AMQP_ServerOperations.h:32,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/ConnectionStartBody.h:31,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/all_method_bodies.h:30,
      from /home/faycal/Projects/qpid-cpp-1.39.0/build/src/qpid/framing/MethodBodyDefaultVisitor.cpp:29:
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/InlineVector.h: In instantiation of ‘qpid::InlineVector<T, Max, Alloc>::InlineVector(const qpid::InlineVector<T, Max, Alloc>&) [with T = qpid::Range<qpid::framing::SequenceNumber>; long unsigned int Max = 3; Alloc = std::allocator<qpid::Range<qpid::framing::SequenceNumber> >]’:
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/RangeSet.h:98:7: required from here
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/InlineVector.h:62:15: error: implicitly-declared ‘qpid::InlineVector<qpid::Range<qpid::framing::SequenceNumber>, 3, std::allocator<qpid::Range<qpid::framing::SequenceNumber> > >& qpid::InlineVector<qpid::Range<qpid::framing::SequenceNumber>, 3, std::allocator<qpid::Range<qpid::framing::SequenceNumber> > >::operator=(const qpid::InlineVector<qpid::Range<qpid::framing::SequenceNumber>, 3, std::allocator<qpid::Range<qpid::framing::SequenceNumber> > >&)’ is deprecated [-Werror=deprecated-copy]
      *62
      this = x;
      ~~~~~^~
      /home/faycal/Projects/qpid-cpp-1.39.0/src/qpid/InlineVector.h:60:5: note: because ‘qpid::InlineVector<qpid::Range<qpid::framing::SequenceNumber>, 3, std::allocator<qpid::Range<qpid::framing::SequenceNumber> > >’ has user-provided ‘qpid::InlineVector<T, Max, Alloc>::InlineVector(const qpid::InlineVector<T, Max, Alloc>&) [with T = qpid::Range<qpid::framing::SequenceNumber>; long unsigned int Max = 3; Alloc = std::allocator<qpid::Range<qpid::framing::SequenceNumber> >]
      60
      InlineVector(const InlineVector& x) : Base() {
      ^~~~~~~~~~~~
      cc1plus: all warnings being treated as errors
      make[2]: *** [src/CMakeFiles/qpidcommon.dir/build.make:63: src/CMakeFiles/qpidcommon.dir/qpid/framing/MethodBodyDefaultVisitor.cpp.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:1458: src/CMakeFiles/qpidcommon.dir/all] Error 2
      make: *** [Makefile:163: all] Error 2
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            fayce66 Faycal El Karaa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: