"Building dce-linux-inkernel - Problem" in MPTCP with ns3-dce

252 views
Skip to first unread message

김진환

unread,
Jul 25, 2016, 3:44:36 AM7/25/16
to ns-3-users
Hi, I am trying to do mptcp simulation in ns3 dce. But I have same  failed error in building "dce-linux-inkernel"

I followed Hajime's instruction in
https://plus.google.com/wm/4/106093986108036190339/posts/1QUmR3n3vNA

I changed version with modifying 0.88 to 0.89, and using sim-ns3-3.14.0-branch instead of sim-ns3-3.11.0-branch.

I tried to install this in various versions of ubuntu (12.04, 14.04, 16.04) and installed all required packages.

But all of try is failed.

when I tried "bake with -vvv", outputs are following. Please help me to solve this problem.

------------------------------
--------------------------------------
 Python bindings compilation
--------------------------------------------------------------------
[ 10/375] lib/pkgconfig/libns3-dev-netlink-debug.pc:  -> build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[ 78/375] cxx: model/linux/ipv6-linux.cc -> build/model/linux/ipv6-linux.cc.6.o
[106/375] cxx: helper/dce-application-helper.cc -> build/helper/dce-application-helper.cc.6.o
[107/375] cxx: helper/ccn-client-helper.cc -> build/helper/ccn-client-helper.cc.6.o
[108/375] cxx: helper/linux-stack-helper.cc -> build/helper/linux-stack-helper.cc.6.o
../model/linux/ipv6-linux.cc: In static member function ‘static void ns3::Ipv6Linux::InstallNode(ns3::Ptr<ns3::Node>)’:
../model/linux/ipv6-linux.cc:457:3: error: ‘ObjectFactory’ was not declared in this scope
   ObjectFactory factory;
   ^
../model/linux/ipv6-linux.cc:457:17: error: expected ‘;’ before ‘factory’
   ObjectFactory factory;
                 ^
../model/linux/ipv6-linux.cc:458:3: error: ‘factory’ was not declared in this scope
   factory.SetTypeId ("ns3::Ipv6Linux");
   ^
