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

Cmake build failure (0.22-Alpha) when building with boost-1.41.0-11.el6_1.2.x86_64

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21
    • 0.22
    • C++ Build
    • RHEL 6.4, X86_64

    Description

      By default, cmake builds are executed with -Werror flag, the build fails with these errors:

      /usr/include/boost/function/function_template.hpp:602: note: ‘f’ was declared here

      In file included from /usr/include/boost/bind/bind.hpp:1538,

      from /usr/include/boost/bind.hpp:22,

      from /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:32:

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp: In function ‘boost::_bi::bind_t<R, R (B1, B2, B3, B4, B5, B6), typename boost::_bi::list_av_6<A1, A2, A3, A4, A5, A6>::type> boost::bind(R (B1, B2, B3, B4, B5, B6), A1, A2, A3, A4, A5, A6) [with R = void, B1 = boost::shared_ptr<qpid::sys::Poller>, B2 = const qpid::sys::SocketTransportOptions&, B3 = qpid::sys::Timer*, B4 = const qpid::sys::Socket&, B5 = qpid::sys::ConnectionCodec::Factory*, B6 = const std::string&, A1 = boost::shared_ptr<qpid::sys::Poller>, A2 = qpid::sys::SocketTransportOptions, A3 = qpid::sys::Timer*, A4 = boost::arg<1>, A5 = qpid::sys::ConnectionCodec::Factory*, A6 = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’:

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ is used uninitialized in this function

      /usr/include/boost/bind/bind_cc.hpp:83: note: ‘a2’ was declared here

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ may be used uninitialized in this function

      /usr/include/boost/bind/bind.hpp:551: note: ‘a2’ was declared here

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ may be used uninitialized in this function

      /usr/include/boost/bind/storage.hpp:276: note: ‘a2’ was declared here

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ may be used uninitialized in this function

      /usr/include/boost/bind/storage.hpp:227: note: ‘a2’ was declared here

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ may be used uninitialized in this function

      /usr/include/boost/bind/storage.hpp:195: note: ‘a2’ was declared here

      /var/lib/jenkins/workspace/qpid-cpp-trunk-cmake/label/master/qpid/cpp/src/qpid/sys/SocketTransport.cpp:209: error: ‘a2’ may be used uninitialized in this function

      /usr/include/boost/bind/storage.hpp:129: note: ‘a2’ was declared here

      make[2]: *** [src/CMakeFiles/qpidbroker.dir/qpid/sys/SocketTransport.o] Error 1

      make[1]: *** [src/CMakeFiles/qpidbroker.dir/all] Error 2

      make: *** [all] Error 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            iboverma Irina Boverman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: