Project

General

Profile

Actions

Bug #4049

closed

When configuring./waf in NFD, build failed

Added by 杰 陈 over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
04/14/2017
Due date:
% Done:

0%

Estimated time:

Description

chenjie@chenjie-virtual-machine:~/NFD$ ./waf
Waf: Entering directory `/home/chenjie/NFD/build'
[142/158] Linking build/bin/nfd-autoreg
tools/nfd-autoreg.cpp.2.o:在函数‘AutoregServer’中:
/home/chenjie/NFD/build/../tools/nfd-autoreg.cpp:61:对‘ndn::nfd::FaceMonitor::FaceMonitor(ndn::Face&)’未定义的引用
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/chenjie/NFD/build'
Build failed
-> task in '../bin/nfd-autoreg' failed (exit status 1):
{task 139702588968080: cxxprogram nfd-autoreg.cpp.2.o,city-hash.cpp.2.o,config-file.cpp.2.o,global-io.cpp.2.o,manager-base.cpp.2.o,network-interface-predicate.cpp.2.o,network-interface.cpp.2.o,network.cpp.2.o,privilege-helper.cpp.2.o,random.cpp.2.o,rtt-estimator.cpp.2.o,scheduler.cpp.2.o,logger-factory.cpp.2.o,logger.cpp.2.o -> nfd-autoreg}
['/usr/bin/g++', '-pthread', '-pthread', '-pthread', 'tools/nfd-autoreg.cpp.2.o', 'core/city-hash.cpp.2.o', 'core/config-file.cpp.2.o', 'core/global-io.cpp.2.o', 'core/manager-base.cpp.2.o', 'core/network-interface-predicate.cpp.2.o', 'core/network-interface.cpp.2.o', 'core/network.cpp.2.o', 'core/privilege-helper.cpp.2.o', 'core/random.cpp.2.o', 'core/rtt-estimator.cpp.2.o', 'core/scheduler.cpp.2.o', 'core/logger-factory.cpp.2.o', 'core/logger.cpp.2.o', '-o', '/home/chenjie/NFD/build/bin/nfd-autoreg', '-Wl,-Bstatic', '-L/usr/lib/x86_64-linux-gnu', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/lib/x86_64-linux-gnu', '-lndn-cxx', '-lboost_system', '-lboost_filesystem', '-lboost_date_time', '-lboost_iostreams', '-lboost_regex', '-lboost_program_options', '-lboost_chrono', '-lboost_thread', '-lboost_log', '-lboost_log_setup', '-lcryptopp', '-lssl', '-lcrypto', '-lsqlite3', '-lrt', '-lpthread', '-lboost_system', '-lboost_chrono', '-lboost_program_options', '-lboost_thread', '-lboost_log', '-lboost_log_setup', '-lrt', '-lresolv']

Actions #1

Updated by 杰 陈 over 7 years ago

Error prompt:

[153/157] Linking build/bin/ndn-autoconfig-server
[154/157] Linking build/bin/nfd
[155/157] Linking build/bin/nfd-autoreg
[156/157] Linking build/bin/ndn-autoconfig
[157/157] Linking build/bin/nfdc

Actions #2

Updated by Ashlesh Gawande over 7 years ago

You need to install ndn-cxx from source:
https://redmine.named-data.net/issues/4030#note-4

Also please follow this advice:
https://redmine.named-data.net/issues/4030#note-6

Actions #3

Updated by 杰 陈 over 7 years ago

Hi Ashlesh,
Thanks for replying.
But now I can't solve the problem through your reminder.
There will still be a previous error.

[142/158] Linking build/bin/nfd-autoreg
[147/158] Linking build/bin/ndn-autoconfig
[154/158] Compiling tools/nfdc/legacy-status.cpp
tools/nfd-autoreg.cpp.2.o:在函数‘AutoregServer’中:
/home/chenjie/NFD/build/../tools/nfd-autoreg.cpp:61:对‘ndn::nfd::FaceMonitor::FaceMonitor(ndn::Face&)’未定义的引用

Actions #4

Updated by Ashlesh Gawande over 7 years ago

Can you post the output of "ldconfig -p | grep ndn"?

Actions #5

Updated by 杰 陈 over 7 years ago

Hi Ashlesh,

Thanks for replying.

Now there are the output of“ ldconfig -p | grep ndn”.

chenjie@chenjie-virtual-machine:~$ ldconfig -p | grep ndn
libndn-cxx.so.0.5.1 (libc6,x86-64) => /usr/local/lib/libndn-cxx.so.0.5.1
libndn-cxx.so.0.5.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libndn-cxx.so.0.5.1
libndn-cxx.so (libc6,x86-64) => /usr/local/lib/libndn-cxx.so
libndn-cxx.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libndn-cxx.so

Appreciate your help!

Actions #6

Updated by Ashlesh Gawande over 7 years ago

Remove ndn-cxx from /usr/lib:

sudo rm /usr/lib/x86_64-linux-gnu/libndn-cxx*

That is the one installed from PPA

Then do ./waf distclean, ./waf configure, etc.. in NFD

Actions #7

Updated by 杰 陈 over 7 years ago

Ashlesh Gawande wrote:

That is the one installed from PPA

Is that a command to run?
sudo add-apt-repository ppa:named-data/ppa
sudo apt-get update
Then
git clone https://github.com/named-data/ndn-cxx

Appreciate your help!

Actions #8

Updated by Ashlesh Gawande over 7 years ago

Don't mix apt-get and source -> they conflict.

If you do "apt-get install nfd" then don't use git clone to install.

If you install ndn-cxx from github then don't do "apt-get install nfd" (and if you had done it remove it: "apt-get remove nfd")

Actions #9

Updated by 杰 陈 over 7 years ago

Ashlesh Gawande wrote:

Don't mix apt-get and source -> they conflict.

If you do "apt-get install nfd" then don't use git clone to install.

If you install ndn-cxx from github then don't do "apt-get install nfd" (and if you had done it remove it: "apt-get remove nfd")

Hi, thanks for the solution.
I can successfully build NFD,and I think the problem is "Don't mix apt-get and source -> they conflict."

In a word,thank you very much for your help.

Actions #10

Updated by 杰 陈 over 7 years ago

sorry as I'm new to nlsr

I'm trying to run nlsr, but when I type nlsr in command line I get the following error:

chenjie@chenjie-virtual-machine:~$ nlsr
Failed to read configuration file: nlsr.conf
Error in configuration file processing! Exiting from NLSR

can you help me with this error please?
thank you

Actions #11

Updated by Junxiao Shi over 7 years ago

  • Status changed from New to Rejected
Actions #12

Updated by Ashlesh Gawande over 7 years ago

Could you please subscribe (wait for confirmation) and then post to NLSR mailing list:
https://named-data.net/codebase/platform/support/mailing-lists/

Actions

Also available in: Atom PDF