dce-linux-1.10 build failed

75 views
Skip to first unread message

chandana jayram

unread,
Nov 11, 2018, 3:38:39 PM11/11/18
to ns-3-users
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


imtia...@gmail.com

unread,
Nov 6, 2021, 6:25:35 PM11/6/21
to ns-3-users
hello, did you get any solution for this problem? I am also getting same issue...

Tom Henderson

unread,
Nov 6, 2021, 6:38:11 PM11/6/21
to ns-3-...@googlegroups.com, imtia...@gmail.com
On 11/6/21 3:25 PM, imtia...@gmail.com wrote:
> hello, did you get any solution for this problem? I am also getting same
> issue...

Hello, you are replying to a message that is 3 years old. Can you
clarify what is your issue presently? What version of DCE? At the
moment, only DCE version 1.11 is supported for Ubuntu 16.04.

- Tom

Dr. Imtiaz Mahmud

unread,
Nov 6, 2021, 7:24:18 PM11/6/21
to Tom Henderson, ns-3-...@googlegroups.com
Thank you for your prompt response. I just solved that problem. I was trying to install DCE 1.10 for mmwave NS-3.27, and there were some format issues in unix-datagram-socket-fd.cc, which I could solve and succeeded to compile. However, just for your information, I tried to compile mmwave NS-3.33 with DCE 1.11, but failed. Actually, the NS-3.33 was not integrating with DCE 1.11. I was using bake for the build and had configured bakefile.xml to install NS-3.33 instead of NS-3.34 with DCE 1.11, but failed. The reason was dce waf configuration was unsuccessful. Only NS-3.34 with DCE 1.11 was built. Please let me know if there is a way to install NS-3.33 with DCE 1.11.

Thank you once again for your reply.
--

Thank you.

Best regards

Dr. Imtiaz Mahmud

Postdoctoral Research Fellow,

Telecommunication and Networks Lab.
School of Electronic and Electrical Engineering,
Kyungpook National University,
Korea.
Cell Phone: +82-10-2961-0036
           imt...@knu.ac.kr

Tom Henderson

unread,
Nov 7, 2021, 11:51:18 PM11/7/21
to ns-3-...@googlegroups.com, Dr. Imtiaz Mahmud


On 11/6/21 6:23 PM, Dr. Imtiaz Mahmud wrote:
> Thank you for your prompt response. I just solved that problem. I was
> trying to install DCE 1.10 for mmwave NS-3.27, and there were some
> format issues in unix-datagram-socket-fd.cc, which I could solve and
> succeeded to compile. However, just for your information, I tried to
> compile mmwave NS-3.33 with DCE 1.11, but failed. Actually, the NS-3.33
> was not integrating with DCE 1.11. I was using bake for the build and
> had configured bakefile.xml to install NS-3.33 instead of NS-3.34 with
> DCE 1.11, but failed. The reason was dce waf configuration
> was unsuccessful. Only NS-3.34 with DCE 1.11 was built. Please let me
> know if there is a way to install NS-3.33 with DCE 1.11.

I was able to make dce-1.11 build with ns-3.33 by doing the following:

1) substitute 'ns-3.33' for 'ns-3.34' in the bakeconf.xml module for
dce-meta-1.11 module.

2) after bake.py download, edit the DCE files
src/model/linux/ipv6-linux.h and src/model/linux/ipv6-linux.cc to undo
these changes:

https://github.com/direct-code-execution/ns-3-dce/commit/21e6f0ec6ecb771b4b08200ee9faed5270f17803

3) continue with bake.py build step as usual

- Tom

Dr. Imtiaz Mahmud

unread,
Nov 8, 2021, 5:03:46 AM11/8/21
to Tom Henderson, ns-3-...@googlegroups.com
Thank you very much. It worked for me too.
Reply all
Reply to author
Forward
0 new messages