[Nfd-dev] problem with ndndump

Davide Pesavento davide.pesavento at lip6.fr
Tue Nov 28 19:24:53 PST 2017


Hi Peter,

Generally speaking, if you build the master branch of ndn-tools from
git, you need to use the master branch of ndn-cxx as well. There is no
guarantee that it will work with an earlier release. If you prefer to
use the official release, ndn-tools-0.5 should work with ndn-cxx-0.6.

Note that you can use ./waf configure --enable-dump to build only ndndump.

Best,
Davide

On Tue, Nov 28, 2017 at 5:22 PM, Gusev, Peter <peter at remap.ucla.edu> wrote:
> I’m getting Segmentation fault when using ndndump to capture packets, not
> sure why:
>
> $ sudo ndndump -i eno1 -f .*ndnrtc.*
> Segmentation fault (core dumped)
>
>
> $ ndndump --version
> ndndump 0.4-24-g11e74eb
> Segmentation fault (core dumped)
>
>
> I installed ndn-cxx using PPA.
> However, neither master branch of ndn-tools nor tag ndn-tools-0.5 builds:
>
>
> $ ./waf
> Waf: Entering directory `/home/peter/ndn-tools/build'
> [ 2/38] Compiling build/core/version.cpp
> [ 3/38] Compiling tools/peek/ndnpeek/ndnpeek.cpp
> [15/38] Compiling tools/ping/server/tracer.cpp
> [16/38] Compiling tools/ping/server/ndn-ping-server.cpp
> [17/38] Compiling tools/chunks/catchunks/aimd-rtt-estimator.cpp
> [18/38] Compiling tools/chunks/catchunks/aimd-statistics-collector.cpp
> [19/38] Compiling tools/chunks/catchunks/consumer.cpp
> [20/38] Compiling tools/chunks/catchunks/data-fetcher.cpp
> [21/38] Compiling tools/chunks/catchunks/discover-version-fixed.cpp
> [22/38] Compiling tools/chunks/catchunks/discover-version-iterative.cpp
> [23/38] Compiling tools/chunks/catchunks/discover-version.cpp
> [25/38] Compiling tools/chunks/catchunks/pipeline-interests-aimd.cpp
> [26/38] Compiling tools/chunks/catchunks/pipeline-interests-fixed-window.cpp
> ../tools/peek/ndnpeek/ndnpeek.cpp: In member function ‘ndn::Interest
> ndn::peek::NdnPeek::createInterest() const’:
> ../tools/peek/ndnpeek/ndnpeek.cpp:83:14: error: ‘class ndn::Interest’ has no
> member named ‘setForwardingHint’
>      interest.setForwardingHint(m_options.link->getDelegationList());
>               ^
> ../tools/peek/ndnpeek/ndnpeek.cpp:83:48: error: ‘class ndn::Link’ has no
> member named ‘getDelegationList’
>      interest.setForwardingHint(m_options.link->getDelegationList());
>                                                 ^
>
> ../tools/chunks/catchunks/pipeline-interests-aimd.cpp: In member function
> ‘void ndn::chunks::aimd::PipelineInterestsAimd::handleData(const
> ndn::Interest&, const ndn::Data&)’:
> ../tools/chunks/catchunks/pipeline-interests-aimd.cpp:252:12: error: ‘const
> class ndn::Data’ has no member named ‘getCongestionMark’
>    if (data.getCongestionMark() > 0) {
>             ^
> ../tools/chunks/catchunks/pipeline-interests-aimd.cpp:261:69: error: ‘const
> class ndn::Data’ has no member named ‘getCongestionMark’
>            std::cerr << "Received congestion mark, value = " <<
> data.getCongestionMark()
>                                                                      ^
>
> Waf: Leaving directory `/home/peter/ndn-tools/build'
> Build failed
>  -> task in 'peek-ndnpeek-objects' failed (exit status 1):
> {task 139814901679312: cxx ndnpeek.cpp -> ndnpeek.cpp.1.o}
> ['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra',
> '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color',
> '-std=c++11', '-pthread', '-pthread', '-I/home/peter/ndn-tools/build',
> '-I/home/peter/ndn-tools', '-I/usr/include', '-DHAVE_INTTYPES_H=1',
> '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1',
> '-DNDEBUG', '-DHAVE_NDN_CXX=1', '../tools/peek/ndnpeek/ndnpeek.cpp', '-c',
> '-o', '/home/peter/ndn-tools/build/tools/peek/ndnpeek/ndnpeek.cpp.1.o']
>  -> task in 'ndncatchunks-objects' failed (exit status 1):
> {task 139814901799184: cxx pipeline-interests-aimd.cpp ->
> pipeline-interests-aimd.cpp.1.o}
> ['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra',
> '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color',
> '-std=c++11', '-pthread', '-pthread', '-I/home/peter/ndn-tools/build',
> '-I/home/peter/ndn-tools', '-I/usr/include', '-DHAVE_INTTYPES_H=1',
> '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1',
> '-DNDEBUG', '-DHAVE_NDN_CXX=1',
> '../tools/chunks/catchunks/pipeline-interests-aimd.cpp', '-c', '-o',
> '/home/peter/ndn-tools/build/tools/chunks/catchunks/pipeline-interests-aimd.cpp.1.o']
>
>
>
> Thanks,
>
> --
> Peter Gusev
>
> peter at remap.ucla.edu
> +1 213 5872748
>
> Research Scholar @ REMAP UCLA
> Video streaming/ICN networks/Creative Development
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>


More information about the Nfd-dev mailing list