qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Kargapolov" <dmitriy.kargapo...@gmail.com>
Subject Re: M4 beta c++ compilation error
Date Sat, 06 Dec 2008 01:23:23 GMT
On Fri, Dec 5, 2008 at 2:25 PM, Gordon Sim <gsim@redhat.com> wrote:
> Dmitriy Kargapolov wrote:
>>
>> I'm pretty sure upgrading compiler will help.

1. Installed gcc version 4.3.2, boost v1.37, tried to build.
---
 g++ -DHAVE_CONFIG_H -I. -Igen -I./gen -Werror -pedantic -Wall -Wextra
-Wno-shadow -Wpointer-arith -Wcast-qual -Wc
ast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch
-Wno-system-headers -Woverloaded-virtual -I/usr/loc
al/include/boost-1_37 -MT qpid/acl/Acl.lo -MD -MP -MF
qpid/acl/.deps/Acl.Tpo -c qpid/acl/Acl.cpp  -fPIC -DPIC -o q
pid/acl/.libs/Acl.o
cc1plus: warnings being treated as errors
In file included from
/usr/local/include/boost-1_37/boost/ptr_container/ptr_map_adapter.hpp:19,
                 from
/usr/local/include/boost-1_37/boost/ptr_container/ptr_map.hpp:20,
                 from ./qpid/broker/DtxManager.h:24,
                 from ./qpid/broker/Broker.h:28,
                 from qpid/acl/Acl.cpp:22:
/usr/local/include/boost-1_37/boost/ptr_container/detail/map_iterator.hpp:52:
error: type qualifiers ignored on fu
nction return type
---

2. Re-configured with --disable-warning, make still failed:
---
 g++ -DHAVE_CONFIG_H -I. -Igen -I./gen -I/usr/local/include/boost-1_37
-MT qpid/broker/Message.lo -MD -MP -MF qpid/broker/.deps/Message.Tpo
-c qpid/broker/Message.cpp  -fPIC -DPIC -o qpid/broker/.libs/Message.o
qpid/broker/Message.cpp: In member function 'virtual void
qpid::broker::Message::allEnqueuesComplete()':
qpid/broker/Message.cpp:349: error: no matching function for call to
'swap(boost::function<void ()(const
boost::intrusive_ptr<qpid::broker::Message>&)>*&, boost::function<void
()(const boost::intrusive_ptr<qpid::broker::Message>&)>*&)'
---

Mime
View raw message