Hi, i got the following error while building dce. Can somebody please let me know how to solve it?
thanks in advance! :)
/usr/bin/python /home/lenovo/Desktop/dce/bake/source/ns-3-dce/waf dir=/home/lenovo/Desktop/dce/bake/source/ns-3-dce
Waf: Entering directory `/home/lenovo/Desktop/dce/bake/source/ns-3-dce/build'
--------------------------------------------------------------------
Python bindings compilation
--------------------------------------------------------------------
[ 10/371] Linking build/lib/libns3-netlink.so
[ 10/371] Creating build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[ 20/371] Compiling model/unix-datagram-socket-fd.cc
[ 23/371] Compiling model/dce-fd.cc
[ 24/371] Compiling model/dce-stdio.cc
../model/unix-datagram-socket-fd.cc: In member function ‘void ns3::UnixDatagramSocketFd::IcmpCallback(ns3::Ipv4Address, uint8_t, uint8_t, uint8_t, uint32_t)’:
../model/unix-datagram-socket-fd.cc:102:19: error: ‘ICMPV4_DEST_UNREACH’ is not a member of ‘ns3::Icmpv4Header’
if (icmpType == Icmpv4Header::ICMPV4_DEST_UNREACH
^
../model/unix-datagram-socket-fd.cc:103:22: error: ‘ICMPV4_FRAG_NEEDED’ is not a member of ‘ns3::Icmpv4DestinationUnreachable’
&& icmpCode == Icmpv4DestinationUnreachable::ICMPV4_FRAG_NEEDED)
^
../model/unix-datagram-socket-fd.cc:107:24: error: ‘ICMPV4_DEST_UNREACH’ is not a member of ‘ns3::Icmpv4Header’
else if (icmpType == Icmpv4Header::ICMPV4_DEST_UNREACH
^
../model/unix-datagram-socket-fd.cc:108:27: error: ‘ICMPV4_PORT_UNREACHABLE’ is not a member of ‘ns3::Icmpv4DestinationUnreachable’
&& icmpCode == Icmpv4DestinationUnreachable::ICMPV4_PORT_UNREACHABLE)
^
../model/unix-datagram-socket-fd.cc:112:24: error: ‘ICMPV4_TIME_EXCEEDED’ is not a member of ‘ns3::Icmpv4Header’
else if (icmpType == Icmpv4Header::ICMPV4_TIME_EXCEEDED
^
../model/unix-datagram-socket-fd.cc:113:27: error: ‘ICMPV4_TIME_TO_LIVE’ is not a member of ‘ns3::Icmpv4TimeExceeded’
&& icmpCode == Icmpv4TimeExceeded::ICMPV4_TIME_TO_LIVE)
^
../model/unix-datagram-socket-fd.cc:117:24: error: ‘ICMPV4_TIME_EXCEEDED’ is not a member of ‘ns3::Icmpv4Header’
else if (icmpType == Icmpv4Header::ICMPV4_TIME_EXCEEDED
^
../model/unix-datagram-socket-fd.cc:118:27: error: ‘ICMPV4_FRAGMENT_REASSEMBLY’ is not a member of ‘ns3::Icmpv4TimeExceeded’
&& icmpCode == Icmpv4TimeExceeded::ICMPV4_FRAGMENT_REASSEMBLY)
^
Waf: Leaving directory `/home/lenovo/Desktop/dce/bake/source/ns-3-dce/build'
Build failed
-> task in './lib/ns3-dce' failed (exit status 1):
{task 139771433193296: cxx unix-datagram-socket-fd.cc -> unix-datagram-socket-fd.cc.6.o}
['/usr/bin/g++', '-g', '-std=c++11', '-Wno-deprecated-declarations', '-fPIC', '-pthread', '-pthread', '-pthread', '-I/home/lenovo/Desktop/dce/bake/source/net-next-nuse-4.4.0/arch/lib', '-Imodel', '-I../model', '-Imodel/freebsd', '-I../model/freebsd', '-Ihelper', '-I../helper', '-Imodel/linux', '-I../model/linux', '-Iinclude', '-I../include', '-I/home/lenovo/Desktop/dce/bake/build/include/ns3.26', '-DNS3_LOG_ENABLE', '-DNS3_ASSERT_ENABLE', '-DHAVE_STDINT_H=1', '-DHAVE_INTTYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_SYS_STAT_H=1', '-DHAVE_DIRENT_H=1', '-DHAVE_GETCPUFEATURES=1', '-DHAVE_SECURE_GETENV=1', '-DHAVE_VALGRIND_VALGRIND_H=1', '-DHAVE_VALGRIND_MEMCHECK_H=1', '-DHAVE_SIM_H=1', '-DKERNEL_STACK=Y', '-DHAVE_HOOK_MANAGER_H=1', '-DPYTHONDIR="/home/lenovo/Desktop/dce/bake/build/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/home/lenovo/Desktop/dce/bake/build/lib/python2.7/site-packages"', '-DHAVE_PYEMBED=1', '-DHAVE_PYEXT=1', '-DHAVE_PYTHON_H=1', '-DHAVE_NS3_CORE=1', '-DHAVE_GSL=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '../model/unix-datagram-socket-fd.cc', '-c', '-o', '/home/lenovo/Desktop/dce/bake/source/ns-3-dce/build/model/unix-datagram-socket-fd.cc.6.o']
()
>> Building dce-linux-1.10 - Problem
> Subprocess failed with error 1: ['/usr/bin/python', '/home/lenovo/Desktop/dce/bake/source/ns-3-dce/waf']
> Error: Critical dependency, module "dce-linux-1.10" failed