[Nfd-dev] Issues building on raspberry pi 3

Anthony Dowling dowlinah at clarkson.edu
Wed Oct 18 12:03:13 PDT 2017


Hello all,

I've been attempting to build the latest version of NFD on raspberry pi.
However, even using clang++ instead of g++ there is an error with linking
to boost regex. After some research, I found that the issue seems to be
with the order of switches given to the linker command. When it is ran,
-lboost_regex is given to the linker by waf near the end of the list of
switches, however, if I manually run :

/usr/bin/g++ -fuse-ld=gold -Wl,-O1 -lboost_regex -pthread
tools/ndn-autoconfig/main.cpp.3.o tools/ndn-autoconfig/dns-srv.cpp.2.o
tools/ndn-autoconfig/guess-from-identity-name.cpp.2.o
tools/ndn-autoconfig/guess-from-search-domains.cpp.2.o
tools/ndn-autoconfig/multicast-discovery.cpp.2.o
tools/ndn-autoconfig/ndn-fch-discovery.cpp.2.o
tools/ndn-autoconfig/procedure.cpp.2.o tools/ndn-autoconfig/stage.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.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/pi/NFD/build/bin/ndn-autoconfig -Wl,-Bstatic
-L/usr/lib/arm-linux-gnueabihf -Wl,-Bdynamic -L/usr/local/lib
-L/usr/lib/arm-linux-gnueabihf -lndn-cxx -lboost_system -lboost_filesystem
-lboost_date_time -lboost_iostreams -lboost_program_options -lboost_chrono
-lboost_thread -lboost_log -lboost_log_setup -lssl -lcrypto -lsqlite3 -lrt
-lpthread -lboost_system -lboost_chrono -lboost_program_options
-lboost_thread -lboost_log -lboost_log_setup -lrt -lresolv

with -lboost_regex moved to the begining of the command, the command runs
successfully. However, when I run waf build again, it creates this issue
again. Is there a workaround or fix for this issue available?

Thanks,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20171018/8b2d5c4a/attachment.html>


More information about the Nfd-dev mailing list