[ndnSIM] Issue Running ndnSIM-NLSR

Albatool batool0haw at gmail.com
Tue Dec 3 20:26:57 PST 2024


  Hello,

I am trying to run ndnSIM-NLSR and so far I was able to configure
ndnSIM-NLSR successfully. However, when I try to run ndnSIM using ./waf, I
get the following error in all Ubuntu versions 14.04, 16.04, and 18.04:

[2400/3287] Compiling src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp
> [2401/3287] Compiling
> src/ndnSIM/ndn-cxx/src/management/nfd-strategy-choice.cpp
> [2402/3287] Compiling
> src/ndnSIM/NFD/daemon/table/cs-policy-priority-fifo.cpp
> In file included from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25:0,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:
> ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:136:17: error:
> field ‘m_nodes’ has incomplete type ‘ns3::NodeContainer’
>    NodeContainer m_nodes;
>                  ^~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:
> ./ns3/topology-reader.h:41:7: note: forward declaration of ‘class
> ns3::NodeContainer’
>  class NodeContainer;
>        ^~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:151:17: error:
> field ‘m_backboneRouters’ has incomplete type ‘ns3::NodeContainer’
>    NodeContainer m_backboneRouters;
>                  ^~~~~~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:
> ./ns3/topology-reader.h:41:7: note: forward declaration of ‘class
> ns3::NodeContainer’
>  class NodeContainer;
>        ^~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:152:17: error:
> field ‘m_gatewayRouters’ has incomplete type ‘ns3::NodeContainer’
>    NodeContainer m_gatewayRouters;
>                  ^~~~~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:
> ./ns3/topology-reader.h:41:7: note: forward declaration of ‘class
> ns3::NodeContainer’
>  class NodeContainer;
>        ^~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:153:17: error:
> field ‘m_customerRouters’ has incomplete type ‘ns3::NodeContainer’
>    NodeContainer m_customerRouters;
>                  ^~~~~~~~~~~~~~~~~
> In file included from
> ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,
>                  from
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:
> ./ns3/topology-reader.h:41:7: note: forward declaration of ‘class
> ns3::NodeContainer’
>  class NodeContainer;
>        ^~~~~~~~~~~~~
> ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:484:1: warning:
> ‘void ns3::nodeWriter(std::ostream&, ns3::NodeContainer&)’ defined but not
> used [-Wunused-function]
>  nodeWriter(std::ostream& os, NodeContainer& m)
>  ^~~~~~~~~~


> Waf: Leaving directory `/home/a/Desktop/ndnSIM-NLSR/ns-3/build'
> Build failed
>  -> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display
> more information)


Please help me resolve this issue, knowing that I performed the below
commands to get to this state .

sudo apt-get update
> sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev
> sudo apt-get install libboost-all-dev
> sudo apt-get install python-dev python-pygraphviz python-kiwi
> sudo apt-get install python-pygoocanvas python-gnome2
> sudo apt-get install python-rsvg ipython
> sudo apt install git
> mkdir ndnSIM-NLSR
> cd ndnSIM-NLSR
> git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
> git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen
> git clone --recursive https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR.git
> ns-3/src/ndnSIM
> cd ../
> sudo apt update
> sudo apt install -y build-essential git cmake pkg-config libssl-dev
> libboost-all-dev libpcap-dev libsqlite3-dev
> cd ~
> git clone https://github.com/named-data/ndn-cxx.git
> cd ndn-cxx
> git checkout tags/ndn-cxx-0.4.1
> ./waf configure
> ./waf
> sudo ./waf install
> cd ~
> git clone https://github.com/named-data/NFD.git
> cd NFD
> git checkout tags/NFD-0.4.1
> git submodule init
> git submodule update
> ./waf configure
> ./waf
> sudo ./waf install
> cd ~
> git clone https://github.com/named-data/NLSR.git
> cd NLSR
> git checkout tags/NLSR-0.3.0
> git submodule init
> git submodule update
> sudo apt-get install liblog4cxx-dev
> sudo apt-get install libprotobuf-dev protobuf-compiler
> ./waf configure
> ./waf
> sudo ./waf install
> cd ~/ndnSIM-NLSR/ns-3
> expand -t 4 /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript >
> /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript_new
> mv /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript_new
> /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript
> sudo apt-get install -y python-software-properties
> sudo apt-get install software-properties-common
> cd ~
> wget --no-check-certificate
> https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.gz
> tar -xvf gcc-7.5.0.tar.gz
> sudo apt-get install build-essential libgmp-dev libmpfr-dev libmpc-dev
> cd gcc-7.5.0
> ./configure --disable-multilib
> make -j$(nproc)
> sudo make install
> sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 10
> sudo update-alternatives --install /usr/bin/g++ g++ /usr/local/bin/g++ 10
> sudo update-alternatives --config gcc
> sudo update-alternatives --config g++
> ---------------------
> changed /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript :
> if not os.environ.has_key('PKG_CONFIG_PATH'):          >>>>to>>>>      if
> 'PKG_CONFIG_PATH' not in os.environ:
> ----------------------------
> ./waf configure --disable-python --enable-examples --enable-nlsr
> ./waf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20241204/13203a48/attachment.htm>


More information about the ndnSIM mailing list