[Nfd-dev] need volunteer to test EthernetFace on OSX and Boost 1.57

Josh Polterock josh at caida.org
Tue Dec 23 14:02:39 PST 2014


Junxiao,

On Thu, Dec 18, 2014 at 11:10:40AM -0700, Junxiao Shi wrote:
> Hi Josh
> 
> It seems that the branch is outdated. I have rebased it. Please try again
> with the new procedure:
> 
> 
> On hostA (OSX with Boost 1.57):
> 
>    - recompile and install ndn-cxx, latest version from GitHub
>    - recompile and install NFD
>       - after git clone, use the following command to checkout a branch
>       under review:
>       git fetch http://gerrit.named-data.net/NFD refs/changes/44/1444/6 &&
>       git checkout FETCH_HEAD
>       - then compile and install as usual
>    - recompile and install ndn-tlv-ping, latest version from GitHub

This all seemed to go smoothly. I still need to commandeer a second
system (we have another iMac I can use but it does not have XCode on it
yet, so I'm installing). so, I jumped down to instructions on starting
and testing nfd on HostA. 

> 
> On hostB (either another OSX with Boost 1.57, or any Ubuntu version):
> 
>    - recompile and install ndn-cxx, latest version from GitHub
>    - recompile and install NFD
>       - after git clone, use the following command to checkout a branch
>       under review:
>       git fetch http://gerrit.named-data.net/NFD refs/changes/44/1444/6 &&
>       git checkout FETCH_HEAD
>       - then compile and install as usual
>    - recompile and install ndn-tlv-ping, latest version from GitHub
> 
> 
>    1. on both hosts: execute `nfd-start`

Upon trying to start nfd, I receive the following error:

Script started on Tue Dec 23 13:59:11 2014
$ nfd-start
Password:
1419371964.968853 TRACE: [NameTree] lookup /
1419371964.968910 TRACE: [NameTree] insert /
1419371964.968954 TRACE: [NameTree] Name / hash value = 0  location = 0
1419371964.969026 TRACE: [NameTree] Did not find /, need to insert it to the table
1419371964.969103 INFO: [StrategyChoice] setDefaultStrategy /localhost/nfd/strategy/best-route/%FD%02
1419371964.969523 INFO: [InternalFace] registering callback for /localhost/nfd/fib
1419371964.969624 INFO: [InternalFace] registering callback for /localhost/nfd/faces
1419371964.969753 INFO: [InternalFace] registering callback for /localhost/nfd/strategy-choice
1419371964.969898 INFO: [InternalFace] registering callback for /localhost/nfd/status
1419371964.970031 INFO: [FaceTable] Added face id=1 remote=internal:// local=internal://
1419371966.938915 INFO: [RibManager] Listening on: /localhost/nfd/rib
1419371967.346360 DEBUG: [Forwarder] onIncomingData face=1 data=/localhost/nfd/faces/events/%FE%00
1419371967.346542 TRACE: [NameTree] NameTree::findAllMatches/localhost/nfd/faces/events/%FE%00
1419371967.346677 TRACE: [NameTree] findLongestPrefixMatch /localhost/nfd/faces/events/%FE%00
1419371967.346832 TRACE: [ContentStore] insert() /localhost/nfd/faces/events/%FE%00/sha256digest=7fc8f0f09483606aed7d26a02001eca60bd7ab602fd2085f6cf478872af14740
1419371967.347198 TRACE: [ContentStore] insertToSkipList() /localhost/nfd/faces/events/%FE%00/sha256digest=7fc8f0f09483606aed7d26a02001eca60bd7ab602fd2085f6cf478872af14740, skipList size 0
1419371967.347508 TRACE: [ContentStore] Not a duplicate
1419371967.347598 TRACE: [ContentStore] pushback 0x7fbb2bf00570
1419371967.347701 DEBUG: [Forwarder] onDataUnsolicited face=1 data=/localhost/nfd/faces/events/%FE%00 cached
1419371967.348166 TRACE: [GeneralConfigSection] using user "" group ""
1419371967.348273 TRACE: [PrivilegeHelper] initializing privilege helper with user "" group ""
1419371967.348511 TRACE: [NetworkInterfaceInfo] lo0: added IPv6 address ::1
1419371967.348628 TRACE: [NetworkInterfaceInfo] lo0: added IPv4 address 127.0.0.1
1419371967.348746 TRACE: [NetworkInterfaceInfo] lo0: added IPv6 address fe80::1
1419371967.348859 DEBUG: [NetworkInterfaceInfo] gif0: ignoring link-layer address for unhandled interface type 7
1419371967.349019 DEBUG: [NetworkInterfaceInfo] stf0: ignoring link-layer address for unhandled interface type 9
1419371967.349177 TRACE: [NetworkInterfaceInfo] en0: added Ethernet address c4:2c:03:2c:5f:26
1419371967.349313 TRACE: [NetworkInterfaceInfo] en0: added IPv6 address fe80::c62c:3ff:fe2c:5f26
1419371967.349452 TRACE: [NetworkInterfaceInfo] en0: added IPv4 address 192.172.226.92
1419371967.349575 TRACE: [NetworkInterfaceInfo] en0: added IPv4 broadcast address 192.172.226.255
1419371967.349713 TRACE: [NetworkInterfaceInfo] en0: added IPv6 address 2001:48d0:101:501:c62c:3ff:fe2c:5f26
1419371967.349867 TRACE: [NetworkInterfaceInfo] en0: added IPv6 address 2001:48d0:101:501:d13:94d:a184:7a7d
1419371967.350019 DEBUG: [NetworkInterfaceInfo] fw0: ignoring link-layer address for unhandled interface type 
1419371967.350177 TRACE: [NetworkInterfaceInfo] en1: added Ethernet address d8:30:62:51:e4:aa
1419371967.350312 TRACE: [NetworkInterfaceInfo] p2p0: added Ethernet address 0a:30:62:51:e4:aa
1419371967.350546 FATAL: [NFD] Unrecognized option "listen" in "unix" section
1419371967.350783 TRACE: [ContentStore] evictItem()
1419371967.350860 TRACE: [ContentStore] Evict from unsolicited queue
1419371967.350958 TRACE: [ContentStore] eraseFromSkipList() /localhost/nfd/faces/events/%FE%00/sha256digest=7fc8f0f09483606aed7d26a02001eca60bd7ab602fd2085f6cf478872af14740
1419371967.351261 TRACE: [ContentStore] SkipList size 1
1419371967.351353 TRACE: [ContentStore] evictItem()
tao:~ $ 1419371969.501131 INFO: [RibManager] Start monitoring face create/destroy events
1419371970.116432 FATAL: [NRD] error while connecting to the forwarder (No such file or directory)

Script done on Tue Dec 23 13:59:51 2014


>    2. on hostA: execute `nfd-status -f | grep 'dev'`, find the number after
>    "faceid="
>    3. on hostA: execute `nfdc register /A 8888`, substitute 8888 with the
>    number found in step 2
>    4. on hostB: run `ndnpingserver /A`
>    5. on hostA: run `ndnping /A`, and press CTRL+C after about 20 seconds
> 
> Report back with the output from step 3~5.
> 
> 
> Yours, Junxiao
> 
> On Wed, Dec 17, 2014 at 5:20 PM, Josh Polterock <josh at caida.org> wrote:
> >
> > During the compile I get the following error:
> >
> > [ 51/105] Compiling daemon/mgmt/face-manager.cpp
> > ../daemon/mgmt/status-server.cpp:66:25: error: reference to type 'const
> > std::string' (aka 'const basic_string<char, char_traits<char>,
> > allocator<char> >') could not bind to an rvalue of type 'int'
> >   status->setNfdVersion(NFD_VERSION);
> >                         ^~~~~~~~~~~
> > /Users/josh/Downloads/NFD/build/version.hpp:41:21: note: expanded from
> > macro 'NFD_VERSION'
> > #define NFD_VERSION 2000
> >                     ^~~~
> > /opt/local/include/ndn-cxx/management/nfd-forwarder-status.hpp:84:36:
> > note: passing argument to parameter 'nfdVersion' here
> >   setNfdVersion(const std::string& nfdVersion);
> >                                    ^
> > 1 error generated.
> >
> > Waf: Leaving directory `/Users/josh/Downloads/NFD/build'
> > Build failed
> >  -> task in 'daemon-objects' failed (exit status 1):
> >     {task 4550484496: cxx status-server.cpp -> status-server.cpp.3.o}
> > ['/usr/bin/clang++', '-std=c++0x', '-std=c++11', '-stdlib=libc++',
> > '-pedantic', '-Wall', '-O2', '-g', '-fPIC', '-include',
> > '/Users/josh/Downloads/NFD/build/core-objects.2',
> > '-I/Users/josh/Downloads/NFD/build/daemon',
> > '-I/Users/josh/Downloads/NFD/daemon',
> > '-I/Users/josh/Downloads/NFD/build', '-I/Users/josh/Downloads/NFD',
> > '-I/Users/josh/Downloads/NFD/build/core',
> > '-I/Users/josh/Downloads/NFD/core', '-I/opt/local/include',
> > '-I/Users/josh/Downloads/NFD/websocketpp', '-DHAVE_NDN_CXX=1',
> > '../daemon/mgmt/status-server.cpp', '-c', '-o',
> > '/Users/josh/Downloads/NFD/build/daemon/mgmt/status-server.cpp.3.o']
> > tao:~/Downloads/NFD $
> >
> >



More information about the Nfd-dev mailing list