[ndnSIM] Compiling Errors

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Aug 9 17:56:22 PDT 2013


Hi Ravi,

The error message indicates that you're still using the system's version of boost libraries (if you're on Ubuntu 12.04, it can be 1.46, 1.48, or both... which make things even more confusing).

Did you use "--boost-includes=/usr/local/include --boost-libs=/usr/local/lib" configure options?

In any case, I can recommend you to get the latest version of ndnSIM (master branch, it is almost ready to be 0.5-rc2), as well as latest version of custom NS-3.

---
Alex

On Aug 9, 2013, at 5:51 PM, Ravi Ravindran <ravi.ravindran at gmail.com> wrote:

> 
> Hi Alex,
> 
> I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of  1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log.
> 
> Any suggestions ?
> 
> [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o
> [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o
> In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0,
>                  from /usr/local/include/boost/unordered/unordered_set.hpp:17,
>                  from /usr/local/include/boost/unordered_set.hpp:16,
>                  from /usr/local/include/boost/graph/adjacency_list.hpp:21,
>                  from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32,
>                  from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24:
> /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1)
> /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ‘template<class Node> struct boost::unordered::iterator_detail::iterator’
> /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2)
> /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ‘template<class Node, class ConstNodePointer> struct boost::unordered::iterator_detail::c_iterator’
> /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2)
> /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ‘template<class Node, class Policy> struct boost::unordered::iterator_detail::l_iterator’
> /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3)
> /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ‘template<class Node, class ConstNodePointer, class Policy> struct boost::unordered::iterator_detail::cl_iterator’
> /usr/local/include/boost/unordered/detail/table.hpp: In member function ‘std::size_t boost::unordered::detail::table<Types>::bucket_size(std::size_t) const’:
> /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ‘node_’ in ‘it’, which is of non-class type ‘boost::unordered::detail::table<Types>::iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ‘node_’ in ‘it’, which is of non-class type ‘boost::unordered::detail::table<Types>::iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ‘node_’ in ‘it’, which is of non-class type ‘boost::unordered::detail::table<Types>::iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp: In member function ‘void boost::unordered::detail::table<Types>::delete_node(boost::unordered::detail::table<Types>::c_iterator)’:
> /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ‘node_’ in ‘n’, which is of non-class type ‘boost::unordered::detail::table<Types>::c_iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ‘node_’ in ‘n’, which is of non-class type ‘boost::unordered::detail::table<Types>::c_iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ‘node_’ in ‘n’, which is of non-class type ‘boost::unordered::detail::table<Types>::c_iterator {aka int}’
> /usr/local/include/boost/unordered/detail/table.hpp: In member function ‘boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_matching_node(boost::unordered::detail::table<Types>::iterator) const’:
> /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ‘*’ (have ‘boost::unordered::detail::table<Types>::iterator {aka int}’)
> Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build'
> Build failed
>  -> task in 'ns3-ndnSIM' failed (exit status 1): 
> 	{task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o}
> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o']
> 
> 
> Regards,
> Ravi
> 
> <config.log>_______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130809/2ac0bcc9/attachment.html>


More information about the ndnSIM mailing list