<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">this is not related to ndnSIM, but NS-3.</div><div class=""><br class=""></div><div class="">I would suggest you send an email to the NS-3 mailing list and ask for help.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Feb 5, 2018, at 8:29 PM, Md Monjurul Karim <<a href="mailto:karim.npu@gmail.com" class="">karim.npu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Greetings everyone,</div><div class=""><br class=""></div>I was trying to install OpenFlow module in ndnSIM.<div class=""><br class=""></div><div class="">I was following OpenFlow installation on NS-3 mentioned </div><div class=""><a href="https://www.nsnam.org/docs/release/3.13/models/html/openflow-switch.html" class="">https://www.nsnam.org/docs/release/3.13/models/html/openflow-switch.html</a></div><div class=""><br class=""></div><div class="">=======================================================================</div><div class=""><br class=""></div><div class=""><div class="">Setting top to                           : /home/user/ndnSIM/ns-3 </div><div class="">Setting out to                           : /home/user/ndnSIM/ns-3/build </div><div class="">Checking for 'gcc' (C compiler)          : /usr/bin/gcc </div><div class="">Checking for cc version                  : 5.4.0 </div><div class="">Checking for 'g++' (C++ compiler)        : /usr/bin/g++ </div><div class="">Checking supported compiler CXXFLAGS     : -std=c++0x -std=c++11 </div><div class="">Checking supported optimizations CXXFLAGS : -O0 </div><div class="">Checking supported debug CXXFLAGS         : -ggdb -g3 </div><div class="">Checking supported warnings CXXFLAGS      : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing </div><div class="">Checking for compilation flag -Wl,--soname=foo support : ok </div><div class="">Checking for program 'python'                          : /usr/bin/python </div><div class="">Checking for python version                            : (2, 7, 12, 'final', 0) </div><div class="">python-config                                          : /usr/bin/python-config </div><div class="">Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes </div><div class="">Testing pyembed configuration                                      : yes </div><div class="">Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes </div><div class="">Testing pyext configuration                                        : yes </div><div class="">Checking for compilation flag -fvisibility=hidden support          : ok </div><div class="">Checking for compilation flag -Wno-array-bounds support            : ok </div><div class="">Checking for pybindgen location                                    : ../pybindgen (guessed) </div><div class="">Checking for python module 'pybindgen'                             : 0.18.0 </div><div class="">Checking for pybindgen version                                     : 0.18.0 </div><div class="">Checking for code snippet                                          : yes </div><div class="">Checking for types uint64_t and unsigned long equivalence          : no </div><div class="">Checking for code snippet                                          : no </div><div class="">Checking for types uint64_t and unsigned long long equivalence     : yes </div><div class="">Checking for the apidefs that can be used for Python bindings      : gcc-LP64 </div><div class="">Checking for internal GCC cxxabi                                   : complete </div><div class="">Checking for python module 'pygccxml'                              : 1.0.0 </div><div class="">Checking for pygccxml version                                      : 1.0.0 </div><div class="">pygccxml (found 1.0.0) is too old (need 1.9.0) => automatic scanning of API definitions will not be possible</div><div class="">Checking boost includes                                            : 1_58 </div><div class="">Checking boost libs                                                : ok </div><div class="">Checking for boost linkage                                         : ok </div><div class="">Checking for click location                                        : not found </div><div class="">Checking for program 'pkg-config'                                  : /usr/bin/pkg-config </div><div class="">Checking for 'gtk+-2.0' >= 2.12                                    : not found </div><div class="">Checking for 'libxml-2.0' >= 2.7                                   : yes </div><div class="">Checking for type uint128_t                                        : not found </div><div class="">Checking for type __uint128_t                                      : yes </div><div class="">Checking high precision implementation                             : 128-bit integer (default) </div><div class="">Checking for header stdint.h                                       : yes </div><div class="">Checking for header inttypes.h                                     : yes </div><div class="">Checking for header sys/inttypes.h                                 : not found </div><div class="">Checking for header sys/types.h                                    : yes </div><div class="">Checking for header sys/stat.h                                     : yes </div><div class="">Checking for header dirent.h                                       : yes </div><div class="">Checking for header stdlib.h                                       : yes </div><div class="">Checking for header signal.h                                       : yes </div><div class="">Checking for header pthread.h                                      : yes </div><div class="">Checking for header stdint.h                                       : yes </div><div class="">Checking for header inttypes.h                                     : yes </div><div class="">Checking for header sys/inttypes.h                                 : not found </div><div class="">Checking for library rt                                            : yes </div><div class="">Checking for header sys/ioctl.h                                    : yes </div><div class="">Checking for header net/if.h                                       : yes </div><div class="">Checking for header net/ethernet.h                                 : yes </div><div class="">Checking for header linux/if_tun.h                                 : yes </div><div class="">Checking for header netpacket/packet.h                             : yes </div><div class="">Checking for NSC location                                          : not found </div><div class="">Checking for program 'doxygen'                                     : /usr/bin/doxygen </div><div class="">Checking for program 'tar'                                         : /bin/tar </div><div class="">Checking for program 'sphinx-build'                                : /usr/bin/sphinx-build </div><div class="">Checking for std::is_default_constructible                         : yes </div><div class="">Checking for std::is_nothrow_move_constructible                    : yes </div><div class="">Checking for std::is_nothrow_move_assignable                       : yes </div><div class="">Checking for std::to_string                                        : yes </div><div class="">Checking for std::vector::insert with const_iterator               : yes </div><div class="">Checking for library pthread                                       : yes </div><div class="">Checking for 'sqlite3'                                             : yes </div><div class="">Checking for OpenSSL lib                                           : "OpenSSL 1.0.2g-fips  1 Mar 2016" </div><div class="">Checking if OpenSSL library works                                  : yes </div><div class="">Checking for OpenFlow location                                     : /home/user/ndnSIM/openflow/ (given) </div><div class="">Checking for library dl                                            : yes </div><div class="">Checking for library xml2                                          : yes </div><div class="">Checking for library openflow                                      : yes </div><div class="">Checking for 'sqlite3'                                             : yes </div><div class="">Checking for header linux/if_tun.h                                 : yes </div><div class="">Checking for python module 'gtk'                                   : ok </div><div class="">Checking for python module 'goocanvas'                             : 0.14.1 </div><div class="">Checking for python module 'pygraphviz'                            : 1.3.1 </div><div class="">Checking boost includes                                            : 1_58 </div><div class="">Checking for program 'sudo'                                        : /usr/bin/sudo </div><div class="">Checking for program 'valgrind'                                    : /usr/bin/valgrind </div><div class="">Checking for 'gsl'                                                 : yes </div><div class="">python-config                                                      : not found </div><div class="">Checking for program 'doxygen'                                     : /usr/bin/doxygen </div><div class="">---- Summary of optional NS-3 features:</div><div class="">Build profile                 : debug</div><div class="">Build directory               : </div><div class="">BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))</div><div class="">DES Metrics event collection  : not enabled (defaults to disabled)</div><div class="">Emulation FdNetDevice         : enabled</div><div class="">Examples                      : not enabled (defaults to disabled)</div><div class="">File descriptor NetDevice     : enabled</div><div class="">GNU Scientific Library (GSL)  : enabled</div><div class="">Gcrypt library                : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)</div><div class="">GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)</div><div class="">MPI Support                   : not enabled (option --enable-mpi not selected)</div><div class="">NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))</div><div class="">NS-3 OpenFlow Integration     : enabled</div><div class="">Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))</div><div class="">PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))</div><div class="">PyViz visualizer              : enabled</div><div class="">Python API Scanning Support   : not enabled (pygccxml Python module too old)</div><div class="">Python Bindings               : enabled</div><div class="">Real Time Simulator           : enabled</div><div class="">SQlite stats data output      : enabled</div><div class="">Tap Bridge                    : enabled</div><div class="">Tap FdNetDevice               : enabled</div><div class="">Tests                         : not enabled (defaults to disabled)</div><div class="">Threading Primitives          : enabled</div><div class="">Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)</div><div class="">XmlIo                         : enabled</div><div class="">ndnSIM                        : enabled</div><div class="">'configure' finished successfully (7.096s)</div></div><div class=""><br class=""></div><div class="">===========================================================</div><div class=""><br class=""></div><div class="">However, while linking OpenFlow libraries, I have encountered following error:</div><div class=""><br class=""></div><div class=""><div class="">[3376/3503] Linking build/src/lte/examples/ns3-dev-lena-deactivate-bearer-debug</div><div class="">[3377/3503] Linking build/examples/traffic-control/ns3-dev-red-vs-nlred-debug</div><div class="">[3378/3503] Linking build/examples/wireless/ns3-dev-multirate-debug</div><div class="">[3379/3503] Linking build/src/openflow/examples/ns3-dev-openflow-switch-debug</div><div class="">[3380/3503] Linking build/examples/wireless/ns3-dev-power-adaptation-distance-debug</div><div class="">[3381/3503] Linking build/examples/wireless/ns3-dev-power-adaptation-interference-debug</div><div class="">[3382/3503] Linking build/src/wave/examples/ns3-dev-vanet-routing-compare-debug</div><div class="">[3383/3503] Linking build/src/lte/examples/ns3-dev-lena-fading-debug</div><div class="">[3384/3503] Linking build/src/lte/examples/ns3-dev-lena-frequency-reuse-debug</div></div><div class=""><br class=""></div><div class=""><div class=""><b class="">./libns3-dev-openflow-debug.so: undefined reference to `update_checksums'</b></div><div class=""><b class="">collect2: error: ld returned 1 exit status</b></div><div class=""><br class=""></div><div class="">Waf: Leaving directory `/home/user/ndnSIM/ns-3/build'</div><div class=""><b class="">Build failed</b></div><div class=""><b class=""> -> task in 'openflow-switch' failed (exit status 1): </b></div><div class=""><b class=""><span style="white-space:pre" class="">      </span>{task 139948845677712: cxxprogram <a href="http://openflow-switch.cc" class="">openflow-switch.cc</a>.1.o -> ns3-dev-openflow-switch-debug}</b></div><div class=""><b class=""><br class=""></b></div><div class=""><b class="">['/usr/bin/g++', '-pthread', 'src/openflow/examples/<a href="http://openflow-switch.cc" class="">openflow-switch.cc</a>.1.o', '-o', '/home/user/ndnSIM/ns-3/build/src/openflow/examples/ns3-dev-openflow-switch-debug', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L/home/user/ndnSIM/openflow/build/default', '-L/home/user/ndnSIM/openflow/lib', '-lns3-dev-openflow-debug', '-lns3-dev-applications-debug', '-lns3-dev-internet-debug', '-lns3-dev-bridge-debug', '-lns3-dev-mpi-debug', '-lns3-dev-traffic-control-debug', '-lns3-dev-csma-debug', '-lns3-dev-config-store-debug', '-lns3-dev-network-debug', '-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt', '-lpthread', '-lgsl', '-lgslcblas', '-lm', '-lsqlite3', '-lopenflow', '-ldl', '-ldl', '-lxml2', '-lxml2']</b></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Am I missing some pre-configuration before running ./waf config....... </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Sincerely,</div><div class="">Karim</div></div></div></blockquote></div><br class=""></div></body></html>