On 06/24/2011 07:18 PM, Sebastian Weber wrote:
I am on ubuntu 10.10 and trying to compile git version of graph-tool with gcc 4.4.5 and I get this error:
CXX graph_properties_copy.lo In file included from /home/sweber/.local/include/boost/python/detail/wrap_python.hpp:50, from /home/sweber/.local/include/boost/python/detail/prefix.hpp:13, from /home/sweber/.local/include/boost/python/extract.hpp:8, from graph_properties_copy.cc:19: /usr/local/include/python2.7/pyconfig.h:1149: warning: "_POSIX_C_SOURCE" redefined /usr/include/features.h:162: note: this is the location of the previous definition /usr/local/include/python2.7/pyconfig.h:1171: warning: "_XOPEN_SOURCE" redefined /usr/include/features.h:164: note: this is the location of the previous definition /home/sweber/.local/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp: In member function ‘void graph_tool::GraphInterface::CopyVertexProperty(const graph_tool::GraphInterface&, boost::any, boost::any)’: /home/sweber/.local/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp:18: error: ‘template<class F, class T1, class T2, class T3, class T4, class T5> struct boost::mpl::bind’ is not a function, /home/sweber/.local/include/boost/bind/bind.hpp:1728: error: conflict with ‘template<class A1, class M, class T> boost::_bi::bind_t<typename boost::_bi::dm_result<M T::*, A1>::type, boost::_mfi::dm<M, T>, typename boost::_bi::list_av_1<A1>::type> boost::bind(M T::*, A1)’ graph_properties_copy.cc:122: error: in call to ‘bind’
It seems you are using your own python and boost, not the Ubuntu packages... With the packaged version, everything used to work fine (but I've only been testing it on 11.04 lately). For some reason, in your setup the compiler is mixing up boost::mpl::bind and boost::bind. Try prefixing the bind call in graph_properties_copy.cc:122 with boost:: to see if the problem goes away. These two functions should not be mixed up like this, since they are in different namespaces and boost::mpl is not being imported. My guess is that there is something strange with your boost installation, or with the compiler (the first option is more likely).
BTW, the git archive on skewed is not working for me any more. I have to use one of the other mirrors.
What happens? I've just checked it, and it is working fine for me. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>