[ndnSIM] ./waf compile errors

robert.niemiec at students.unibe.ch robert.niemiec at students.unibe.ch
Mon Oct 15 02:44:09 PDT 2018


Dear all,


I am having some trouble configuring ndnSIM on my machine. I have managed to run the './waf configure' command (although I have had to add the --disable-python flag). The problem appears when I try to run './waf'.

The problem appears in this task:

[1333/3029] Compiling src/ndnSIM/ndn-cxx/src/security/tpm/back-end-file.cpp


Do you know how to fix this issue?

System info:

OS: Linux Mint 17.1 Cinnamon 64-bit

Linux Kernel: 3.13.0-37-generic


Please let me know if you need any additional information. Thank you in advance.

Below is the error stack trace.


Kind regards,

Robert Niemiec

In file included from ../src/network/utils/drop-tail-queue.h:22:0,
                 from ../src/network/utils/drop-tail-queue.cc:19:
./ns3/queue.h: In instantiation of ‘bool ns3::Queue<Item>::DoEnqueue(ns3::Queue<Item>::ConstIterator, ns3::Ptr<T>) [with Item = ns3::Packet; ns3::Queue<Item>::ConstIterator = std::_List_const_iterator<ns3::Ptr<ns3::Packet> >]’:
../src/network/utils/drop-tail-queue.h:102:34:   required from ‘bool ns3::DropTailQueue<Item>::Enqueue(ns3::Ptr<T>) [with Item = ns3::Packet]’
../src/network/utils/drop-tail-queue.cc:25:1:   required from here
./ns3/queue.h:488:3: error: no matching function for call to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::insert(ns3::Queue<ns3::Packet>::ConstIterator&, ns3::Ptr<ns3::Packet>&)’
   m_packets.insert (pos, item);
   ^
./ns3/queue.h:488:3: note: candidates are:
In file included from /usr/include/c++/4.8/list:64:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::value_type = ns3::Ptr<ns3::Packet>]
     list<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/list.tcc:98:5: note:   no known conversion for argument 1 from ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’ to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
In file included from /usr/include/c++/4.8/list:63:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::value_type = ns3::Ptr<ns3::Packet>]
       insert(iterator __position, value_type&& __x)
       ^
/usr/include/c++/4.8/bits/stl_list.h:1089:7: note:   no known conversion for argument 1 from ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’ to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
/usr/include/c++/4.8/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >]
       insert(iterator __p, initializer_list<value_type> __l)
       ^
/usr/include/c++/4.8/bits/stl_list.h:1106:7: note:   no known conversion for argument 1 from ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’ to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
/usr/include/c++/4.8/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = ns3::Ptr<ns3::Packet>]
       insert(iterator __position, size_type __n, const value_type& __x)
       ^
/usr/include/c++/4.8/bits/stl_list.h:1123:7: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >]
         insert(iterator __position, _InputIterator __first,
         ^
/usr/include/c++/4.8/bits/stl_list.h:1149:9: note:   template argument deduction/substitution failed:
In file included from ../src/network/utils/drop-tail-queue.h:22:0,
                 from ../src/network/utils/drop-tail-queue.cc:19:
./ns3/queue.h:488:3: note:   cannot convert ‘pos’ (type ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’) to type ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
   m_packets.insert (pos, item);
   ^
./ns3/queue.h: In instantiation of ‘ns3::Ptr<T> ns3::Queue<Item>::DoDequeue(ns3::Queue<Item>::ConstIterator) [with Item = ns3::Packet; ns3::Queue<Item>::ConstIterator = std::_List_const_iterator<ns3::Ptr<ns3::Packet> >]’:
../src/network/utils/drop-tail-queue.h:111:38:   required from ‘ns3::Ptr<T> ns3::DropTailQueue<Item>::Dequeue() [with Item = ns3::Packet]’
../src/network/utils/drop-tail-queue.cc:25:1:   required from here
./ns3/queue.h:516:3: error: no matching function for call to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::erase(ns3::Queue<ns3::Packet>::ConstIterator&)’
   m_packets.erase (pos);
   ^
./ns3/queue.h:516:3: note: candidates are:
In file included from /usr/include/c++/4.8/list:64:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/list.tcc:108:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >]
     list<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/list.tcc:108:5: note:   no known conversion for argument 1 from ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’ to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
In file included from /usr/include/c++/4.8/list:63:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/stl_list.h:1193:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >]
       erase(iterator __first, iterator __last)
       ^
/usr/include/c++/4.8/bits/stl_list.h:1193:7: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/network/utils/drop-tail-queue.h:22:0,
                 from ../src/network/utils/drop-tail-queue.cc:19:
./ns3/queue.h: In instantiation of ‘ns3::Ptr<T> ns3::Queue<Item>::DoRemove(ns3::Queue<Item>::ConstIterator) [with Item = ns3::Packet; ns3::Queue<Item>::ConstIterator = std::_List_const_iterator<ns3::Ptr<ns3::Packet> >]’:
../src/network/utils/drop-tail-queue.h:124:37:   required from ‘ns3::Ptr<T> ns3::DropTailQueue<Item>::Remove() [with Item = ns3::Packet]’
../src/network/utils/drop-tail-queue.cc:25:1:   required from here
./ns3/queue.h:545:3: error: no matching function for call to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::erase(ns3::Queue<ns3::Packet>::ConstIterator&)’
   m_packets.erase (pos);
   ^
./ns3/queue.h:545:3: note: candidates are:
In file included from /usr/include/c++/4.8/list:64:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/list.tcc:108:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >]
     list<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/list.tcc:108:5: note:   no known conversion for argument 1 from ‘ns3::Queue<ns3::Packet>::ConstIterator {aka std::_List_const_iterator<ns3::Ptr<ns3::Packet> >}’ to ‘std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::iterator {aka std::_List_iterator<ns3::Ptr<ns3::Packet> >}’
In file included from /usr/include/c++/4.8/list:63:0,
                 from ./ns3/object-base.h:26,
                 from ./ns3/chunk.h:24,
                 from ./ns3/header.h:24,
                 from ./ns3/packet.h:25,
                 from ./ns3/queue.h:26,
                 from ../src/network/utils/drop-tail-queue.h:22,
                 from ../src/network/utils/drop-tail-queue.cc:19:
/usr/include/c++/4.8/bits/stl_list.h:1193:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = ns3::Ptr<ns3::Packet>; _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<ns3::Ptr<ns3::Packet> >]
       erase(iterator __first, iterator __last)
       ^
/usr/include/c++/4.8/bits/stl_list.h:1193:7: note:   candidate expects 2 arguments, 1 provided

Waf: Leaving directory `/home/robertn/ndnSIM/ns-3/build'
Build failed
 -> task in 'ns3-network' failed (exit status 1):
    {task 139989506150992: cxx drop-tail-queue.cc -> drop-tail-queue.cc.1.o}
['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-std=c++11', '-fPIC', '-pthread', '-I.', '-I..', '-DNS3_BUILD_PROFILE_DEBUG', '-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_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_STD_TO_STRING=1', '-DHAVE_PTHREAD=1', '-DHAVE_SQLITE3=1', '-DHAVE_OPENSSL=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_SQLITE3=1', '../src/network/utils/drop-tail-queue.cc', '-c', '-o', '/home/robertn/ndnSIM/ns-3/build/src/network/utils/drop-tail-queue.cc.1.o']


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20181015/679317aa/attachment-0001.html>


More information about the ndnSIM mailing list