Re: [MacPorts] #32558: mkvtoolnix: error: ‘boost::BOOST_FOREACH’ has not been declared

MacPorts noreply at macports.org
Tue Dec 27 10:18:24 PST 2011


#32558: mkvtoolnix: error: ‘boost::BOOST_FOREACH’ has not been declared
----------------------------------+-----------------------------------------
  Reporter:  palmer100@…          |       Owner:  kona8lend@…        
      Type:  defect               |      Status:  reopened           
  Priority:  Normal               |   Milestone:                     
 Component:  ports                |     Version:  2.0.3              
Resolution:                       |    Keywords:                     
      Port:  mkvtoolnix           |  
----------------------------------+-----------------------------------------

Comment(by akim.demaille@…):

 Replying to [comment:13 akim.demaille@…]:
 > Because of that fix, it is no longer possible to have a workaround
 common to all the Boost versions!  It was trivial to fix 1.48 by define
 the macro *before* including the header:
 Now:

 {{{
 distcc[34515] ERROR: compile
 /Users/akim/.ccache/tmp/backtrace.tmp.padam.local.34511.ii on localhost
 failed
 In file included from ../../../../sdk-
 remote/libport/include/libport/foreach.hh:46,
                  from ../../../../sdk-
 remote/libport/include/libport/containers.hh:29,
                  from ../../../../sdk-
 remote/libport/lib/libport/backtrace.cc:17:
 /opt/local/include/boost/foreach.hpp:125: error: redefinition of 'struct
 boost::BOOST_FOREACH::is_lightweight_proxy<T>'
 /opt/local/include/boost/foreach_fwd.hpp:63: error: previous definition of
 'struct boost::BOOST_FOREACH::is_lightweight_proxy<T>'
 /opt/local/include/boost/foreach.hpp:135: error: redefinition of 'struct
 boost::BOOST_FOREACH::is_noncopyable<T>'
 /opt/local/include/boost/foreach_fwd.hpp:68: error: previous definition of
 'struct boost::BOOST_FOREACH::is_noncopyable<T>'
 /opt/local/include/boost/foreach_fwd.hpp: In instantiation of
 'boost::BOOST_FOREACH::is_noncopyable<std::vector<std::basic_string<char,
 std::char_traits<char>, std::allocator<char> >,
 std::allocator<std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > > > >':
 }}}

 of course.

-- 
Ticket URL: <https://trac.macports.org/ticket/32558#comment:14>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list