Giter Club home page Giter Club logo

Comments (3)

pavel-odintsov avatar pavel-odintsov commented on June 6, 2024

Any news? Folks it's really important for me :(

from netmap.

pavel-odintsov avatar pavel-odintsov commented on June 6, 2024

Looks fixed in recent Git version! Close it :)

from netmap.

pavel-odintsov avatar pavel-odintsov commented on June 6, 2024

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?

from netmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.