Waf: Leaving directory `/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build'
Build failed
 -> task in './lib/ns3-dce' failed (exit status 1):
    {task 140028805275024: cxx ipv6-linux.cc -> ipv6-linux.cc.6.o}
['/usr/bin/g++', '-g', '-fPIC', '-pthread', '-pthread', '-pthread', '-I/home/jin/mptcp/arch/sim', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build/model', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/model', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build/model/freebsd', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/model/freebsd', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build/helper', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/helper', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build/model/linux', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/model/linux', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build/include', '-I/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/include', '-I/home/jin/mptcp/arch/sim/test/buildtop/build/include/ns3-dev', '-DNS3_LOG_ENABLE', '-DNS3_ASSERT_ENABLE', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TAP_BRIDGE=1', '-DHAVE_NS3_NETANIM=1', '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_CSMA=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_POINT_TO_POINT_LAYOUT=1', '-DHAVE_NS3_MPI=1', '-DHAVE_NS3_LTE=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_FD_NET_DEVICE=1', '-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_SIM_H=1', '-DKERNEL_STACK=Y', '-DHAVE_NS3_FLOW_MONITOR=1', '-DHAVE_HOOK_MANAGER_H=1', '-DPYTHONDIR="/home/jin/mptcp/arch/sim/test/buildtop/build/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/home/jin/mptcp/arch/sim/test/buildtop/build/lib/python2.7/site-packages"', '-DHAVE_PYTHON_H=1', '../model/linux/ipv6-linux.cc', '-c', '-o', 'model/linux/ipv6-linux.cc.6.o']
()
 >> Building dce-linux-inkernel - Problem
   > Subprocess failed with error 1: ['/home/jin/mptcp/arch/sim/test/buildtop/source/ns-3-dce/waf']

TaskError

  File "/home/jin/mptcp/arch/sim/test/bake/bake/Module.py", line 423, in build
    self._build.build(env, jobs)
  File "/home/jin/mptcp/arch/sim/test/bake/bake/ModuleBuild.py", line 435, in build
    env=self._env(env.objdir))
  File "/home/jin/mptcp/arch/sim/test/bake/bake/ModuleEnvironment.py", line 533, in run
    raise TaskError('Subprocess failed with error %d: %s' % (retcode, str(args)))

 > Error:  Critical dependency, module "dce-linux-inkernel" failed

DependencyUnmet

  File "/home/jin/mptcp/arch/sim/test/bake/bake/Bake.py", line 569, in _iterate
    deps.resolve(targets)
  File "/home/jin/mptcp/arch/sim/test/bake/bake/Dependencies.py", line 198, in resolve
    self._resolve_serial(targets, callback)
  File "/home/jin/mptcp/arch/sim/test/bake/bake/Dependencies.py", line 433, in _resolve_serial
    finished = self._resolve_one_iteration(targets, callback)
  File "/home/jin/mptcp/arch/sim/test/bake/bake/Dependencies.py", line 400, in _resolve_one_iteration
    raise DependencyUnmet(i.dst())



Szabolcs Nováczki

unread,
Jul 26, 2016, 7:36:30 AM7/26/16
to ns-3-users
Hi! I have the same issue with the base ns-3-dce,  no mptcp. Have you been able to solve this.BR, Szabolcs

Matt Anonyme

unread,
Jul 26, 2016, 2:47:36 PM7/26/16
to ns-3-users
Try to install each component (ns3 then DCE) without bake. That should work if you pay attention that the version number of ns3 and DCE are compatible.
Message has been deleted

김진환

unread,
Jul 26, 2016, 11:02:14 PM7/26/16
to ns-3-users
is there any instruction or tutorial to install each component without bake??? I'm not familiar with ubuntu....

Matt Anonyme

unread,
Jul 27, 2016, 7:33:05 AM7/27/16
to ns-3-users
I can only encourage you to look at https://www.nsnam.org/docs/dce/manual/html/getting-started.html , section

"Building DCE using WAF" (looks like the links need to be updated, DCE is now hosted on github, and ns-3 version is not that one anymore.

Also the documentation might like is a correspondance ns3 version <-> DCE version but you can find those in the mailing list archives.

good luck

김진환

unread,
Jul 28, 2016, 7:02:08 AM7/28/16
to ns-3-users
Thank you for advice.

I installed ns3.25 and problem is solved.

2016년 7월 27일 수요일 오후 8시 33분 5초 UTC+9, Matt Anonyme 님의 말:

benaouda chaht

unread,
May 1, 2017, 9:25:34 AM5/1/17
to ns-3-users

Hi, I have the same implementation on ubuntu 14.04, also I changed to version 0.89 and sim-ns3-3.14.0-branch
BUT after commande "make testbin -C arch/sim/test"
I have this error:

Building ccnx - Problem
 > Problem: Optional dependency, module "ccnx" failed
   This may reduce the  functionality of the final build.
   However, bake will continue since "ccnx" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

 >> Building elf-loader - Problem
 > Problem: Optional dependency, module "elf-loader" failed
   This may reduce the  functionality of the final build.
   However, bake will continue since "elf-loader" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

 >> Building pybindgen - OK
 >> Building ns-3-dev-dce - Problem
 > Error:  Critical dependency, module "ns-3-dev-dce" failed
   For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)
make: *** [testbin] Erreur 1


How can I solve this problem !, help me please

shadi sadeghpour

unread,
May 26, 2017, 1:48:17 PM5/26/17
to ns-3-users
Hi,

I have exactly the same problem, would you please answer this problem as well.

appreciate any help,
Shadi

xannisa

unread,
Jun 1, 2017, 7:53:24 PM6/1/17
to ns-3-users
Hi,

I have the same problem, please someone reply this.
Thank u so much

Regards,
Reply all
Reply to author
Forward
0 new messages