Hi all, I am no longer able to compile the trunk C++ tree on my RHEL5 box, with some warnings being treated as errors and causing the build to stop. If it matters, this is still the Automake build as I don't have cmake installed on this box yet. It does work with cmake on a Ubuntu 12.04 box.
I recalled there being some changes to the file in question late last week, via QPID-4748 / http://svn.apache.org/r1469661 so I tried reverting back to just before that commit and the build was then able to complete successfully. Is there a way we can make this old RHEL5 box happy again? :) Robbie g++ -DHAVE_CONFIG_H -I. -I. -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 -g -O2 -MT qpid/sys/posix/Time.lo -MD -MP -MF qpid/sys/posix/.deps/Time.Tpo -c qpid/sys/posix/Time.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Time.o cc1plus: warnings being treated as errors qpid/sys/posix/Time.cpp: In function 'std::istream& qpid::sys::operator>>(std::istream&, qpid::sys::Duration&)': qpid/sys/posix/Time.cpp:96: warning: passing 'double' for argument 1 to 'qpid::sys::Duration::Duration(int64_t)' qpid/sys/posix/Time.cpp:101: warning: passing 'double' for argument 1 to 'qpid::sys::Duration::Duration(int64_t)' qpid/sys/posix/Time.cpp:102: warning: passing 'double' for argument 1 to 'qpid::sys::Duration::Duration(int64_t)' qpid/sys/posix/Time.cpp:103: warning: passing 'double' for argument 1 to 'qpid::sys::Duration::Duration(int64_t)' qpid/sys/posix/Time.cpp:104: warning: passing 'double' for argument 1 to 'qpid::sys::Duration::Duration(int64_t)' depbase=`echo qpid/sys/posix/Thread.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -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 -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF "$depbase.Tpo" -c -o qpid/sys/posix/Thread.lo qpid/sys/posix/Thread.cpp; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi make[3]: *** [qpid/sys/posix/Time.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... g++ -DHAVE_CONFIG_H -I. -I. -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 -g -O2 -MT qpid/sys/posix/Thread.lo -MD -MP -MF qpid/sys/posix/.deps/Thread.Tpo -c qpid/sys/posix/Thread.cpp -fPIC -DPIC -o qpid/sys/posix/.libs/Thread.o make[3]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/gemmellr/workspace/qpid/qpid/cpp/src' make: *** [all-recursive] Error 1
