[ndnSIM] ndnSIM build failed
Daryoush Daryoush
daryoush_daryoush at yahoo.com
Mon Oct 8 05:18:56 PDT 2018
Hello all!
I am using macOS Mojave during compiling ndnSIM I got the following error:
$ ./waf configure --enable-example
Setting top to : /Users/daryoush/ndnSIM/ns-3
Setting out to : /Users/daryoush/ndnSIM/ns-3/build
Checking for 'clang' (C compiler) : /usr/bin/clang
Checking for cc version : 10.0.0
Checking for 'clang++' (C++ compiler) : /usr/bin/clang++
Checking supported compiler CXXFLAGS : -std=c++0x -std=c++11
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 program 'python' : /usr/bin/python
Checking for python version : (2, 7, 10, 'final', 0)
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 -Wno-array-bounds support : ok
Checking for pybindgen location : ../pybindgen (guessed)
Checking for python module 'pybindgen' : 0.18.0
Checking for pybindgen version : 0.18.0
Checking for code snippet : no
Checking for types uint64_t and unsigned long equivalence : yes
Checking for code snippet : yes
Checking for types uint64_t and unsigned long long equivalence : no
Checking for the apidefs that can be used for Python bindings : gcc-ILP32
Checking for internal GCC cxxabi : incomplete
Checking for python module 'pygccxml' : not found
Checking boost includes : 1_62
Checking boost libs : ok
Checking for boost linkage : ok
Checking for click location : not found
Checking for program 'pkg-config' : /usr/local/bin/pkg-config
Checking for 'gtk+-2.0' >= 2.12 : not found
Checking for 'libxml-2.0' >= 2.7 : yes
Checking for type uint128_t : not found
Checking for type __uint128_t : yes
Checking high precision implementation : 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 : not found
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 : not found
Checking for header netpacket/packet.h : not found
Checking for NSC location : not found
Checking for program 'doxygen' : not found
Checking for program 'tar' : /usr/bin/tar
Checking for program 'sphinx-build' : not found
Checking for std::is_default_constructible : yes
Checking for std::is_nothrow_move_constructible : yes
Checking for std::is_nothrow_move_assignable : yes
Checking for std::to_string : yes
Checking for std::vector::insert with const_iterator : yes
Checking for library pthread : yes
Checking for 'sqlite3' : yes
Checking for OpenSSL lib : "OpenSSL 1.0.2p-fips 14 Aug 2018"
Checking if OpenSSL library works : yes
Checking for OpenFlow location : not found
Checking for 'sqlite3' : yes
Checking for header linux/if_tun.h : not found
Checking for python module 'gtk' : not found
Checking for python module 'goocanvas' : not found
Checking for python module 'pygraphviz' : not found
Checking boost includes : 1_62
Checking for program 'sudo' : /usr/bin/sudo
Checking for program 'valgrind' : not found
Checking for 'gsl' : not found
python-config : not found
Checking for program 'doxygen' : not found
---- 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 : not enabled (needs netpacket/packet.h)
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+-2.0 >= 2.12' 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 (Missing python modules: gtk, goocanvas, pygraphviz)
Python API Scanning Support : not enabled (Missing 'pygccxml' Python module)
Python Bindings : enabled
Real Time Simulator : not enabled (librt is not available)
SQlite stats data output : enabled
Tap Bridge : not enabled (<linux/if_tun.h> include not detected)
Tap FdNetDevice : not enabled (needs linux/if_tun.h)
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 (7.925s)
$ ./waf
Waf: Entering directory `/Users/daryoush/ndnSIM/ns-3/build'
[ 1/3077] Compiling install-ns3-header: ns3/antenna-model.h
[ 2/3077] Compiling install-ns3-header: ns3/isotropic-antenna-model.h
...
[2172/3077] Compiling src/dsr/model/dsr-errorbuff.cc
[2174/3077] Compiling src/dsr/model/dsr-option-header.cc
[2175/3077] Compiling src/dsdv/model/dsdv-packet.cc
[2176/3077] Compiling src/csma-layout/model/csma-star-helper.cc
[2178/3077] Compiling src/csma/examples/csma-one-subnet.cc
[2179/3077] Compiling src/csma/model/csma-channel.cc
[2181/3077] Compiling src/core/examples/main-random-variable.cc
[2186/3077] Compiling src/applications/model/packet-loss-counter.cc
[2189/3077] Compiling src/buildings/model/mobility-building-info.cc
[2193/3077] Compiling src/buildings/model/buildings-propagation-loss-model.cc
[2200/3077] Compiling src/config-store/model/config-store.cc
[2204/3077] Compiling src/config-store/model/file-config.cc
[2205/3077] Compiling src/config-store/model/xml-config.cc
[2206/3077] Compiling src/core/bindings/module_helpers.cc
[2207/3077] Compiling src/csma/examples/csma-multicast.cc
In file included from ../src/config-store/model/config-store.cc:31:
../src/config-store/model/xml-config.h:25:10: fatal error: 'libxml/xmlwriter.h' file not found
#include <libxml/xmlwriter.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from ../src/config-store/model/xml-config.cc:21:
../src/config-store/model/xml-config.h:25:10: fatal error: 'libxml/xmlwriter.h' file not found
#include <libxml/xmlwriter.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
Waf: Leaving directory `/Users/ndnSIM/ns-3/build'
Build failed
-> task in 'ns3-config-store' failed (exit status 1):
{task 4465816016: cxx config-store.cc -> config-store.cc.1.o}
['/usr/bin/clang++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-std=c++11', '-iwithsysroot', '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-iwithsysroot', '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-iwithsysroot', '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-iwithsysroot', '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-fPIC', '-I.', '-I..', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_STD_TO_STRING=1', '-DHAVE_VECTOR_INSERT_ERASE_CONST_ITERATOR=1', '-DHAVE_PTHREAD=1', '-DHAVE_SQLITE3=1', '-DHAVE_OPENSSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_LIBXML2=1', '../src/config-store/model/config-store.cc', '-c', '-o', '/Users/daryoush/ndnSIM/ns-3/build/src/config-store/model/xml-config.cc.1.o']
If anyone can help me to fix this error i would be glad,
Thank you,
Best Regards,Daryoush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20181008/73e9c57a/attachment-0001.html>
More information about the ndnSIM
mailing list