[Nfd-dev] NFD build error in tools/nfdc/rib-module.cpp

Junxiao Shi shijunxiao at email.arizona.EDU
Fri Mar 3 11:43:21 PST 2017


Hi Teng

This is a known issue https://redmine.named-data.net/issues/3903#note-12
It's caused by a change in ndn-cxx's ndn::nfd::RouteFlags type.
We are waiting for Davide to submit a patch, but others are welcome to
contribute as well.

Yours, Junxiao

On Fri, Mar 3, 2017 at 12:11 PM, Teng Liang <philoliang2011 at gmail.com>
wrote:

>
> 2. Then I tried to install everything on mario. While I am building the
> new version of NFD, here is the error:
> [234/283] Compiling tools/nfdc/strategy-choice-module.cpp
> [235/283] Compiling tools/nfdc/main.cpp
> [236/283] Compiling tests/main.cpp
> [237/283] Compiling tests/core/logger.t.cpp
> [238/283] Compiling tests/core/network-interface.t.cpp
> [239/283] Compiling tests/core/version.t.cpp
> ../tools/nfdc/rib-module.cpp: In static member function ‘static void
> nfd::tools::nfdc::RibModule::add(nfd::tools::nfdc::ExecuteContext&)’:
> ../tools/nfdc/rib-module.cpp:89:33: error: enumeral and non-enumeral type
> in conditional expression [-Werror=extra]
>      .setFlags((wantChildInherit ? ndn::nfd::ROUTE_FLAG_CHILD_INHERIT :
> 0) |
>                                  ^
> ../tools/nfdc/rib-module.cpp:90:28: error: enumeral and non-enumeral type
> in conditional expression [-Werror=extra]
>                (wantCapture ? ndn::nfd::ROUTE_FLAG_CAPTURE : 0));
>                             ^
> cc1plus: all warnings being treated as errors
>
> Waf: Leaving directory `/home/philo/Gerrit/NFD/build'
> Build failed
>  -> task in 'tools-nfdc-objects' failed (exit status 1):
> {task 139629158217296: cxx rib-module.cpp -> rib-module.cpp.5.o}
> ['/usr/bin/g++', '-O0', '-g3', '-pedantic', '-Wall', '-Wextra', '-Werror',
> '-Wno-unused-parameter', '-Wno-error=maybe-uninitialized',
> '-Wno-error=deprecated-declarations', '-Og', '-fdiagnostics-color',
> '-std=c++11', '-pthread', '-pthread', '-pthread', '-include',
> '/home/philo/Gerrit/NFD/build/core-objects.2', '-I/home/philo/Gerrit/NFD/build/tools/nfdc',
> '-I/home/philo/Gerrit/NFD/tools/nfdc', '-I/home/philo/Gerrit/NFD/build',
> '-I/home/philo/Gerrit/NFD', '-I/usr/local/include', '-I/usr/include',
> '-D_DEBUG', '-DHAVE_NDN_CXX=1', '-DBOOST_LOG_DYN_LINK',
> '../tools/nfdc/rib-module.cpp', '-c', '-o', '/home/philo/Gerrit/NFD/build/
> tools/nfdc/rib-module.cpp.5.o']
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170303/2e25cdad/attachment.html>


More information about the Nfd-dev mailing list