Open GoogleCodeExporter opened 9 years ago
Any news? Folks it's really important for me :(
Looks fixed in recent Git version! Close it :)
Actually we have asme issue.
I've using Boost 1.60 with Netmap and somewhere in Boost D() uses for debugging.
So it conflicts with Netmap.
In file included from /root/fastnetmon/src/sflow_agent/sflow_agent.cpp:8:0:
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp: In constructor ‘boost::move_upd::unique_ptr_data<P, D, false>::unique_ptr_data()’:
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected identifier before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:133:9: note: in expansion of macro ‘D’
: D(), m_p()
^
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected ‘{’ before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:133:9: note: in expansion of macro ‘D’
: D(), m_p()
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp: In constructor ‘boost::move_upd::unique_ptr_data<P, D, false>::unique_ptr_data(P)’:
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected identifier before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:137:9: note: in expansion of macro ‘D’
: D(), m_p(p)
^
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected ‘{’ before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:137:9: note: in expansion of macro ‘D’
: D(), m_p(p)
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp: In constructor ‘boost::move_upd::unique_ptr_data<P, D, false>::unique_ptr_data(P, boost::move_upd::unique_ptr_data<P, D, false>::deleter_arg_type1)’:
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected identifier before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:141:9: note: in expansion of macro ‘D’
: D(d1), m_p(p)
^
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected ‘{’ before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:141:9: note: in expansion of macro ‘D’
: D(d1), m_p(p)
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp: In constructor ‘boost::move_upd::unique_ptr_data<P, D, false>::unique_ptr_data(P, U&&)’:
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected identifier before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:146:9: note: in expansion of macro ‘D’
: D(::boost::forward<U>(d)), m_p(p)
^
/opt/dps/libraries/netmap_git_d83f5e6e2d7b9a90e1ac1977e6d26a704f4e5264/include/net/netmap_user.h:174:2: error: expected ‘{’ before ‘do’
do { \
^
/opt/dps/libraries/boost_1_60_0/boost/move/unique_ptr.hpp:146:9: note: in expansion of macro ‘D’
: D(::boost::forward<U>(d)), m_p(p)
^
make[2]: *** [CMakeFiles/sflow_agent.dir/sflow_agent/sflow_agent.cpp.o] Error 1
Could you replace D() define by NETMAP_DEBUG for identifier uniqueness and preventing similar issues in future?
Original issue reported on code.google.com by
pavel.odintsov
on 2 Mar 2015 at 12:56