[Ndn-interest] Problems with ndnSIM installation

Debraj Das debsntt at gmail.com
Mon Sep 16 04:24:23 PDT 2019


Hi,
I'm new to ndnSIM. I have been trying to install ndnSIM on ubuntu 14.04 for
last couple of days but it never works! Always during compilation, it shows
me,

Build failed
 -> task in 'ns3-core' failed with exit status 1 (run with -v to display
more information)

I have googled a lot and tried everything but nothing worked. Please help!
Below is a snippet of the error.






root at juit-HP-ProDesk-600-G2-MT:/home/juit/ndnSIM/ns-3# ./waf configure
--enable-examples
Setting top to                           : /home/juit/ndnSIM/ns-3
Setting out to                           : /home/juit/ndnSIM/ns-3/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 4.9.4
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking supported compiler CXXFLAGS     : -std=c++14
Checking supported optimizations CXXFLAGS : -O0
Checking supported debug CXXFLAGS         : -ggdb -g3
Checking supported warnings CXXFLAGS      : -Wall
-Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for compilation flag -std=c++14 support       : ok
Checking for program 'python'                          : /usr/bin/python
Checking for python version >= 2.3                     : 2.7.6
python-config                                          :
/usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration                                      : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes
Testing pyext configuration                                        : yes
Checking for compilation flag -fvisibility=hidden support          : ok
Checking for compilation flag -Wno-array-bounds support            : ok
Checking for pybindgen location                                    :
../pybindgen (guessed)
Checking for python module 'pybindgen'                             : ok
Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    'Programming Language :: Python :: 3',
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 243, in
__init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 277, in
finalize_options
    ep.load()(self, ep.name, value)
  File
"/home/juit/ndnSIM/pybindgen/setuptools_scm-3.3.3-py2.7.egg/setuptools_scm/integration.py",
line 9, in version_keyword
  File
"/home/juit/ndnSIM/pybindgen/setuptools_scm-3.3.3-py2.7.egg/setuptools_scm/version.py",
line 66, in _warn_if_setuptools_outdated
setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too
old (<12)
Checking for pybindgen version                                     : not
found
pybindgen_version is an empty string
Checking boost includes                                            : 1_54
Checking boost libs                                                : ok
Checking for boost linkage                                         : ok
Checking for click location                                        : not
found
Checking for program 'pkg-config'                                  :
/usr/bin/pkg-config
Checking for 'gtk+-3.0'                                            : not
found
Checking for 'libxml-2.0'                                          : yes
checking for uint128_t                                             : not
found
checking for __uint128_t                                           : not
found
Checking high precision implementation                             : cairo
128-bit integer (default)
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not
found
Checking for header sys/types.h                                    : yes
Checking for header sys/stat.h                                     : yes
Checking for header dirent.h                                       : yes
Checking for header stdlib.h                                       : yes
Checking for header signal.h                                       : yes
Checking for header pthread.h                                      : yes
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not
found
Checking for library rt                                            : yes
Checking for header sys/ioctl.h                                    : yes
Checking for header net/if.h                                       : yes
Checking for header net/ethernet.h                                 : yes
Checking for header linux/if_tun.h                                 : yes
Checking for header netpacket/packet.h                             : yes
Checking for NSC location                                          : not
found
Checking for program 'doxygen'                                     :
/usr/bin/doxygen
Checking for program 'tar'                                         :
/bin/tar
Checking for program 'sphinx-build'                                :
/usr/bin/sphinx-build
Checking for std::to_string                                        : yes
Checking for library pthread                                       : yes
Checking for 'sqlite3'                                             : yes
Checking for OpenSSL lib                                           :
"OpenSSL 1.0.1f-fips 6 Jan 2014"
Checking if OpenSSL library works                                  : yes
Checking for OpenFlow location                                     : not
found
Checking for 'sqlite3'                                             : yes
Checking for header linux/if_tun.h                                 : yes
Checking for program 'sudo'                                        :
/usr/bin/sudo
Checking for program 'valgrind'                                    :
/usr/bin/valgrind
Checking for 'gsl'                                                 : not
found
python-config                                                      : not
found
Checking for program 'doxygen'                                     :
/usr/bin/doxygen
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE Integration             : not enabled (BRITE not enabled (see option
--with-brite))
DES Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : enabled
File descriptor NetDevice     : enabled
GNU Scientific Library (GSL)  : not enabled (GSL not found)
Gcrypt library                : not enabled (libgcrypt not found: you can
use libgcrypt-config to find its location.)
GtkConfigStore                : not enabled (library 'gtk+-3.0 >= 3.0' not
found)
MPI Support                   : not enabled (option --enable-mpi not
selected)
NS-3 Click Integration        : not enabled (nsclick not enabled (see
option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see
option --with-openflow))
Network Simulation Cradle     : not enabled (NSC not found (see option
--with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not
detected (see option --force-planetlab))
PyViz visualizer              : not enabled (Python Bindings are needed but
not enabled)
Python Bindings               : not enabled (PyBindGen version not found)
Real Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : not enabled (defaults to disabled)
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not
selected)
XmlIo                         : enabled
ndnSIM                        : enabled
'configure' finished successfully (4.072s)
root at juit-HP-ProDesk-600-G2-MT:/home/juit/ndnSIM/ns-3# ./waf
Waf: Entering directory `/home/juit/ndnSIM/ns-3/build'
[1369/3087] Compiling src/core/model/int64x64-cairo.cc
[1382/3087] Compiling src/core/model/config.cc
[1389/3087] Compiling src/stats/helper/file-helper.cc
[1390/3087] Compiling src/stats/helper/gnuplot-helper.cc
In file included from ../src/core/model/int64x64-cairo.cc:30:0:
../src/core/model/cairo-wideint.c: In function ‘cairo_uquorem64_t
_cairo_uint_96by64_32x64_divrem(cairo_uint128_t, cairo_uint64_t)’:
../src/core/model/cairo-wideint.c:694:44: error: ‘UINT_MAX’ was not
declared in this scope
     result.quo = _cairo_uint32s_to_uint64 (UINT_MAX, UINT_MAX);  //PDB cast
                                            ^
../src/core/model/cairo-wideint.c:46:52: note: in definition of macro
‘_cairo_uint32s_to_uint64’
 #define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
                                                    ^
../src/core/model/cairo-wideint.c: In function ‘cairo_quorem64_t
_cairo_int_96by64_32x64_divrem(cairo_int128_t, cairo_int64_t)’:
../src/core/model/cairo-wideint.c:810:49: error: ‘UINT_MAX’ was not
declared in this scope
  qr.quo = _cairo_uint32s_to_uint64 (0x7FFFFFFF, UINT_MAX);  //PDB cast
                                                 ^
../src/core/model/cairo-wideint.c:46:64: note: in definition of macro
‘_cairo_uint32s_to_uint64’
 #define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
                                                                ^

Waf: Leaving directory `/home/juit/ndnSIM/ns-3/build'
Build failed
 -> task in 'ns3-core' failed with exit status 1 (run with -v to display
more information)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20190916/346ee493/attachment-0001.html>


More information about the Ndn-interest mailing list