[Nfd-dev] Fresh install on Fedora issues

Chaim Rieger chaim.rieger at gmail.com
Wed Jun 17 11:52:14 PDT 2015


This is getting weird

I did a waf uninstall , was clean, then reinstalled successfully.

when trying to run nfd-start I still get a lib error though

[122/123] Linking build/bin/ndn-tlv-peek
[123/123] Linking build/bin/nfd
Waf: Leaving directory `/home/crieger/ndnSIM/NFD/build'
'build' finished successfully (2m22.771s)
./waf install
Waf: Entering directory `/home/crieger/ndnSIM/NFD/build'
+ install /usr/local/share/ndn/nfd-status.xsl (from 
tools/nfd-status-http-server-files/nfd-status.xsl)
+ install /usr/local/share/ndn/reset.css (from 
tools/nfd-status-http-server-files/reset.css)
+ install /usr/local/bin/nfd-stop (from build/bin/nfd-stop)
+ install /usr/local/bin/nfd-start (from build/bin/nfd-start)
+ install /usr/local/bin/nfd-status-http-server (from 
build/bin/nfd-status-http-server)
+ install /usr/local/share/ndn/robots.txt (from 
tools/nfd-status-http-server-files/robots.txt)
+ install /usr/local/bin/nrd (from build/bin/nrd)
+ install /usr/local/etc/ndn/nfd.conf.sample (from build/nfd.conf.sample)
+ install /usr/local/share/man//man1/nfd.1 (from build/docs/manpages/nfd.1)
+ install /usr/local/share/ndn/style.css (from 
tools/nfd-status-http-server-files/style.css)
+ install /usr/local/share/man//man1/nrd.1 (from build/docs/manpages/nrd.1)
+ install /usr/local/share/man//man1/ndn-autoconfig-server.1 (from 
build/docs/manpages/ndn-autoconfig-server.1)
+ install /usr/local/share/man//man1/ndn-autoconfig.1 (from 
build/docs/manpages/ndn-autoconfig.1)
+ install /usr/local/share/ndn/text.css (from 
tools/nfd-status-http-server-files/text.css)
+ install /usr/local/share/man//man1/nfdc.1 (from 
build/docs/manpages/nfdc.1)
+ install /usr/local/share/man//man1/ndn-tlv-peek.1 (from 
build/docs/manpages/ndn-tlv-peek.1)
+ install /usr/local/share/man//man1/ndn-tlv-poke.1 (from 
build/docs/manpages/ndn-tlv-poke.1)
+ install /usr/local/share/man//man1/nfd-autoreg.1 (from 
build/docs/manpages/nfd-autoreg.1)
+ install /usr/local/share/man//man1/nfd-status-http-server.1 (from 
build/docs/manpages/nfd-status-http-server.1)
+ install /usr/local/share/man//man1/nfd-status.1 (from 
build/docs/manpages/nfd-status.1)
+ install /usr/local/bin/ndn-tlv-peek (from build/bin/ndn-tlv-peek)
+ install /usr/local/bin/ndn-autoconfig (from build/bin/ndn-autoconfig)
+ install /usr/local/bin/nfd-status (from build/bin/nfd-status)
+ install /usr/local/bin/nfdc (from build/bin/nfdc)
+ install /usr/local/bin/ndn-tlv-poke (from build/bin/ndn-tlv-poke)
+ install /usr/local/bin/nfd (from build/bin/nfd)
+ install /usr/local/bin/nfd-autoreg (from build/bin/nfd-autoreg)
+ install /usr/local/bin/ndn-autoconfig-server (from 
build/bin/ndn-autoconfig-server)
Waf: Leaving directory `/home/crieger/ndnSIM/NFD/build'
'install' finished successfully (0.419s)
[root at localhost NFD] # /usr/local/bin/nfd-start
[root at localhost NFD] # /usr/local/bin/nfd: error while loading shared 
libraries: libndn-cxx.so.0.3.2: cannot open shared object file: No such 
file or directory

[root at localhost NFD] # env | grep LD
OLDPWD=/root
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64

[root at localhost NFD] # locate libndn-cxx.so.0.3.2
/home/crieger/ndnSIM/ndn-cxx/build/libndn-cxx.so.0.3.2
/usr/local/lib64/libndn-cxx.so.0.3.2


On 06/17/2015 11:45 AM, Alex Afanasyev wrote:
> Can you check that you don't have the static library (libndn-cxx.a) installed somewhere?
>
>> On Jun 17, 2015, at 11:20 AM, Chaim Rieger <chaim.rieger at gmail.com> wrote:
>>
>> ndn-cxx is installed (latest version) on fedora 22 x64 into /usr/local/bin /usr/local/lib64
>>
>> cd into the nfd
>> ./waf configure runs fine
>> ./waf produces the following error
>>
>> [118/123] Linking build/bin/nfdc
>> tools/nfd-status.cpp.5.o: In function `ndn::Name::getPrefix(long) const':
>> /usr/local/include/ndn-cxx/name.hpp:236: undefined reference to `ndn::Name::getSubName(unsigned long, unsigned long) const'
>> collect2: error: ld returned 1 exit status
>>
>> tools/ndn-autoconfig-server.cpp.1.o: In function `ndn::Name::getPrefix(long) const':
>> /usr/local/include/ndn-cxx/name.hpp:236: undefined reference to `ndn::Name::getSubName(unsigned long, unsigned long) const'
>> collect2: error: ld returned 1 exit status
>>
>> Waf: Leaving directory `/home/crieger/ndnSIM/NFD/build'
>> Build failed
>> -> task in '../bin/nfd-status' failed (exit status 1):
>>     {task 139875896348496: cxxprogram nfd-status.cpp.5.o,city-hash.cpp.2.o,config-file.cpp.2.o,global-io.cpp.2.o,network-interface.cpp.2.o,network.cpp.2.o,privilege-helper.cpp.2.o,random.cpp.2.o,scheduler.cpp.2.o,logger-factory.cpp.2.o,logger.cpp.2.o -> nfd-status}
>> ['/usr/bin/g++', 'tools/nfd-status.cpp.5.o', 'core/city-hash.cpp.2.o', 'core/config-file.cpp.2.o', 'core/global-io.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/scheduler.cpp.2.o', 'core/logger-factory.cpp.2.o', 'core/logger.cpp.2.o', '-o', '/home/crieger/ndnSIM/NFD/build/bin/nfd-status', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/lib64', '-L/usr/local/lib64', '-L/usr/lib64', '-lboost_system', '-lboost_chrono', '-lboost_program_options', '-lboost_random', '-lboost_thread', '-lndn-cxx', '-lboost_system', '-lboost_filesystem', '-lboost_date_time', '-lboost_iostreams', '-lboost_regex', '-lboost_program_options', '-lboost_chrono', '-lboost_random', '-lcryptopp', '-lsqlite3', '-lrt', '-lpthread', '-lrt', '-lresolv']
>> -> task in '../bin/ndn-autoconfig-server' failed (exit status 1):
>>     {task 139875896347216: cxxprogram ndn-autoconfig-server.cpp.1.o,city-hash.cpp.2.o,config-file.cpp.2.o,global-io.cpp.2.o,network-interface.cpp.2.o,network.cpp.2.o,privilege-helper.cpp.2.o,random.cpp.2.o,scheduler.cpp.2.o,logger-factory.cpp.2.o,logger.cpp.2.o -> ndn-autoconfig-server}
>> ['/usr/bin/g++', 'tools/ndn-autoconfig-server.cpp.1.o', 'core/city-hash.cpp.2.o', 'core/config-file.cpp.2.o', 'core/global-io.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/scheduler.cpp.2.o', 'core/logger-factory.cpp.2.o', 'core/logger.cpp.2.o', '-o', '/home/crieger/ndnSIM/NFD/build/bin/ndn-autoconfig-server', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/lib64', '-L/usr/local/lib64', '-L/usr/lib64', '-lboost_system', '-lboost_chrono', '-lboost_program_options', '-lboost_random', '-lboost_thread', '-lndn-cxx', '-lboost_system', '-lboost_filesystem', '-lboost_date_time', '-lboost_iostreams', '-lboost_regex', '-lboost_program_options', '-lboost_chrono', '-lboost_random', '-lcryptopp', '-lsqlite3', '-lrt', '-lpthread', '-lrt', '-lresolv']
>>
>> --
>> --
>> Chaim Rieger
>>
>> _______________________________________________
>> Nfd-dev mailing list
>> Nfd-dev at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-- 
--
Chaim Rieger




More information about the Nfd-dev mailing list