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