You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Mike Tracy <mi...@gmail.com> on 2011/09/12 18:52:26 UTC

error building qpidc-0.12 on backtrack 5 R1 image

Hello list.  I have looked all over google for a solution to this but
have yet been unable to find one that doesn't include "downgrade gcc
to 4.1" which is not an option for me right now.  If anyone can help
I'd be greatly appreciative.

I am trying to build qpidc-0.12 on a backtrack 5 R1 image but the
following error happens no matter what I do:

ake[3]: Entering directory `/root/build/qpidc-0.12/src'
depbase=`echo qpid/broker/Daemon.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/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 -DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\"
-DBOOST_FILESYSTEM_VERSION=2 -g -O2 -MT qpid/broker/Daemon.lo -MD -MP
-MF $depbase.Tpo -c -o qpid/broker/Daemon.lo qpid/broker/Daemon.cpp
&&\
	mv -f $depbase.Tpo $depbase.Plo
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
-DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\" -DBOOST_FILESYSTEM_VERSION=2
-g -O2 -MT qpid/broker/Daemon.lo -MD -MP -MF
qpid/broker/.deps/Daemon.Tpo -c qpid/broker/Daemon.cpp  -fPIC -DPIC -o
qpid/broker/.libs/Daemon.o
cc1plus: warnings being treated as errors
qpid/broker/Daemon.cpp: In member function ‘void qpid::broker::Daemon::fork()’:
qpid/broker/Daemon.cpp:96: error: ignoring return value of ‘ssize_t
write(int, const void*, size_t)’, declared with attribute
warn_unused_result
qpid/broker/Daemon.cpp:102: error: ignoring return value of ‘ssize_t
write(int, const void*, size_t)’, declared with attribute
warn_unused_result
make[3]: *** [qpid/broker/Daemon.lo] Error 1
make[3]: Leaving directory `/root/build/qpidc-0.12/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/build/qpidc-0.12/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/build/qpidc-0.12/src'
make: *** [all-recursive] Error 1
root@bt:~/build/qpidc-0.12# uname -a

Linux bt 2.6.39.4 #1 SMP Thu Aug 18 13:38:02 NZST 2011 i686 GNU/Linux
root@bt:~/build/qpidc-0.12#

Thanks,

-mike tracy

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: error building qpidc-0.12 on backtrack 5 R1 image

Posted by Gordon Sim <gs...@redhat.com>.
On 09/12/2011 05:52 PM, Mike Tracy wrote:
> Hello list.  I have looked all over google for a solution to this but
> have yet been unable to find one that doesn't include "downgrade gcc
> to 4.1" which is not an option for me right now.  If anyone can help
> I'd be greatly appreciative.

Passing --disable-warnings to configure didn't help?

> I am trying to build qpidc-0.12 on a backtrack 5 R1 image but the
> following error happens no matter what I do:
>
> ake[3]: Entering directory `/root/build/qpidc-0.12/src'
> depbase=`echo qpid/broker/Daemon.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> 	/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 -DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\"
> -DBOOST_FILESYSTEM_VERSION=2 -g -O2 -MT qpid/broker/Daemon.lo -MD -MP
> -MF $depbase.Tpo -c -o qpid/broker/Daemon.lo qpid/broker/Daemon.cpp
> &&\
> 	mv -f $depbase.Tpo $depbase.Plo
> 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
> -DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\" -DBOOST_FILESYSTEM_VERSION=2
> -g -O2 -MT qpid/broker/Daemon.lo -MD -MP -MF
> qpid/broker/.deps/Daemon.Tpo -c qpid/broker/Daemon.cpp  -fPIC -DPIC -o
> qpid/broker/.libs/Daemon.o
> cc1plus: warnings being treated as errors
> qpid/broker/Daemon.cpp: In member function ‘void qpid::broker::Daemon::fork()’:
> qpid/broker/Daemon.cpp:96: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute
> warn_unused_result
> qpid/broker/Daemon.cpp:102: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute
> warn_unused_result
> make[3]: *** [qpid/broker/Daemon.lo] Error 1
> make[3]: Leaving directory `/root/build/qpidc-0.12/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/build/qpidc-0.12/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/build/qpidc-0.12/src'
> make: *** [all-recursive] Error 1
> root@bt:~/build/qpidc-0.12# uname -a
>
> Linux bt 2.6.39.4 #1 SMP Thu Aug 18 13:38:02 NZST 2011 i686 GNU/Linux
> root@bt:~/build/qpidc-0.12#
>
> Thanks,
>
> -mike tracy
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: error building qpidc-0.12 on backtrack 5 R1 image

Posted by Alan Conway <ac...@redhat.com>.
On 09/12/2011 12:52 PM, Mike Tracy wrote:
> Hello list.  I have looked all over google for a solution to this but
> have yet been unable to find one that doesn't include "downgrade gcc
> to 4.1" which is not an option for me right now.  If anyone can help
> I'd be greatly appreciative.
>
> I am trying to build qpidc-0.12 on a backtrack 5 R1 image but the
> following error happens no matter what I do:
>
> ake[3]: Entering directory `/root/build/qpidc-0.12/src'
> depbase=`echo qpid/broker/Daemon.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> 	/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 -DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\"
> -DBOOST_FILESYSTEM_VERSION=2 -g -O2 -MT qpid/broker/Daemon.lo -MD -MP
> -MF $depbase.Tpo -c -o qpid/broker/Daemon.lo qpid/broker/Daemon.cpp
> &&\
> 	mv -f $depbase.Tpo $depbase.Plo
> 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
> -DQPID_LIBEXEC_DIR=\"/xnx/libexec/qpid\" -DBOOST_FILESYSTEM_VERSION=2
> -g -O2 -MT qpid/broker/Daemon.lo -MD -MP -MF
> qpid/broker/.deps/Daemon.Tpo -c qpid/broker/Daemon.cpp  -fPIC -DPIC -o
> qpid/broker/.libs/Daemon.o
> cc1plus: warnings being treated as errors
> qpid/broker/Daemon.cpp: In member function ‘void qpid::broker::Daemon::fork()’:
> qpid/broker/Daemon.cpp:96: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute
> warn_unused_result
> qpid/broker/Daemon.cpp:102: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute
> warn_unused_result
> make[3]: *** [qpid/broker/Daemon.lo] Error 1
> make[3]: Leaving directory `/root/build/qpidc-0.12/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/build/qpidc-0.12/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/build/qpidc-0.12/src'
> make: *** [all-recursive] Error 1
> root@bt:~/build/qpidc-0.12# uname -a
>
> Linux bt 2.6.39.4 #1 SMP Thu Aug 18 13:38:02 NZST 2011 i686 GNU/Linux
> root@bt:~/build/qpidc-0.12#
>
> Thanks,
>
> -mike tracy
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>

It looks like that's already been fixed on trunk.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org