Hi,

The cmake build fails with the same error:

[ 22%] Building CXX object src/CMakeFiles/qpidcommon.dir/
qpid/sys/posix/Time.o
cc1plus: warnings being treated as errors
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp: In
function ‘std::istream& qpid::sys::operator>>(std::istream&,
qpid::sys::Duration&)’:
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:96:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:101:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:102:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:103:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
/home/f391718/workspace/qpid/qpid/cpp/src/qpid/sys/posix/Time.cpp:104:
warning: passing ‘double’ for argument 1 to
‘qpid::sys::Duration::Duration(int64_t)’
make[2]: *** [src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/Time.o] Error 1
make[1]: *** [src/CMakeFiles/qpidcommon.dir/all] Error 2
make: *** [all] Error 2

$ cmake --version
cmake version 2.8.4
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Kind Regards,
Alex


On 23 April 2013 11:08, Robbie Gemmell <[email protected]> wrote:

> 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
>

Reply via email to