Jimmy Jones created QPID-4722:
---------------------------------

             Summary: qpid-cpp-0.22-rc1 doesnt compile on RHEL6
                 Key: QPID-4722
                 URL: https://issues.apache.org/jira/browse/QPID-4722
             Project: Qpid
          Issue Type: Bug
    Affects Versions: 0.22
         Environment: RHEL6
            Reporter: Jimmy Jones


Freshly installed RHEL6.3 VM

Compile (with automake) of 
http://people.apache.org/~jross/qpid-0.22-rc1/qpid-cpp-0.22-rc1.tar.gz fails 
unless -Werror is removed:

make[3]: Entering directory `/home/jimmy/Downloads/qpidc-0.22/src'
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../include -I../include -I. -I=.   -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 
-D_IN_QPID_BROKER -g -O2 -MT qpid/sys/libqpidbroker_la-SocketTransport.lo -MD 
-MP -MF qpid/sys/.deps/libqpidbroker_la-SocketTransport.Tpo -c -o 
qpid/sys/libqpidbroker_la-SocketTransport.lo `test -f 
'qpid/sys/SocketTransport.cpp' || echo './'`qpid/sys/SocketTransport.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I. -I=. 
-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 -D_IN_QPID_BROKER -g -O2 -MT 
qpid/sys/libqpidbroker_la-SocketTransport.lo -MD -MP -MF 
qpid/sys/.deps/libqpidbroker_la-SocketTransport.Tpo -c 
qpid/sys/SocketTransport.cpp  -fPIC -DPIC -o 
qpid/sys/.libs/libqpidbroker_la-SocketTransport.o
cc1plus: warnings being treated as errors
qpid/sys/SocketTransport.cpp: In constructor 
'qpid::sys::SocketAcceptor::SocketAcceptor(bool, bool, uint32_t, 
qpid::sys::Timer&)':
qpid/sys/SocketTransport.cpp:209: error: 'a2' is used uninitialized in this 
function
/usr/include/boost/bind/bind_cc.hpp:72: note: 'a2' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'a2' is used uninitialized in this 
function
/usr/include/boost/bind/bind.hpp:482: note: 'a2' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'a2' is used uninitialized in this 
function
/usr/include/boost/bind/storage.hpp:244: note: 'a2' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'a2' is used uninitialized in this 
function
/usr/include/boost/bind/storage.hpp:195: note: 'a2' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'a2' is used uninitialized in this 
function
/usr/include/boost/bind/storage.hpp:129: note: 'a2' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'f' is used uninitialized in this 
function
qpid/sys/SocketTransport.cpp:114: note: 'f' was declared here
qpid/sys/SocketTransport.cpp:209: error: 'f' is used uninitialized in this 
function
/usr/include/boost/function/function_template.hpp:722: note: 'f' was declared 
here
qpid/sys/SocketTransport.cpp:209: error: 'f' is used uninitialized in this 
function
/usr/include/boost/function/function_template.hpp:915: note: 'f' was declared 
here
qpid/sys/SocketTransport.cpp:209: error: 'f' may be used uninitialized in this 
function
/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 qpid/sys/SocketTransport.cpp:32:
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> >]':
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
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
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
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
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
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[3]: *** [qpid/sys/libqpidbroker_la-SocketTransport.lo] Error 1
make[3]: Leaving directory `/home/jimmy/Downloads/qpidc-0.22/src'


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to